diff --git a/color.go b/color.go index d38684c..db51818 100644 --- a/color.go +++ b/color.go @@ -5,8 +5,7 @@ import ( ) var ( - Transparent tcell.Color = tcell.ColorDefault - ThemesName = []string{"Gruvbox", "Nord"} + AllTheme = []string{"Gruvbox", "Nord"} Palette = []string{"red", "green", "yellow", "blue", "purple", "cyan"} Themes = map[string]map[string]tcell.Color{ "Gruvbox": { @@ -64,7 +63,7 @@ func NewStyle() *Style { func (s Style) BackgroundColor() tcell.Color { if s.Transparent { - return Transparent + return tcell.ColorDefault } return Themes[s.Theme][s.backgroundColor] } diff --git a/ui.go b/ui.go index 8e24adf..168df2d 100644 --- a/ui.go +++ b/ui.go @@ -193,8 +193,8 @@ func uiInit() { dstLangDropDown.SetBorder(true) dstLangDropDown.SetOptions(Lang, nil) themeDropDown.SetLabel("Theme: "). - SetOptions(ThemesName, nil). - SetCurrentOption(IndexOf(style.Theme, ThemesName)) + SetOptions(AllTheme, nil). + SetCurrentOption(IndexOf(style.Theme, AllTheme)) transparentDropDown.SetLabel("Transparent: "). SetOptions([]string{"true", "false"}, nil). SetCurrentOption(