From c786dec82492feacf6432149934e27b68a3050ac Mon Sep 17 00:00:00 2001 From: eeeXun Date: Mon, 24 Oct 2022 17:49:04 +0800 Subject: [PATCH] remove transparent color --- color.go | 5 ++--- ui.go | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) 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(