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
This commit is contained in:
Colomban Wendling 2020-06-03 20:52:55 +00:00 committed by Emilio Cobos Álvarez
parent 8f215a8444
commit af2e157c88
No known key found for this signature in database
GPG key ID: E1152D0994E4BF8A

View file

@ -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.
}