lazydocker/pkg/gui/theme.go
Jesse Duffield d8777b7a59 update gocui
2022-05-10 22:11:21 +10:00

19 lines
653 B
Go

package gui
import (
"github.com/jesseduffield/gocui"
)
// GetOptionsPanelTextColor gets the color of the options panel text
func (gui *Gui) GetOptionsPanelTextColor() (gocui.Attribute, error) {
return GetGocuiStyle(gui.Config.UserConfig.Gui.Theme.OptionsTextColor), nil
}
// SetColorScheme sets the color scheme for the app based on the user config
func (gui *Gui) SetColorScheme() error {
gui.g.FgColor = GetGocuiStyle(gui.Config.UserConfig.Gui.Theme.InactiveBorderColor)
gui.g.SelFgColor = GetGocuiStyle(gui.Config.UserConfig.Gui.Theme.ActiveBorderColor)
gui.g.FrameColor = gui.g.FgColor
gui.g.SelFrameColor = gui.g.SelFgColor
return nil
}