From af2e157c8889ed5f13e072d1f75708a4d40363b9 Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Wed, 3 Jun 2020 20:52:55 +0000 Subject: [PATCH] style: Fix tree column header color to follow theme. The background color for the tree column headers is drawn using the system APIs, but the foreground uses custom colors, which didn't follow theme. This can lead to unreadable text with specific colors, e.g. leading to black on black. Fix this by using system colors for the foreground as well. It also adds on-hover styling to match possible background change on hover. Differential Revision: https://phabricator.services.mozilla.com/D78073 --- components/style/values/specified/color.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/style/values/specified/color.rs b/components/style/values/specified/color.rs index 3be551d27a4..59184775c84 100644 --- a/components/style/values/specified/color.rs +++ b/components/style/values/specified/color.rs @@ -245,6 +245,12 @@ pub enum SystemColor { MozGtkInfoBarText, + /// Color of tree column headers + #[parse(condition = "ParserContext::in_ua_or_chrome_sheet")] + MozColheadertext, + #[parse(condition = "ParserContext::in_ua_or_chrome_sheet")] + MozColheaderhovertext, + #[css(skip)] End, // Just for array-indexing purposes. }