From 53bd4a38159edfec4db7d80813a3cf51a36fb491 Mon Sep 17 00:00:00 2001 From: Alex Pasmantier <47638216+alexpasmantier@users.noreply.github.com> Date: Mon, 6 Jan 2025 00:00:51 +0100 Subject: [PATCH] feat(ui): add new `television` theme that inherits the terminal bg (#220) --- crates/television/config/themes/builtin.rs | 4 ++++ themes/television.toml | 21 +++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 themes/television.toml diff --git a/crates/television/config/themes/builtin.rs b/crates/television/config/themes/builtin.rs index ff6ee77..1287272 100644 --- a/crates/television/config/themes/builtin.rs +++ b/crates/television/config/themes/builtin.rs @@ -5,6 +5,10 @@ use lazy_static::lazy_static; lazy_static! { pub static ref BUILTIN_THEMES: HashMap<&'static str, &'static str> = { let mut m = HashMap::new(); + m.insert( + "television", + include_str!("../../../../themes/television.toml"), + ); m.insert( "gruvbox-dark", include_str!("../../../../themes/gruvbox-dark.toml"), diff --git a/themes/television.toml b/themes/television.toml new file mode 100644 index 0000000..99c0794 --- /dev/null +++ b/themes/television.toml @@ -0,0 +1,21 @@ +# general +# Comment this out to use your terminal's default background color +# background = '#18191a' +border_fg = '#6a6a7e' +text_fg = '#cdcdcd' +dimmed_text_fg = '#646477' +# input +input_text_fg = '#d2788c' +result_count_fg = '#d2788c' +# results +result_name_fg = '#9a9ac7' +result_line_number_fg = '#d2a374' +result_value_fg = '#646477' +selection_bg = '#282830' +match_fg = '#d2788c' +# preview +preview_title_fg = '#d2a374' +# modes +channel_mode_fg = '#8faf77' +remote_control_mode_fg = '#d2a374' +send_to_channel_mode_fg = '#d2788c'