Debian Codegraph @

types/themes.go

raw symbols SCIP
1 package types
2
3 // Theme Type contains string representations of theme types.
4 const (
5 ThemeChalk = "chalk"
6 ThemeEssos = "essos"
7 ThemeInfographic = "infographic"
8 ThemeMacarons = "macarons"
9 ThemePurplePassion = "purple-passion"
10 ThemeRoma = "roma"
11 ThemeRomantic = "romantic"
12 ThemeShine = "shine"
13 ThemeVintage = "vintage"
14 ThemeWalden = "walden"
15 ThemeWesteros = "westeros"
16 ThemeWonderland = "wonderland"
17 )
18
19 func PresetTheme(theme string) bool {
20 switch theme {
21 case ThemeChalk, ThemeEssos, ThemeInfographic, ThemeMacarons,
22 ThemePurplePassion, ThemeRoma, ThemeRomantic, ThemeShine,
23 ThemeVintage, ThemeWalden, ThemeWesteros, ThemeWonderland:
24 return true
25 default:
26 return false
27 }
28 }