From 75d6be45f2584b4d38309d8ecd71225e7c4d7d89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Thu, 11 Feb 2021 16:36:54 +0000 Subject: [PATCH] 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 --- components/style/values/specified/color.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/components/style/values/specified/color.rs b/components/style/values/specified/color.rs index e44568fb5bf..e6491049619 100644 --- a/components/style/values/specified/color.rs +++ b/components/style/values/specified/color.rs @@ -227,6 +227,14 @@ pub enum SystemColor { MozMacActiveSourceListSelection, 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. MozWinAccentcolor, /// Color from drawing text over the accent color.