mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
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:
parent
3a64fa2006
commit
75d6be45f2
1 changed files with 8 additions and 0 deletions
|
@ -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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue