image: repost_image wrapper

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2025-09-04 15:32:43 -04:00
parent 80ae489967
commit 7caf77aa1c

View File

@@ -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"))
}