Overview
Comment: | [core][build] color rework |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | core | build |
Files: | files | file ages | folders |
SHA3-256: |
30b9f4680e9aecaa6a69640b33873a2c |
User & Date: | olr on 2018-09-25 11:10:18 |
Other Links: | manifest | tags |
Context
2018-09-25
| ||
12:02 | [lo] paramater for colors check-in: 1249b779da user: olr tags: trunk, lo | |
11:10 | [core][build] color rework check-in: 30b9f4680e user: olr tags: trunk, core, build | |
11:08 | [fr] couleurs et faux positifs divers check-in: 52b44d5fa6 user: olr tags: trunk, fr | |
Changes
Modified compile_rules.py from [c923230bdf] to [6c0309c95b].
︙ | |||
23 24 25 26 27 28 29 | 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | - + - + - - - - - + + + + + + + - - + - - - - + + + | sWORDLIMITRIGHT = r"(?![\w–-])" # r"\b(?!-—)" seems slower def convertRGBToInteger (r, g, b): return (r & 255) << 16 | (g & 255) << 8 | (b & 255) |
︙ | |||
408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 | 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 | + - - + + - + + + + + - + + + - | def prepareOptions (lOptionLines): "returns a dictionary with data about options" sLang = "" sDefaultUILang = "" lStructOpt = [] lOpt = [] lOptColor = [] dColor = {} dOptLabel = {} dOptPriority = {} for sLine in lOptionLines: sLine = sLine.strip() if sLine.startswith("OPTGROUP/"): m = re.match("OPTGROUP/([a-z0-9]+):(.+)$", sLine) lStructOpt.append( (m.group(1), list(map(str.split, m.group(2).split(",")))) ) elif sLine.startswith("OPTSOFTWARE:"): lOpt = [ [s, {}] for s in sLine[12:].strip().split() ] # don’t use tuples (s, {}), because unknown to JS elif sLine.startswith("OPT/"): m = re.match("OPT/([a-z0-9]+):(.+)$", sLine) for i, sOpt in enumerate(m.group(2).split()): lOpt[i][1][m.group(1)] = eval(sOpt) |
︙ | |||
497 498 499 500 501 502 503 | 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 | - + | elif sLine.startswith("TEST:"): # test lTest.append("{:<8}".format(i) + " " + sLine[5:].strip()) elif sLine.startswith("TODO:"): # todo pass elif sLine.startswith(("OPTGROUP/", "OPTSOFTWARE:", "OPT/", \ |
︙ |
Modified gc_core/js/lang_core/gc_options.js from [c30eb8d096] to [7c4c47e8f5].
︙ | |||
9 10 11 12 13 14 15 | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | - - - + + + + + + + + + + + + - + + - - - + + + - - + | getOptions: function (sContext="JavaScript") { if (this.dOpt.hasOwnProperty(sContext)) { return this.dOpt[sContext]; } return this.dOpt["JavaScript"]; }, |
Modified gc_core/py/lang_core/gc_engine.py from [b1e910dee6] to [10f4857be2].
︙ | |||
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | + - + + + | # Modules _rules = None # module gc_rules _rules_graph = None # module gc_rules_graph # Data _sAppContext = "" # what software is running _dOptions = None _dOptionsColors = None _oSpellChecker = None _oTokenizer = None _aIgnoredRules = set() #### Initialization |
︙ | |||
607 608 609 610 611 612 613 | 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 | - + - + - + - + - + - + + | lSugg = list(map(str.capitalize, lSugg)) # Message sMessage = globals()[sMsg[1:]](sText, m) if sMsg[0:1] == "=" else m.expand(sMsg) if bShowRuleId: sMessage += " # " + sLineId + " # " + sRuleId # if _bWriterError: |
︙ |
Modified gc_core/py/lang_core/gc_options.py from [f5b1b8c491] to [d511603a82].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | + + - - - + + + - - - - - + + + + + + + + + - + - + - - - - + + | """ Grammar checker default options """ # generated code, do not edit import traceback def getUI (sLang): "returns dictionary of UI labels" if sLang in _dOptLabel: return _dOptLabel[sLang] return _dOptLabel["fr"] def getOptions (sContext="Python"): "returns dictionary of options" |
Modified gc_lang/fr/webext/content_scripts/panel_gc.css from [a76956d409] to [4ec3ab92b0].
︙ | |||
64 65 66 67 68 69 70 | 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | - + | } div.grammalecte_paragraph_actions .grammalecte_red:hover { background-color: hsl(0, 50%, 40%); color: hsl(0, 0%, 100%); } |
︙ | |||
261 262 263 264 265 266 267 | 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 | - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + | mark.grammalecte_error_WORD:hover { background-color: hsl(0, 60%, 40%); color: hsl(0, 0%, 100%); box-shadow: 0px 0px 0px 3px hsla(0, 50%, 50%, 0.2); } /* elems */ |
︙ | |||
324 325 326 327 328 329 330 | 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 | - - - - - + + + + + - - - - - + + + + + - + - + - - - - - - - + + + + + + + - - - - - - - + + + + + + + | mark.grammalecte_error_sgpl:hover { background-color: hsl(210, 60%, 40%); color: hsl(210, 10%, 96%); box-shadow: 0px 0px 0px 3px hsla(210, 50%, 50%, 0.2); } /* elems */ |