notedeck

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

commit 6596e89e2903b56e942ed45a6c979ae0aa2c61de
parent ade6f57fd5c6d1d26b7d62bd2770e4d62514669b
Author: William Casarin <jb55@jb55.com>
Date:   Fri, 11 Jul 2025 14:23:38 -0700

anim: animate on compose button hide

before we were just nuking it

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mcrates/notedeck_columns/src/app.rs | 24+++++++++++-------------
1 file changed, 11 insertions(+), 13 deletions(-)

diff --git a/crates/notedeck_columns/src/app.rs b/crates/notedeck_columns/src/app.rs @@ -592,19 +592,17 @@ fn hovering_post_button( let darkmode = ui.ctx().style().visuals.dark_mode; // only show the compose button on profile pages and on home - if should_show_compose { - let compose_resp = ui.put(rect, ui::post::compose_note_button(darkmode)); - if compose_resp.hovered() { - notedeck_ui::show_pointer(ui); - } - if compose_resp.clicked() && !app.columns(app_ctx.accounts).columns().is_empty() { - // just use the some side panel logic as the desktop - DesktopSidePanel::perform_action( - &mut app.decks_cache, - app_ctx.accounts, - SidePanelAction::ComposeNote, - ); - } + let compose_resp = ui.put(rect, ui::post::compose_note_button(darkmode)); + if compose_resp.hovered() { + notedeck_ui::show_pointer(ui); + } + if compose_resp.clicked() && !app.columns(app_ctx.accounts).columns().is_empty() { + // just use the some side panel logic as the desktop + DesktopSidePanel::perform_action( + &mut app.decks_cache, + app_ctx.accounts, + SidePanelAction::ComposeNote, + ); } }