Style preference tab for user (#467)

هذا الالتزام موجود في:
Thomas Miceli
2025-05-05 01:31:42 +02:00
ملتزم من قبل GitHub
الأصل 0e9b778b45
التزام dc43fccc04
23 ملفات معدلة مع 664 إضافات و361 حذوفات

عرض الملف

@@ -186,6 +186,10 @@ func (s *Server) setFuncMap() {
}
return str
},
"hexToRgb": func(hex string) string {
h, _ := strconv.ParseUint(strings.TrimPrefix(hex, "#"), 16, 32)
return fmt.Sprintf("%d, %d, %d,", (h>>16)&0xFF, (h>>8)&0xFF, h&0xFF)
},
}
t := template.Must(template.New("t").Funcs(fm).ParseFS(templates.Files, "*/*.html"))