white icon on high contrast

This commit is contained in:
Piyush मिश्रः 2022-01-15 19:42:03 +05:30
parent dab8979eaf
commit a2e6c38d24
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ lazy_static! {
pub static ref ICON: OsString = include_str!("../icon.svg").into(); pub static ref ICON: OsString = include_str!("../icon.svg").into();
pub static ref RELOAD_ICON: OsString = { pub static ref RELOAD_ICON: OsString = {
let img = include_str!("../reload.svg"); let img = include_str!("../reload.svg");
if let config::Themes::Dark = *THEME { if *THEME == config::Themes::Dark || *THEME == config::Themes::HighContrast {
return img.replace("fill=\"black\"", "fill=\"white\"").into(); return img.replace("fill=\"black\"", "fill=\"white\"").into();
} }
img.into() img.into()