colours: better on colour for dark mode

This commit is contained in:
2 * r + 2 * t 2025-05-07 19:58:51 +10:00
parent f4ffaf9d71
commit 6e32b171d8

View file

@ -30,7 +30,7 @@ Singleton {
function on(c: color): color { function on(c: color): color {
if (c.hslLightness < 0.5) if (c.hslLightness < 0.5)
return Qt.hsla(c.hslHue, c.hslSaturation, 0.9, 1); return Qt.hsla(c.hslHue, c.hslSaturation, 0.9, 1);
return Qt.hsla(c.hslHue, c.hslSaturation, 0.2, 1); return Qt.hsla(c.hslHue, c.hslSaturation, 0.1, 1);
} }
function load(data: string, isPreview: bool): void { function load(data: string, isPreview: bool): void {