Bug 1871535 - Use a less opaque check color for dark disabled checkboxes. r=spohl

On a darker background this should be fine.

Differential Revision: https://phabricator.services.mozilla.com/D197875
This commit is contained in:
Emilio Cobos Álvarez 2024-01-08 08:00:37 +00:00
parent 0046b8cb5c
commit fec5def690

View File

@ -228,7 +228,7 @@ std::tuple<sRGBColor, sRGBColor, sRGBColor> Theme::ComputeCheckboxColors(
auto bg = ComputeBorderColor(aState, aColors, OutlineCoversBorder::No);
auto fg = aColors.HighContrast()
? aColors.System(StyleSystemColor::Graytext)
: sRGBColor::White(.8f);
: sRGBColor::White(aColors.IsDark() ? .4f : .8f);
return std::make_tuple(bg, bg, fg);
}