mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 08:39:22 +00:00
LibWeb: Avoid changing button border color on disable/hover
This commit is contained in:
parent
81b6a1100e
commit
82387e2127
Notes:
github-actions[bot]
2025-04-30 19:14:19 +00:00
Author: https://github.com/Psychpsyo
Commit: 82387e2127
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4538
Reviewed-by: https://github.com/AtkinsSJ ✅
6 changed files with 34 additions and 9 deletions
|
@ -50,6 +50,8 @@ bool CSSKeywordValue::is_color(Keyword keyword)
|
|||
case Keyword::Inactivecaptiontext:
|
||||
case Keyword::Infobackground:
|
||||
case Keyword::Infotext:
|
||||
case Keyword::LibwebButtonfacedisabled:
|
||||
case Keyword::LibwebButtonfacehover:
|
||||
case Keyword::LibwebLink:
|
||||
case Keyword::LibwebPaletteActiveLink:
|
||||
case Keyword::LibwebPaletteActiveWindowBorder1:
|
||||
|
@ -205,6 +207,10 @@ Color CSSKeywordValue::to_color(Optional<Layout::NodeWithStyle const&> node) con
|
|||
return SystemColor::selected_item(scheme);
|
||||
case Keyword::Selecteditemtext:
|
||||
return SystemColor::selected_item_text(scheme);
|
||||
case Keyword::LibwebButtonfacedisabled:
|
||||
return SystemColor::button_face(scheme).with_alpha(128);
|
||||
case Keyword::LibwebButtonfacehover:
|
||||
return SystemColor::button_face(scheme).darkened(0.8f);
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue