Skip to content

Commit 2270d72

Browse files
committed
feat(theme): add Telemetry theme
Add Telemetry color scheme - a dark theme with muted teals and warm accents. Color palette by bjarneo (https://github.com/bjarneo) from Aether (https://aethr.no)
1 parent 174532d commit 2270d72

3 files changed

Lines changed: 61 additions & 1 deletion

File tree

‎src/theme/mod.rs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,10 @@ impl Theme {
8585
"rose-pine" => Ok(themes::rose_pine()),
8686
"solarized-dark" => Ok(themes::solarized_dark()),
8787
"solarized-light" => Ok(themes::solarized_light()),
88+
"telemetry" => Ok(themes::telemetry()),
8889
"tokyo-night" => Ok(themes::tokyo_night()),
8990
_ => Err(anyhow::anyhow!("Unknown theme: {}", name))
90-
.context("Available themes: ayu-dark, catppuccin, dracula, everforest, github-dark, gruvbox, material, monokai, night-owl, nord, one-dark, rose-pine, solarized-dark, solarized-light, tokyo-night"),
91+
.context("Available themes: ayu-dark, catppuccin, dracula, everforest, github-dark, gruvbox, material, monokai, night-owl, nord, one-dark, rose-pine, solarized-dark, solarized-light, telemetry, tokyo-night"),
9192
}
9293
}
9394

@@ -115,6 +116,7 @@ impl Theme {
115116
"rose-pine",
116117
"solarized-dark",
117118
"solarized-light",
119+
"telemetry",
118120
"tokyo-night",
119121
]
120122
}

‎src/theme/themes/mod.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ mod one_dark;
1212
mod rose_pine;
1313
mod solarized_dark;
1414
mod solarized_light;
15+
mod telemetry;
1516
mod tokyo_night;
1617

1718
pub use ayu_dark::ayu_dark;
@@ -28,4 +29,5 @@ pub use one_dark::one_dark;
2829
pub use rose_pine::rose_pine;
2930
pub use solarized_dark::solarized_dark;
3031
pub use solarized_light::solarized_light;
32+
pub use telemetry::telemetry;
3133
pub use tokyo_night::tokyo_night;

‎src/theme/themes/telemetry.rs‎

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
use super::super::Theme;
2+
use ratatui::style::Color;
3+
4+
/// Telemetry - "Encrypt the signal; the void is listening."
5+
/// Color palette by bjarneo (https://github.com/bjarneo) from Aether (https://aethr.no)
6+
pub fn telemetry() -> Theme {
7+
Theme {
8+
background_left: Color::Rgb(15, 27, 29),
9+
background_right: Color::Rgb(22, 34, 36),
10+
11+
editor_line_number: Color::Rgb(107, 141, 148),
12+
editor_line_number_cursor: Color::Rgb(244, 174, 89),
13+
editor_separator: Color::Rgb(107, 141, 148),
14+
editor_cursor_char_bg: Color::Rgb(244, 174, 89),
15+
editor_cursor_char_fg: Color::Rgb(15, 27, 29),
16+
editor_cursor_line_bg: Color::Rgb(29, 46, 49),
17+
18+
file_tree_added: Color::Rgb(141, 172, 139),
19+
file_tree_deleted: Color::Rgb(194, 113, 102),
20+
file_tree_modified: Color::Rgb(244, 174, 89),
21+
file_tree_renamed: Color::Rgb(147, 191, 194),
22+
file_tree_directory: Color::Rgb(194, 113, 102),
23+
file_tree_current_file_bg: Color::Rgb(29, 46, 49),
24+
file_tree_current_file_fg: Color::Rgb(154, 191, 190),
25+
file_tree_default: Color::Rgb(154, 191, 190),
26+
file_tree_stats_added: Color::Rgb(141, 172, 139),
27+
file_tree_stats_deleted: Color::Rgb(194, 113, 102),
28+
29+
terminal_command: Color::Rgb(154, 191, 190),
30+
terminal_output: Color::Rgb(107, 141, 148),
31+
terminal_cursor_bg: Color::Rgb(244, 174, 89),
32+
terminal_cursor_fg: Color::Rgb(15, 27, 29),
33+
34+
status_hash: Color::Rgb(244, 174, 89),
35+
status_author: Color::Rgb(141, 172, 139),
36+
status_date: Color::Rgb(147, 191, 194),
37+
status_message: Color::Rgb(154, 191, 190),
38+
status_no_commit: Color::Rgb(107, 141, 148),
39+
40+
separator: Color::Rgb(107, 141, 148),
41+
42+
syntax_keyword: Color::Rgb(194, 113, 102),
43+
syntax_type: Color::Rgb(212, 154, 79),
44+
syntax_function: Color::Rgb(212, 154, 79),
45+
syntax_variable: Color::Rgb(154, 191, 190),
46+
syntax_string: Color::Rgb(141, 172, 139),
47+
syntax_number: Color::Rgb(196, 132, 122),
48+
syntax_comment: Color::Rgb(107, 141, 148),
49+
syntax_operator: Color::Rgb(143, 181, 179),
50+
syntax_punctuation: Color::Rgb(122, 154, 153),
51+
syntax_constant: Color::Rgb(196, 132, 122),
52+
syntax_parameter: Color::Rgb(122, 154, 153),
53+
syntax_property: Color::Rgb(154, 191, 190),
54+
syntax_label: Color::Rgb(194, 113, 102),
55+
}
56+
}

0 commit comments

Comments
 (0)