From d4879aefe95ff9841a2389ea631aa1b95c04bc66 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Sat, 9 Mar 2024 01:39:16 -0800 Subject: [PATCH] actionbar placeholder --- src/app.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/app.rs b/src/app.rs index 5b7ec40..687ccc2 100644 --- 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!();