mirror of
https://github.com/eeeXun/GTT.git
synced 2025-05-20 17:40:25 -07:00
remove transparent color
This commit is contained in:
parent
7eaee14787
commit
c786dec824
5
color.go
5
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]
|
||||
}
|
||||
|
4
ui.go
4
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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user