1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-18 09:57:35 +00:00

LibDraw+LibHTML: Make link colors themeable

Add "Link", "ActiveLink" and "VisitedLink" colors to the system theme
definition, and implement support for them in LibHTML.

Note that <body link="foo" alink="bar" vlink="baz"> takes precedence
over the system colors. Author style also takes precedence, since we
only fetch the system color in case the CSS color is -libhtml-link.
This commit is contained in:
Andreas Kling 2020-01-13 20:33:15 +01:00
parent 3b2f20ed4d
commit fd64e97c8a
9 changed files with 56 additions and 6 deletions

View file

@ -74,6 +74,9 @@ RefPtr<SharedBuffer> load_system_theme(const String& path)
DO_COLOR(MenuSelectionText);
DO_COLOR(RubberBandFill);
DO_COLOR(RubberBandBorder);
DO_COLOR(Link);
DO_COLOR(ActiveLink);
DO_COLOR(VisitedLink);
buffer->seal();
buffer->share_globally();