diff options
| author | Nikolaus Gotsche <n@softwarefools.com> | 2019-01-30 00:03:29 +0100 |
|---|---|---|
| committer | Nikolaus Gotsche <n@softwarefools.com> | 2019-01-30 00:03:29 +0100 |
| commit | 6c86f4f64187dd924519426efeb79196923f5584 (patch) | |
| tree | d97688e82d994cd59cfa55dd656c9e2c9b9b7fe2 /main.go | |
| parent | d02a8cb49104817621555545ee31ac5069ead0b4 (diff) | |
themes, trimed output
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -18,7 +18,7 @@ import ( var ( scaling = 1.1 Wnd nucular.MasterWindow - theme nstyle.Theme = nstyle.DarkTheme + theme nstyle.Theme dat []data interArgs,empty []string hea,filename,themestr,exitbut string @@ -109,6 +109,23 @@ func main() { if help { showHelp() } + if themestr != "" { + switch themestr { + case "Dark": + theme = nstyle.DarkTheme + case "Default": + theme = nstyle.DefaultTheme + case "Red": + theme = nstyle.RedTheme + case "White": + theme = nstyle.WhiteTheme + default: + fmt.Println("Unknown Theme",themestr,". Falling back to Dark Theme") + theme = nstyle.DarkTheme + } + }else{ + theme = nstyle.DarkTheme + } //hea,dat = loadfile(filename) nw := newFenestraWindow() |
