commit d4879aefe95ff9841a2389ea631aa1b95c04bc66
parent 4a5a9d431940ec4ed4cd5be765ea27ff563ed343
Author: William Casarin <jb55@jb55.com>
Date: Sat, 9 Mar 2024 01:39:16 -0800
actionbar placeholder
Diffstat:
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/src/app.rs b/src/app.rs
@@ -756,7 +756,7 @@ fn render_note(ui: &mut egui::Ui, damus: &mut Damus, note_key: NoteKey) -> Resul
render_note_contents(ui, damus, &txn, ¬e, note_key);
- //render_note_actionbar(ui, damus);
+ render_note_actionbar(ui);
})
});
});
@@ -764,6 +764,14 @@ fn render_note(ui: &mut egui::Ui, damus: &mut Damus, note_key: NoteKey) -> Resul
Ok(())
}
+fn render_note_actionbar(ui: &mut egui::Ui) {
+ ui.horizontal(|ui| {
+ if ui.button("reply").clicked() {}
+
+ if ui.button("like").clicked() {}
+ });
+}
+
fn render_notes(ui: &mut egui::Ui, damus: &mut Damus, timeline: usize) {
#[cfg(feature = "profiling")]
puffin::profile_function!();