MCPcopy Create free account
hub / github.com/efogdev/mpris-timer / SetProgressColor

Function SetProgressColor

internal/core/prefs.go:155–163  ·  view source on GitHub ↗
(value string)

Source from the content-addressed store, hash-verified

153}
154
155func SetProgressColor(value string) {
156 if !regexp.MustCompile(`^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$`).MatchString(value) {
157 return
158 }
159
160 Overrides.Color = value
161 UserPrefs.ProgressColor = value
162 settings.SetString("progress-color", value)
163}
164
165func SetPresets(value []string) {
166 UserPrefs.Presets = value

Callers 1

populateVisualsGroupFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected