From 6c86f4f64187dd924519426efeb79196923f5584 Mon Sep 17 00:00:00 2001 From: Nikolaus Gotsche Date: Wed, 30 Jan 2019 00:03:29 +0100 Subject: themes, trimed output --- main.go | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index ae3e92d..f024299 100644 --- a/main.go +++ b/main.go @@ -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() -- cgit v1.2.3