Overview
Comment: | [build] aHSL for colors [fx] new error underlining |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | build | fx |
Files: | files | file ages | folders |
SHA3-256: |
b210b1ca73057e987ee9e2c802c16576 |
User & Date: | olr on 2020-03-27 10:13:07 |
Other Links: | manifest | tags |
Context
2020-03-27
| ||
12:01 | [fr] mise à jour des dictionnaires, adaptation des règles check-in: fd348a300b user: olr tags: trunk, fr | |
10:13 | [build] aHSL for colors [fx] new error underlining check-in: b210b1ca73 user: olr tags: trunk, build, fx | |
2020-03-26
| ||
22:45 | [fx] main panel: don’t wrap link text content with <b> check-in: 75737f3b7b user: olr tags: trunk, fx | |
Changes
Modified compile_rules.py from [eebd1a5977] to [5ad409424e].
︙ | |||
36 37 38 39 40 41 42 43 | 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | + - + + | r, g, b = colorsys.hls_to_rgb(h/360, l/100, s/100) return [round(r*255), round(g*255), round(b*255)] def createColors (dColor): "dictionary of colors {color_name: [h, s, l]} -> returns dictionary of colors as dictionaries of color types" dColorType = { "aHSL": {}, # dictionary of colors as HSL list "sCSS": {}, # dictionary of colors as strings for HTML/CSS (example: hsl(0, 50%, 50%)) |
︙ |
Modified gc_lang/fr/webext/content_scripts/panel_gc.css from [4c07e86380] to [ae16866faf].
︙ | |||
14 15 16 17 18 19 20 | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | - + | } p.grammalecte_paragraph { margin: 0; padding: 12px; background-color: hsl(0, 0%, 96%); border-radius: 2px; |
︙ | |||
205 206 207 208 209 210 211 | 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 | - + + - - - + + + - - - - + + + + + + + + + + | color: hsla(0, 0%, 100%, 1); } /* ERRORS */ |
︙ |
Modified gc_lang/fr/webext/content_scripts/panel_gc.js from [c1b09949c0] to [8b9524e63b].
︙ | |||
345 346 347 348 349 350 351 | 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 | + + + - + + + + + + + + + - + - + | _createError (sUnderlined, oErr) { let xNodeErr = document.createElement("mark"); xNodeErr.id = "grammalecte_err" + oErr['sErrorId']; xNodeErr.textContent = sUnderlined; xNodeErr.dataset.error_id = oErr['sErrorId']; xNodeErr.dataset.ignored_key = oErr['sIgnoredKey']; xNodeErr.dataset.error_type = (oErr['sType'] === "WORD") ? "spelling" : "grammar"; if (this.aIgnoredErrors.has(xNodeErr.dataset.ignored_key)) { xNodeErr.className = "grammalecte_error_ignored"; } |
︙ | |||
402 403 404 405 406 407 408 409 410 411 412 413 414 415 | 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 | + | ignoreError (sIgnoreButtonId) { // ignore try { let sErrorId = this.xParent.getElementById(sIgnoreButtonId).dataset.error_id; let xNodeErr = this.xParent.getElementById("grammalecte_err" + sErrorId); this.aIgnoredErrors.add(xNodeErr.dataset.ignored_key); xNodeErr.className = "grammalecte_error_ignored"; xNodeErr.removeAttribute("style"); this.oTooltip.hide(); } catch (e) { showError(e); } } |
︙ |
Modified gc_lang/fr/webext/gce_worker.js from [2a88013ffc] to [67fa9791af].
︙ | |||
172 173 174 175 176 177 178 | 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 | - + | try { if (!bInitDone) { //console.log("[Worker] Loading… Extension path: " + sExtensionPath); conj.init(helpers.loadFile(sExtensionPath + "/grammalecte/fr/conj_data.json")); phonet.init(helpers.loadFile(sExtensionPath + "/grammalecte/fr/phonet_data.json")); mfsp.init(helpers.loadFile(sExtensionPath + "/grammalecte/fr/mfsp_data.json")); //console.log("[Worker] Modules have been initialized…"); |
︙ |