white icon on high contrast
This commit is contained in:
parent
dab8979eaf
commit
a2e6c38d24
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue