mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-21 23:01:03 +00:00
feat: add selectedLineBgColor theme customization (#420)
This commit is contained in:
parent
f0ee38f7f7
commit
454eaee2cf
3 changed files with 5 additions and 1 deletions
|
|
@ -24,6 +24,8 @@ gui:
|
|||
- bold
|
||||
inactiveBorderColor:
|
||||
- white
|
||||
selectedLineBgColor:
|
||||
- blue
|
||||
optionsTextColor:
|
||||
- blue
|
||||
returnImmediately: false
|
||||
|
|
|
|||
|
|
@ -71,6 +71,7 @@ type UserConfig struct {
|
|||
type ThemeConfig struct {
|
||||
ActiveBorderColor []string `yaml:"activeBorderColor,omitempty"`
|
||||
InactiveBorderColor []string `yaml:"inactiveBorderColor,omitempty"`
|
||||
SelectedLineBgColor []string `yaml:"selectedLineBgColor,omitempty"`
|
||||
OptionsTextColor []string `yaml:"optionsTextColor,omitempty"`
|
||||
}
|
||||
|
||||
|
|
@ -361,6 +362,7 @@ func GetDefaultConfig() UserConfig {
|
|||
Theme: ThemeConfig{
|
||||
ActiveBorderColor: []string{"green", "bold"},
|
||||
InactiveBorderColor: []string{"default"},
|
||||
SelectedLineBgColor: []string{"blue"},
|
||||
OptionsTextColor: []string{"blue"},
|
||||
},
|
||||
ShowAllContainers: false,
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ func (gui *Gui) createAllViews() error {
|
|||
(*mapping.viewPtr).FgColor = gocui.ColorDefault
|
||||
}
|
||||
|
||||
selectedLineBgColor := gocui.ColorBlue
|
||||
selectedLineBgColor := GetGocuiStyle(gui.Config.UserConfig.Gui.Theme.SelectedLineBgColor)
|
||||
|
||||
gui.Views.Main.Wrap = gui.Config.UserConfig.Gui.WrapMainPanel
|
||||
// when you run a docker container with the -it flags (interactive mode) it adds carriage returns for some reason. This is not docker's fault, it's an os-level default.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue