Repository navigation
Bug 2048531 - Improve selection contrast in dark mode - #21553
Conversation
|
/botio preview |
From: Bot.io (Linux m4)ReceivedCommand cmd_preview from @nicolo-ribaudo received. Current queue size: 0 Live output at: http://54.241.84.105:8877/5d0a64971f24ce6/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_preview from @nicolo-ribaudo received. Current queue size: 0 Live output at: http://54.193.163.58:8877/068eb2277adb255/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/5d0a64971f24ce6/output.txt Total script time: 1.43 mins Published |
Codecov Reportβ
All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #21553 +/- ##
=======================================
Coverage 89.71% 89.72%
=======================================
Files 262 262
Lines 66709 66713 +4
=======================================
+ Hits 59847 59856 +9
+ Misses 6862 6857 -5
Flags with carried forward coverage won't be shown. Click here to find out more. β View full report in Codecov by Harness. π New features to boost your workflow:
|
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/068eb2277adb255/output.txt Total script time: 5.09 mins Published |
|
It doesn't wfm on Windows at least: CanvasText is black when the color should be white which is the case with HighlightText. |
02c524e to
337b683
Compare
On some OSes, the current approach of using `Highlight`/`HighlightText` colors to draw selected text doesn't work when the OS is set to dark mode, as we revert the `color-scheme` to `light` to compute them (because PDFs are normally in light mode) but that does not affect the `HighlightText` color (which depends not on the `color-scheme` but on the `currentColor`). Other than forcing the `color-scheme` to `light`, set the `color` to `black` and use the `backgroud-color` to compute the `HighlightText` color instead. In OSes where `HighlightText` is theme-dependent this will result in the OS-provided text color, while in OSes where it is `currentColor`-dependent it will be based on the default color for light themes (i.e. black).
337b683 to
199d738
Compare
If you want to play around with different colors in light/dark mode: css-highlight-color-scheme.html