From a2e6c38d241e79de228cc14ed33156f3bc95ca95 Mon Sep 17 00:00:00 2001 From: Piyush Mishra Date: Sat, 15 Jan 2022 19:42:03 +0530 Subject: [PATCH] white icon on high contrast --- src/globals.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/globals.rs b/src/globals.rs index 1d1c999..37284fd 100644 --- a/src/globals.rs +++ b/src/globals.rs @@ -32,7 +32,7 @@ lazy_static! { pub static ref ICON: OsString = include_str!("../icon.svg").into(); pub static ref RELOAD_ICON: OsString = { 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(); } img.into()