Skip to content

Commit 3d040b0

Browse files
committed
WIP: add bg_colour to WidgetStyle
1 parent a4ddb7d commit 3d040b0

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/options/config/style.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ pub struct Styles {
117117
pub(crate) selected_text_style: Style,
118118
pub(crate) table_header_style: Style,
119119
pub(crate) widget_title_style: Style,
120+
pub(crate) bg_color_style: Style,
120121
pub(crate) graph_style: Style,
121122
pub(crate) graph_legend_style: Style,
122123
pub(crate) high_battery: Style,
@@ -207,6 +208,7 @@ impl Styles {
207208
set_style!(self.graph_legend_style, config.graphs, legend_text);
208209

209210
// General widget text.
211+
set_colour!(self.bg_color_style, config.widgets, bg_color);
210212
set_style!(self.widget_title_style, config.widgets, widget_title);
211213
set_style!(self.text_style, config.widgets, text);
212214
set_style!(self.selected_text_style, config.widgets, selected_text);

src/options/config/style/widgets.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,7 @@ pub(crate) struct WidgetStyle {
3333

3434
/// Widget borders type.
3535
pub(crate) widget_border_type: Option<WidgetBorderType>,
36+
37+
/// Background color for widgets in general
38+
pub(crate) bg_color: Option<ColorStr>,
3639
}

0 commit comments

Comments
 (0)