mirror of
https://github.com/aljazceru/notedeck.git
synced 2026-02-21 00:14:30 +01:00
ui/note: use rolling numbers for note stats
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -916,7 +916,8 @@ fn actionbar_ui(
|
||||
};
|
||||
|
||||
if count > 0 {
|
||||
ui.weak(format!("{}", count));
|
||||
//ui.weak(format!("{}", count));
|
||||
crate::anim::rolling_number(ui, egui::Id::new((note_key, "replies")), count);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -933,7 +934,7 @@ fn actionbar_ui(
|
||||
if let Some(c) = &counts {
|
||||
let count = c.reactions();
|
||||
if count > 0 {
|
||||
ui.weak(format!("{}", count));
|
||||
crate::anim::rolling_number(ui, egui::Id::new((note_key, "likes")), count);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -945,7 +946,7 @@ fn actionbar_ui(
|
||||
if let Some(c) = &counts {
|
||||
let count = c.quotes() + c.reposts();
|
||||
if count > 0 {
|
||||
ui.weak(format!("{}", count));
|
||||
crate::anim::rolling_number(ui, egui::Id::new((note_key, "quotes")), count as u32);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user