(themeFolder string)
| 224 | } |
| 225 | |
| 226 | func 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 | |
| 246 | func getColorCSS(scheme map[string]string) string { |
| 247 | var variableList string |