mirror of
https://github.com/servo/servo.git
synced 2025-06-24 17:14:33 +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)]
|
||||
pub enum SystemColor {
|
||||
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
||||
TextSelectBackgroundDisabled,
|
||||
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
||||
TextSelectBackgroundAttention,
|
||||
TextSelectDisabledBackground,
|
||||
#[css(skip)]
|
||||
TextSelectAttentionBackground,
|
||||
#[css(skip)]
|
||||
TextSelectAttentionForeground,
|
||||
#[css(skip)]
|
||||
TextHighlightBackground,
|
||||
#[css(skip)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue