aboutsummaryrefslogtreecommitdiff
path: root/data.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-11-14 15:22:50 +0100
committerAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-11-14 15:22:50 +0100
commit2621bc5978fc7f6f24d2f0ba91715c01c62b43a9 (patch)
tree25566b8d9013c33119c25019883440c39ab02d4a /data.go
parentfce56f5088e27c0865d3a2d03936039e1a21059a (diff)
feat(tag): style on hover
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 + ";")
+}