mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb/CSS: Implement the scrollbar-color
property
This allows the user to set the scrollbar thumb and track colors.
This commit is contained in:
parent
285bc005cb
commit
e2d0d8e2b9
Notes:
github-actions[bot]
2025-06-01 22:18:57 +00:00
Author: https://github.com/tcl3
Commit: e2d0d8e2b9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4893
24 changed files with 212 additions and 10 deletions
|
@ -130,6 +130,7 @@ public:
|
|||
Ratio,
|
||||
Rect,
|
||||
Resolution,
|
||||
ScrollbarColor,
|
||||
ScrollbarGutter,
|
||||
Shadow,
|
||||
Shorthand,
|
||||
|
@ -325,6 +326,10 @@ public:
|
|||
ResolutionStyleValue const& as_resolution() const;
|
||||
ResolutionStyleValue& as_resolution() { return const_cast<ResolutionStyleValue&>(const_cast<CSSStyleValue const&>(*this).as_resolution()); }
|
||||
|
||||
bool is_scrollbar_color() const { return type() == Type::ScrollbarColor; }
|
||||
ScrollbarColorStyleValue const& as_scrollbar_color() const;
|
||||
ScrollbarColorStyleValue& as_scrollbar_color() { return const_cast<ScrollbarColorStyleValue&>(const_cast<CSSStyleValue const&>(*this).as_scrollbar_color()); }
|
||||
|
||||
bool is_scrollbar_gutter() const { return type() == Type::ScrollbarGutter; }
|
||||
ScrollbarGutterStyleValue const& as_scrollbar_gutter() const;
|
||||
ScrollbarGutterStyleValue& as_scrollbar_gutter() { return const_cast<ScrollbarGutterStyleValue&>(const_cast<CSSStyleValue const&>(*this).as_scrollbar_gutter()); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue