mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 12:51:06 +00:00
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:
parent
0046b8cb5c
commit
fec5def690
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user