mirror of
https://github.com/servo/servo.git
synced 2025-06-20 15:18:58 +01:00
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:
parent
8f215a8444
commit
af2e157c88
1 changed files with 6 additions and 0 deletions
|
@ -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.
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue