aboutsummaryrefslogtreecommitdiff
path: root/data.go
diff options
context:
space:
mode:
Diffstat (limited to 'data.go')
-rw-r--r--data.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/data.go b/data.go
index 06ac7e2..7c976e7 100644
--- a/data.go
+++ b/data.go
@@ -31,6 +31,7 @@ type Color struct {
Background *BackgroundColor `json:"background"`
Button *ButtonColor `json:"buttons"`
Text string `json:"text"`
+ TagHover string `json:"tag_hover"`
}
type BackgroundColor struct {
@@ -87,3 +88,7 @@ func (b *ButtonColor) GetTextColor() template.CSS {
func (b *ButtonColor) GetBackground() template.CSS {
return template.CSS("--background: " + b.Background + ";--background-hover: " + b.BackgroundHover + ";")
}
+
+func (t *Color) GetTagColor() template.CSS {
+ return template.CSS("--tag-hover: " + t.TagHover + ";")
+}