commitc92f17c167
Author: Minecon724 <minecon724@noreply.git.m724.eu> Date: Sat Sep 13 10:46:57 2025 +0000 Display everything in the UI commitfa533b8ba5
Author: Minecon724 <minecon724@noreply.git.m724.eu> Date: Sat Sep 13 10:46:40 2025 +0000 Add theme loader commitadbd5af8d1
Author: Minecon724 <minecon724@noreply.git.m724.eu> Date: Sat Sep 13 10:17:00 2025 +0000 Fix webpack commit933ad0b23a
Author: Minecon724 <minecon724@noreply.git.m724.eu> Date: Sat Sep 13 10:16:51 2025 +0000 Add metadata to builtin themes commit1b8aa2fc35
Author: Minecon724 <minecon724@noreply.git.m724.eu> Date: Sat Sep 13 10:16:38 2025 +0000 Remove accessibility themes
14 lines
411 B
Go
14 lines
411 B
Go
package theme
|
|
|
|
import "strings"
|
|
|
|
// getFriendlyThemeName converts an raw theme name to a friendly, readable name.
|
|
// Example: forgejo-dark -> Forgejo Dark, catppuccin-maroon-auto -> Catppuccin Maroon Auto
|
|
func getFriendlyThemeName(themeName string) string {
|
|
themeName = strings.ReplaceAll(themeName, "-", " ")
|
|
|
|
themeName = strings.ToLower(themeName)
|
|
themeName = strings.Title(themeName)
|
|
|
|
return themeName
|
|
}
|