style: Make Linux tab bar use the darker of the highlight / highlighttext colors.

Some GTK themes use very soft colors for selection backgrounds, using
darker colors for the text. This makes the tab and focus outlines in the
tab bar not have sufficient contrast with usual backgrounds.

I needed to do this for bug 1690778, but it seems worth doing it on the
front-end as well.

Differential Revision: https://phabricator.services.mozilla.com/D104547
This commit is contained in:
Emilio Cobos Álvarez 2021-02-11 16:36:54 +00:00
parent 3a64fa2006
commit 75d6be45f2

View file

@ -227,6 +227,14 @@ pub enum SystemColor {
MozMacActiveSourceListSelection, MozMacActiveSourceListSelection,
MozMacTooltip, MozMacTooltip,
/// Theme accent color.
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
MozAccentColor,
/// Foreground for the accent color.
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
MozAccentColorForeground,
/// Accent color for title bar. /// Accent color for title bar.
MozWinAccentcolor, MozWinAccentcolor,
/// Color from drawing text over the accent color. /// Color from drawing text over the accent color.