feat(themes): more builtin UI themes (#125)

This commit is contained in:
Alexandre Pasmantier 2024-12-15 13:26:28 +01:00 committed by GitHub
parent a7064c18c8
commit 4164e9092b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 140 additions and 3 deletions

View File

@ -44,7 +44,7 @@ input_bar_position = "bottom"
# A list of builtin themes can be found in the `themes` directory of the television
# repository. You may also create your own theme by creating a new file in a `themes`
# directory in your configuration directory (see the `config.toml` location above).
theme = "catppuccin-mocha"
theme = "catppuccin"
# Previewers settings
# ----------------------------------------------------------------------------

View File

@ -10,8 +10,12 @@ lazy_static! {
include_str!("../../../../themes/gruvbox-dark.toml"),
);
m.insert(
"catppuccin-mocha",
include_str!("../../../../themes/catppuccin-mocha.toml"),
"gruvbox-light",
include_str!("../../../../themes/gruvbox-light.toml"),
);
m.insert(
"catppuccin",
include_str!("../../../../themes/catppuccin.toml"),
);
m.insert(
"nord-dark",
@ -21,6 +25,17 @@ lazy_static! {
"solarized-dark",
include_str!("../../../../themes/solarized-dark.toml"),
);
m.insert(
"solarized-light",
include_str!("../../../../themes/solarized-light.toml"),
);
m.insert("dracula", include_str!("../../../../themes/dracula.toml"));
m.insert("monokai", include_str!("../../../../themes/monokai.toml"));
m.insert("onedark", include_str!("../../../../themes/onedark.toml"));
m.insert(
"tokyonight",
include_str!("../../../../themes/tokyonight.toml"),
);
m
};
}

20
themes/dracula.toml Normal file
View File

@ -0,0 +1,20 @@
# general
background = '#282A36'
border_fg = '#6272A4'
text_fg = '#F8F8F2'
dimmed_text_fg = '#6272A4'
# input
input_text_fg = '#FF5555'
result_count_fg = '#FF5555'
# results
result_name_fg = '#BD93F9'
result_line_number_fg = '#F1FA8C'
result_value_fg = '#FF79C6'
selection_bg = '#44475A'
match_fg = '#FF5555'
# preview
preview_title_fg = '#50FA7B'
# modes
channel_mode_fg = '#8BE9FD'
remote_control_mode_fg = '#FFB86C'
send_to_channel_mode_fg = '#FF79C6'

21
themes/gruvbox-light.toml Normal file
View File

@ -0,0 +1,21 @@
# general
background = '#fbf1c7'
border_fg = '#bdae93'
text_fg = '#504945'
dimmed_text_fg = '#79740e'
# input
input_text_fg = '#af3a03'
result_count_fg = '#af3a03'
# results
result_name_fg = '#076678'
result_line_number_fg = '#d79921'
result_value_fg = '#665c54'
selection_bg = '#ebdbb2'
match_fg = '#af3a03'
# preview
preview_title_fg = '#98971a'
# modes
channel_mode_fg = '#d65d0e'
remote_control_mode_fg = '#689d6a'
send_to_channel_mode_fg = '#458588'

20
themes/monokai.toml Normal file
View File

@ -0,0 +1,20 @@
# general
background = '#2e2e2e'
border_fg = '#797979'
text_fg = '#d6d6d6'
dimmed_text_fg = '#ae81ff'
# input
input_text_fg = '#f92672'
result_count_fg = '#f92672'
# results
result_name_fg = '#a6e22e'
result_line_number_fg = '#e5b567'
result_value_fg = '#d6d6d6'
selection_bg = '#494949'
match_fg = '#f92672'
# preview
preview_title_fg = '#fd971f'
# modes
channel_mode_fg = '#fd971f'
remote_control_mode_fg = '#a6e22e'
send_to_channel_mode_fg = '#66d9ef'

20
themes/onedark.toml Normal file
View File

@ -0,0 +1,20 @@
# general
background = '#2c323c'
border_fg = '#5c6370'
text_fg = '#abb2bf'
dimmed_text_fg = '#c678dd'
# input
input_text_fg = '#e06c75'
result_count_fg = '#e06c75'
# results
result_name_fg = '#61afef'
result_line_number_fg = '#e5c07b'
result_value_fg = '#abb2bf'
selection_bg = '#3e4452'
match_fg = '#e06c75'
# preview
preview_title_fg = '#61afef'
# modes
channel_mode_fg = '#61afef'
remote_control_mode_fg = '#98c379'
send_to_channel_mode_fg = '#c678dd'

View File

@ -0,0 +1,20 @@
# general
background = '#fdf6e3'
border_fg = '#93a1a1'
text_fg = '#b58900'
dimmed_text_fg = '#cb4b16'
# input
input_text_fg = '#cb4b16'
result_count_fg = '#cb4b16'
# results
result_name_fg = '#268bd2'
result_line_number_fg = '#b58900'
result_value_fg = '#93a1a1'
selection_bg = '#eee8d5'
match_fg = '#cb4b16'
# preview
preview_title_fg = '#859900'
# modes
channel_mode_fg = '#2aa198'
remote_control_mode_fg = '#859900'
send_to_channel_mode_fg = '#dc322f'

21
themes/tokyonight.toml Normal file
View File

@ -0,0 +1,21 @@
# general
background = '#1a1b26'
border_fg = '#a9b1d6'
text_fg = '#c0caf5'
dimmed_text_fg = '#8db0ff'
# input
input_text_fg = '#f7768e'
result_count_fg = '#f7768e'
# results
result_name_fg = '#7aa2f7'
result_line_number_fg = '#faba4a'
result_value_fg = '#a9b1d6'
selection_bg = '#414868'
match_fg = '#f7768e'
# preview
preview_title_fg = '#bb9af7'
# modes
channel_mode_fg = '#faba4a'
remote_control_mode_fg = '#9ece6a'
send_to_channel_mode_fg = '#a4daff'