🐛 Don't set a theme unless explicitly specified to keep the system theme
This commit is contained in:
parent
256b54add6
commit
5f262278b3
4
main.go
4
main.go
|
@ -21,7 +21,7 @@ import (
|
||||||
//go:embed data/gitmojis.json data/images
|
//go:embed data/gitmojis.json data/images
|
||||||
var data embed.FS
|
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.")
|
var linger = flag.String("linger", "", "If specified, linger for the given duration (e.g. 10s) before actually closing.")
|
||||||
|
|
||||||
type Gitmoji struct {
|
type Gitmoji struct {
|
||||||
|
@ -71,7 +71,7 @@ func main() {
|
||||||
switch *preferredTheme {
|
switch *preferredTheme {
|
||||||
case "dark":
|
case "dark":
|
||||||
a.Settings().SetTheme(theme.DarkTheme())
|
a.Settings().SetTheme(theme.DarkTheme())
|
||||||
default:
|
case "light":
|
||||||
a.Settings().SetTheme(theme.LightTheme())
|
a.Settings().SetTheme(theme.LightTheme())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue