Skip to content

Commit 02775d1

Browse files
committed
Add background color to themes
1 parent 3d040b0 commit 02775d1

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/options/config/style/themes/default.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ impl Styles {
1818
const AVG_COLOUR: Color = Color::Red;
1919
const ALL_COLOUR: Color = Color::Green;
2020
const DEFAULT_SELECTED_TEXT_STYLE: Style = color!(Color::Black).bg(HIGHLIGHT_COLOUR);
21+
const BG_COLOR: Color = Color::Black;
2122
const TEXT_COLOUR: Color = Color::Gray;
2223

2324
Self {
@@ -59,6 +60,7 @@ impl Styles {
5960
selected_text_style: DEFAULT_SELECTED_TEXT_STYLE,
6061
table_header_style: color!(HIGHLIGHT_COLOUR).add_modifier(Modifier::BOLD),
6162
widget_title_style: color!(TEXT_COLOUR),
63+
bg_color_style: color!(BG_COLOR),
6264
graph_style: color!(TEXT_COLOUR),
6365
graph_legend_style: color!(TEXT_COLOUR),
6466
high_battery: color!(Color::Green),

src/options/config/style/themes/gruvbox.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ impl Styles {
5858
text_style: hex!("#ebdbb2"),
5959
selected_text_style: hex!("#1d2021").bg(hex_colour!("#ebdbb2")),
6060
table_header_style: hex!("#83a598").add_modifier(Modifier::BOLD),
61+
bg_color_style: hex!("#282828"),
6162
widget_title_style: hex!("#ebdbb2"),
6263
graph_style: hex!("#ebdbb2"),
6364
graph_legend_style: hex!("#ebdbb2"),
@@ -123,6 +124,7 @@ impl Styles {
123124
text_style: hex!("#3c3836"),
124125
selected_text_style: hex!("#ebdbb2").bg(hex_colour!("#3c3836")),
125126
table_header_style: hex!("#076678").add_modifier(Modifier::BOLD),
127+
bg_color_style: hex!("#fbf1c7"),
126128
widget_title_style: hex!("#3c3836"),
127129
graph_style: hex!("#3c3836"),
128130
graph_legend_style: hex!("#3c3836"),

src/options/config/style/themes/nord.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ impl Styles {
4646
text_style: hex!("#e5e9f0"),
4747
selected_text_style: hex!("#2e3440").bg(hex_colour!("#88c0d0")),
4848
table_header_style: hex!("#81a1c1").add_modifier(Modifier::BOLD),
49+
bg_color_style: hex!("#2e3440"),
4950
widget_title_style: hex!("#e5e9f0"),
5051
graph_style: hex!("#e5e9f0"),
5152
graph_legend_style: hex!("#e5e9f0"),
@@ -99,6 +100,7 @@ impl Styles {
99100
text_style: hex!("#2e3440"),
100101
selected_text_style: hex!("#f5f5f5").bg(hex_colour!("#5e81ac")),
101102
table_header_style: hex!("#5e81ac").add_modifier(Modifier::BOLD),
103+
bg_color_style: hex!("#e5e9f0"),
102104
widget_title_style: hex!("#2e3440"),
103105
graph_style: hex!("#2e3440"),
104106
graph_legend_style: hex!("#2e3440"),

0 commit comments

Comments
 (0)