diff --git a/_sample_configs/simple_config.yml b/_sample_configs/simple_config.yml index ea446257..f0fe3be9 100644 --- a/_sample_configs/simple_config.yml +++ b/_sample_configs/simple_config.yml @@ -1,4 +1,9 @@ wtf: + colors: + border: + focusable: darkslateblue + focused: orange + normal: gray grid: columns: [40, 40] rows: [13, 13, 4] diff --git a/wtf/config_files.go b/wtf/config_files.go index 1825084f..ba10b3b7 100644 --- a/wtf/config_files.go +++ b/wtf/config_files.go @@ -108,6 +108,11 @@ func WriteConfigFile() { const simpleConfig = ` wtf: + colors: + border: + focusable: darkslateblue + focused: orange + normal: gray grid: columns: [40, 40] rows: [13, 13, 4] diff --git a/wtf/text_widget.go b/wtf/text_widget.go index 266b2b4f..bf74dba1 100644 --- a/wtf/text_widget.go +++ b/wtf/text_widget.go @@ -61,7 +61,7 @@ func (widget *TextWidget) Enabled() bool { } func (widget *TextWidget) Focusable() bool { - return widget.focusable + return widget.enabled && widget.focusable } func (widget *TextWidget) RefreshInterval() int {