ui: remove show_pointer

This can just be achieved by on_hover_cursor

Didn't realize this.

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-07-16 09:17:27 -07:00
parent f27b1fe957
commit 461665f599
10 changed files with 58 additions and 94 deletions

View File

@@ -604,10 +604,9 @@ fn hovering_post_button(
let darkmode = ui.ctx().style().visuals.dark_mode;
// only show the compose button on profile pages and on home
let compose_resp = ui.put(rect, ui::post::compose_note_button(darkmode));
if compose_resp.hovered() {
notedeck_ui::show_pointer(ui);
}
let compose_resp = ui
.put(rect, ui::post::compose_note_button(darkmode))
.on_hover_cursor(egui::CursorIcon::PointingHand);
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(