Skip to content

Commit d031d64

Browse files
authored
Merge pull request #68 from tofubert/default-themes
update default dark theme
2 parents 4b14e7a + 278d385 commit d031d64

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ serde_json = "1.0.135"
3939
jzon = "0.12.5"
4040
base64 = "0.22.1"
4141
toml = "0.8.19"
42-
toml-example = "0.12.0"
42+
toml-example = "0.12.1"
4343
ratatui = {version = "0.29.0", features = ["serde"] }
4444
crossterm = "*"
4545
tui-tree-widget = "0.23"

src/config/theme/options.rs

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,63 +6,62 @@ use toml_example::TomlExample;
66
/// String, e.g. "white", see <https://docs.rs/ratatui/latest/ratatui/style/enum.Color.html>
77
/// indexed, e.g. "10", see <https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit>
88
/// hex, e.g. "#a03f49", see <https://docs.rs/ratatui/latest/ratatui/style/enum.Color.html#method.deserialize>
9-
/// `toml_example` seems to not handle index and hex well, so the default is pure strings
109
#[derive(Serialize, Deserialize, Debug, Default, TomlExample)]
1110
pub struct ColorPalette {
1211
/// Default Background
13-
#[toml_example(default = "black")]
12+
#[toml_example(default = "#1f2335")]
1413
pub background: Color,
1514

1615
/// Default Text Colour
17-
#[toml_example(default = "white")]
16+
#[toml_example(default = "#c0caf5")]
1817
pub foreground: Color,
1918

2019
/// Background for highlighted lines
21-
#[toml_example(default = "darkgrey")]
20+
#[toml_example(default = "#3b4261")]
2221
pub background_highlight: Color,
2322

2423
/// Foreground for highlighted lines
25-
#[toml_example(default = "white")]
24+
#[toml_example(default = "#ffc777")]
2625
pub foreground_highlight: Color,
2726

2827
/// background for unread message highlight
29-
#[toml_example(default = "lightgray")]
28+
#[toml_example(default = "#292e42")]
3029
pub background_unread_message: Color,
3130

3231
/// Foreground for unread message highlight
33-
#[toml_example(default = "darkgray")]
32+
#[toml_example(default = "#9d7cd8")]
3433
pub foreground_unread_message: Color,
3534

3635
/// Text Colour for Chat and User table Headers
37-
#[toml_example(default = "blue")]
36+
#[toml_example(default = "#394b70")]
3837
pub table_header: Color,
3938

4039
/// Text Colour for titlebar contents
41-
#[toml_example(default = "darkgray")]
40+
#[toml_example(default = "#545c7e")]
4241
pub foreground_titlebar: Color,
4342

44-
/// Text Colour for titlebar contents
45-
#[toml_example(default = "blue")]
43+
/// background for titlebar highlight
44+
#[toml_example(default = "#292e42")]
4645
pub background_important_titlebar: Color,
4746

48-
/// Text Colour for titlebar contents
49-
#[toml_example(default = "white")]
47+
/// Text Colour for titlebar highlight
48+
#[toml_example(default = "#9d7cd8")]
5049
pub foreground_important_titlebar: Color,
5150

5251
/// Foreground for Away Users
53-
#[toml_example(default = "blue")]
52+
#[toml_example(default = "#ff9e64")]
5453
pub user_away: Color,
5554

5655
/// Foreground for DND Users
57-
#[toml_example(default = "red")]
56+
#[toml_example(default = "#c53b53")]
5857
pub user_dnd: Color,
5958

6059
/// Foreground for Offline Users
61-
#[toml_example(default = "gray")]
60+
#[toml_example(default = "#737aa2")]
6261
pub user_offline: Color,
6362

6463
/// Foreground for Online Users
65-
#[toml_example(default = "green")]
64+
#[toml_example(default = "#c3e88d")]
6665
pub user_online: Color,
6766

6867
/// Borders for popup windows

0 commit comments

Comments
 (0)