summaryrefslogtreecommitdiff
path: root/Base
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2020-01-13 20:33:15 +0100
committerAndreas Kling <awesomekling@gmail.com>2020-01-13 20:33:15 +0100
commitfd64e97c8afb46b5e152bd18d0376c2094c9f3f3 (patch)
tree678728c143762318a1b09dd8645521f5668feec3 /Base
parent3b2f20ed4d393b93de3dd84cf6290ec5fb089593 (diff)
downloadserenity-fd64e97c8afb46b5e152bd18d0376c2094c9f3f3.zip
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.
Diffstat (limited to 'Base')
-rw-r--r--Base/res/themes/Dark.ini3
-rw-r--r--Base/res/themes/Default.ini3
-rw-r--r--Base/res/themes/Hotdog Stand.ini3
-rw-r--r--Base/res/themes/Xmas.ini3
4 files changed, 12 insertions, 0 deletions
diff --git a/Base/res/themes/Dark.ini b/Base/res/themes/Dark.ini
index 2130d03681..c74193e9a3 100644
--- a/Base/res/themes/Dark.ini
+++ b/Base/res/themes/Dark.ini
@@ -31,3 +31,6 @@ Selection=#14141a
SelectionText=white
RubberBandFill=#8080803c
RubberBandBorder=black
+Link=#88c
+ActiveLink=#c88
+VisitedLink=#c8c
diff --git a/Base/res/themes/Default.ini b/Base/res/themes/Default.ini
index da38dec0e1..fff9f012cc 100644
--- a/Base/res/themes/Default.ini
+++ b/Base/res/themes/Default.ini
@@ -31,3 +31,6 @@ Selection=#84351a
SelectionText=white
RubberBandFill=#f4ca9e3c
RubberBandBorder=#6e2209
+Link=blue
+ActiveLink=red
+VisitedLink=magenta
diff --git a/Base/res/themes/Hotdog Stand.ini b/Base/res/themes/Hotdog Stand.ini
index 65856c1823..7d879456b7 100644
--- a/Base/res/themes/Hotdog Stand.ini
+++ b/Base/res/themes/Hotdog Stand.ini
@@ -31,3 +31,6 @@ Selection=black
SelectionText=white
RubberBandFill=#fad7653c
RubberBandBorder=#f4ca9e
+Link=blue
+ActiveLink=red
+VisitedLink=magenta
diff --git a/Base/res/themes/Xmas.ini b/Base/res/themes/Xmas.ini
index 7f19071cfc..20b27985b3 100644
--- a/Base/res/themes/Xmas.ini
+++ b/Base/res/themes/Xmas.ini
@@ -31,3 +31,6 @@ Selection=#84351a
SelectionText=white
RubberBandFill=#0466033c
RubberBandBorder=#76943c
+Link=blue
+ActiveLink=red
+VisitedLink=magenta