🐛 Don't set a theme unless explicitly specified to keep the system theme

This commit is contained in:
Andreas Schneider 2021-03-10 17:38:42 +01:00
parent 256b54add6
commit 5f262278b3
No known key found for this signature in database
GPG Key ID: 85A8477020916C9E
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ import (
//go:embed data/gitmojis.json data/images
var data embed.FS
var preferredTheme = flag.String("theme", "light", "Specify the theme to be used. dark/light")
var preferredTheme = flag.String("theme", "", "Specify the theme to be used. dark/light")
var linger = flag.String("linger", "", "If specified, linger for the given duration (e.g. 10s) before actually closing.")
type Gitmoji struct {
@ -71,7 +71,7 @@ func main() {
switch *preferredTheme {
case "dark":
a.Settings().SetTheme(theme.DarkTheme())
default:
case "light":
a.Settings().SetTheme(theme.LightTheme())
}