From 7caf77aa1c3a873514e0e283e6230ea3d3265a83 Mon Sep 17 00:00:00 2001 From: kernelkind Date: Thu, 4 Sep 2025 15:32:43 -0400 Subject: [PATCH] image: `repost_image` wrapper Signed-off-by: kernelkind --- crates/notedeck_ui/src/app_images.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crates/notedeck_ui/src/app_images.rs b/crates/notedeck_ui/src/app_images.rs index 5f1a44a1..9ff01d75 100644 --- a/crates/notedeck_ui/src/app_images.rs +++ b/crates/notedeck_ui/src/app_images.rs @@ -183,6 +183,14 @@ pub fn repost_light_image() -> Image<'static> { Image::new(include_image!("../../../assets/icons/repost_light_4x.png")) } +pub fn repost_image(dark_mode: bool) -> Image<'static> { + if dark_mode { + repost_dark_image() + } else { + repost_light_image() + } +} + pub fn reply_dark_image() -> Image<'static> { Image::new(include_image!("../../../assets/icons/reply.png")) }