File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff 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) ;
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments