Repository navigation
Commit 3ca83ed
committed
fix: remove double normalization in terminal background detection
RGBA.fromInts() already normalizes r/g/b to 0.0-1.0 range, so dividing
by 255 again in mode() made the luminance near-zero for any input.
This caused getTerminalBackgroundColor() to always return "dark",
breaking light variant selection for all dual-variant themes.
Fixes anomalyco#22615
Related: anomalyco#209261 parent d7718d4 commit 3ca83ed
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments