aboutsummaryrefslogtreecommitdiffstats
path: root/src/themes.rs
diff options
context:
space:
mode:
authorboasting-squirrel <boasting.squirrel@gmail.com>2019-04-02 18:18:37 +0000
committerboasting-squirrel <boasting.squirrel@gmail.com>2019-04-02 18:18:37 +0000
commit9f20b666a595e7c844d9707b7ccf202662d8322f (patch)
tree7eb0094c14141145568a2516863ed8657619a75c /src/themes.rs
parentRemoved query params when clicking on a file (diff)
downloadminiserve-9f20b666a595e7c844d9707b7ccf202662d8322f.tar.gz
miniserve-9f20b666a595e7c844d9707b7ccf202662d8322f.zip
Added light theme
Diffstat (limited to '')
-rw-r--r--src/themes.rs40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/themes.rs b/src/themes.rs
index 885c628..f38814e 100644
--- a/src/themes.rs
+++ b/src/themes.rs
@@ -10,6 +10,9 @@ pub enum ColorScheme {
#[serde(alias = "monokai")]
Monokai,
+
+ #[serde(alias = "squirrel")]
+ Squirrel,
}
impl ColorScheme {
@@ -19,6 +22,7 @@ impl ColorScheme {
ColorScheme::Archlinux => "archlinux",
ColorScheme::Zenburn => "zenburn",
ColorScheme::Monokai => "monokai",
+ ColorScheme::Squirrel => "squirrel",
}
.to_string()
}
@@ -29,6 +33,7 @@ impl ColorScheme {
ColorScheme::Archlinux => true,
ColorScheme::Zenburn => true,
ColorScheme::Monokai => true,
+ ColorScheme::Squirrel => false,
}
}
@@ -38,6 +43,7 @@ impl ColorScheme {
ColorScheme::Archlinux => "Archlinux",
ColorScheme::Zenburn => "Zenburn",
ColorScheme::Monokai => "Monokai",
+ ColorScheme::Squirrel => "Squirrel",
}
.to_string()
}
@@ -48,6 +54,7 @@ impl ColorScheme {
ColorScheme::Archlinux,
ColorScheme::Zenburn,
ColorScheme::Monokai,
+ ColorScheme::Squirrel,
]
}
@@ -153,6 +160,39 @@ impl ColorScheme {
change_theme_link_color_hover: "#F8F8F2".to_string(),
field_color: "#ccc7a7".to_string(),
},
+ ColorScheme::Squirrel => Theme {
+ background: "#FFFFFF".to_string(),
+ text_color: "#323232".to_string(),
+ directory_link_color: "#d02474".to_string(),
+ file_link_color: "#0086B3".to_string(),
+ symlink_link_color: "#ED6A43".to_string(),
+ table_background: "#F5F5F5".to_string(),
+ table_text_color: "#323232".to_string(),
+ table_header_background: "#323232".to_string(),
+ table_header_text_color: "#F5F5F5".to_string(),
+ table_header_active_color: "#FFFFFF".to_string(),
+ active_row_color: "#f6f8fa".to_string(),
+ odd_row_background: "#fbfbfb".to_string(),
+ even_row_background: "#f2f2f2".to_string(),
+ root_link_color: "#323232".to_string(),
+ download_button_background: "#d02474".to_string(),
+ download_button_background_hover: "#f52d8a".to_string(),
+ download_button_link_color: "#F8F8F0".to_string(),
+ download_button_link_color_hover: "#F8F8F0".to_string(),
+ back_button_background: "#d02474".to_string(),
+ back_button_background_hover: "#d02474".to_string(),
+ back_button_link_color: "#F8F8F0".to_string(),
+ back_button_link_color_hover: "#F8F8F0".to_string(),
+ date_text_color: "#797979".to_string(),
+ at_color: "#797979".to_string(),
+ switch_theme_background: "#323232".to_string(),
+ switch_theme_link_color: "#F5F5F5".to_string(),
+ switch_theme_active: "#d02474".to_string(),
+ switch_theme_border: "#49483E".to_string(),
+ change_theme_link_color: "#F5F5F5".to_string(),
+ change_theme_link_color_hover: "#F5F5F5".to_string(),
+ field_color: "#797979".to_string(),
+ },
}
}
}