notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit 7caf77aa1c3a873514e0e283e6230ea3d3265a83
parent 80ae489967d8076b28f86e60593876b9fdec594f
Author: kernelkind <kernelkind@gmail.com>
Date:   Thu,  4 Sep 2025 15:32:43 -0400

image: `repost_image` wrapper

Signed-off-by: kernelkind <kernelkind@gmail.com>

Diffstat:
Mcrates/notedeck_ui/src/app_images.rs | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git 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")) }