From e14ab1ddf1c86ab7522288724acc51d5a22062e3 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 15 Aug 2024 16:09:28 +0200 Subject: ... --- overlays/wttrbar/icons.patch | 115 +++++++++++++++++++++++-------------------- 1 file changed, 62 insertions(+), 53 deletions(-) (limited to 'overlays/wttrbar') diff --git a/overlays/wttrbar/icons.patch b/overlays/wttrbar/icons.patch index 9382ee88..e7e721c8 100644 --- a/overlays/wttrbar/icons.patch +++ b/overlays/wttrbar/icons.patch @@ -1,5 +1,5 @@ diff --git a/src/constants.rs b/src/constants.rs -index 81b1926..36e26ac 100644 +index 81b1926..3619d8f 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -1,64 +1,52 @@ @@ -64,59 +64,59 @@ index 81b1926..36e26ac 100644 - (425, "🌨️"), - (428, "🌨️"), - (431, "🌨️"), -+ (113, ""), -+ (116, ""), -+ (119, ""), -+ (122, ""), -+ (143, ""), -+ (176, ""), -+ (179, ""), -+ (182, ""), -+ (185, ""), -+ (200, ""), -+ (227, ""), -+ (230, ""), -+ (248, ""), -+ (260, ""), -+ (263, ""), -+ (266, ""), -+ (281, ""), -+ (284, ""), -+ (293, ""), -+ (296, ""), -+ (299, ""), -+ (302, ""), -+ (305, ""), -+ (308, ""), -+ (311, ""), -+ (314, ""), -+ (317, ""), -+ (320, ""), -+ (323, ""), -+ (326, ""), -+ (329, ""), -+ (332, ""), -+ (335, ""), -+ (338, ""), -+ (350, ""), -+ (353, ""), -+ (356, ""), -+ (359, ""), -+ (362, ""), -+ (365, ""), -+ (368, ""), -+ (371, ""), -+ (374, ""), -+ (377, ""), -+ (386, ""), -+ (389, ""), -+ (392, ""), -+ (395, ""), ++ (113, ""), ++ (116, ""), ++ (119, ""), ++ (122, ""), ++ (143, ""), ++ (176, ""), ++ (179, ""), ++ (182, ""), ++ (185, ""), ++ (200, ""), ++ (227, ""), ++ (230, ""), ++ (248, ""), ++ (260, ""), ++ (263, ""), ++ (266, ""), ++ (281, ""), ++ (284, ""), ++ (293, ""), ++ (296, ""), ++ (299, ""), ++ (302, ""), ++ (305, ""), ++ (308, ""), ++ (311, ""), ++ (314, ""), ++ (317, ""), ++ (320, ""), ++ (323, ""), ++ (326, ""), ++ (329, ""), ++ (332, ""), ++ (335, ""), ++ (338, ""), ++ (350, ""), ++ (353, ""), ++ (356, ""), ++ (359, ""), ++ (362, ""), ++ (365, ""), ++ (368, ""), ++ (371, ""), ++ (374, ""), ++ (377, ""), ++ (386, ""), ++ (389, ""), ++ (392, ""), ++ (395, ""), ]; pub const ICON_PLACEHOLDER: &str = "{ICON}"; diff --git a/src/main.rs b/src/main.rs -index 6ac4654..8f9ed6a 100644 +index 6ac4654..1b84207 100644 --- a/src/main.rs +++ b/src/main.rs @@ -175,20 +175,20 @@ fn main() { @@ -124,14 +124,14 @@ index 6ac4654..8f9ed6a 100644 if args.fahrenheit { tooltip += &format!( - "⬆️ {}° ⬇️ {}° ", -+ "󰸃 {}° 󰸂 {}° ", ++ "󰸃 {}° 󰸂 {}° ", day["maxtempF"].as_str().unwrap(), day["mintempF"].as_str().unwrap(), ); } else { tooltip += &format!( - "⬆️ {}° ⬇️ {}° ", -+ "󰸃 {}° 󰸂 {}° ", ++ "󰸃 {}° 󰸂 {}° ", day["maxtempC"].as_str().unwrap(), day["mintempC"].as_str().unwrap(), ); @@ -139,7 +139,16 @@ index 6ac4654..8f9ed6a 100644 tooltip += &format!( - "🌅 {} 🌇 {}\n", -+ " {}  {}\n", ++ " {} {}\n", format_ampm_time(day, "sunrise", args.ampm), format_ampm_time(day, "sunset", args.ampm), ); +@@ -207,7 +207,7 @@ fn main() { + } + + let mut tooltip_line = format!( +- "{} {} {} {}", ++ "{} {}{} {}", + format_time(hour["time"].as_str().unwrap(), args.ampm), + WEATHER_CODES + .iter() -- cgit v1.2.3