mirror of
https://github.com/servo/servo.git
synced 2025-06-25 01:24:37 +01:00
style: Add a foreground color to attention selection
In some platforms (like macOS, windows dark mode, android, and some gtk themes) the foreground selection color might be `currentcolor`, and that doesn't generally guarantee enough contrast with the attention background. Remove HeadlessLookAndFeelGTK's handling of this color since it's useless (always overridden by prefs in all.js) Differential Revision: https://phabricator.services.mozilla.com/D130617
This commit is contained in:
parent
063d736837
commit
53b657e97b
1 changed files with 5 additions and 3 deletions
|
@ -232,9 +232,11 @@ pub enum Color {
|
||||||
#[repr(u8)]
|
#[repr(u8)]
|
||||||
pub enum SystemColor {
|
pub enum SystemColor {
|
||||||
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
||||||
TextSelectBackgroundDisabled,
|
TextSelectDisabledBackground,
|
||||||
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
#[css(skip)]
|
||||||
TextSelectBackgroundAttention,
|
TextSelectAttentionBackground,
|
||||||
|
#[css(skip)]
|
||||||
|
TextSelectAttentionForeground,
|
||||||
#[css(skip)]
|
#[css(skip)]
|
||||||
TextHighlightBackground,
|
TextHighlightBackground,
|
||||||
#[css(skip)]
|
#[css(skip)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue