Add global show_label_background setting with UI control

This commit is contained in:
totmin
2026-06-17 20:19:02 +07:00
parent 72a17dd7aa
commit f7d3b22e0b
7 changed files with 31 additions and 17 deletions
+1 -1
View File
@@ -404,7 +404,7 @@ func (s *WebServer) handleRender(w http.ResponseWriter, r *http.Request) {
kc.Background = bg
}
img := RenderKeyToImage(kc, keySize)
img := RenderKeyToImage(kc, keySize, s.cfg.ShowLabelBackground)
w.Header().Set("Content-Type", "image/png")
w.Header().Set("Cache-Control", "no-cache")