MCPcopy
hub / github.com/spicetify/cli / getUserCSS

Function getUserCSS

src/apply/apply.go:226–244  ·  view source on GitHub ↗
(themeFolder string)

Source from the content-addressed store, hash-verified

224}
225
226func getUserCSS(themeFolder string) string {
227 if len(themeFolder) == 0 {
228 return ""
229 }
230
231 cssFilePath := filepath.Join(themeFolder, "user.css")
232 _, err := os.Stat(cssFilePath)
233
234 if err != nil {
235 return ""
236 }
237
238 content, err := os.ReadFile(cssFilePath)
239 if err != nil {
240 return ""
241 }
242
243 return string(content)
244}
245
246func getColorCSS(scheme map[string]string) string {
247 var variableList string

Callers 1

UserCSSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected