notedeck

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

commit d95de84f6393680e8d0ba5eea8243d6cdd13fa16
parent 6739ed6d5828ef9847d4f903b76c02aee9f46b32
Author: Fernando López Guevara <fernando.lguevara@gmail.com>
Date:   Mon, 14 Jul 2025 09:58:06 -0300

fix(chrome): add hover text and pointer cursor to sidebar elements

Diffstat:
Mcrates/notedeck_columns/src/ui/side_panel.rs | 23++++++++++++++++++-----
1 file changed, 18 insertions(+), 5 deletions(-)

diff --git a/crates/notedeck_columns/src/ui/side_panel.rs b/crates/notedeck_columns/src/ui/side_panel.rs @@ -1,4 +1,7 @@ -use egui::{vec2, InnerResponse, Layout, Margin, RichText, ScrollArea, Separator, Stroke, Widget}; +use egui::{ + vec2, CursorIcon, InnerResponse, Layout, Margin, RichText, ScrollArea, Separator, Stroke, + Widget, +}; use tracing::{error, info}; use crate::{ @@ -312,7 +315,10 @@ fn add_column_button() -> impl Widget { .shrink((max_size - cur_img_size) / 2.0), ); - helper.take_animation_response() + helper + .take_animation_response() + .on_hover_cursor(CursorIcon::PointingHand) + .on_hover_text("Add new column") } } @@ -354,7 +360,10 @@ pub fn search_button() -> impl Widget { circle_stroke, ); - helper.take_animation_response() + helper + .take_animation_response() + .on_hover_cursor(CursorIcon::PointingHand) + .on_hover_text("Open search") } } @@ -377,7 +386,10 @@ fn add_deck_button() -> impl Widget { .shrink((max_size - cur_img_size) / 2.0), ); - helper.take_animation_response() + helper + .take_animation_response() + .on_hover_cursor(CursorIcon::PointingHand) + .on_hover_text("Add new deck") } } @@ -406,7 +418,8 @@ fn show_decks<'a>( 40.0, highlight, )) - .on_hover_text_at_pointer(&deck.name); + .on_hover_text_at_pointer(&deck.name) + .on_hover_cursor(CursorIcon::PointingHand); if deck_icon_resp.clicked() || deck_icon_resp.secondary_clicked() { clicked_index = Some(index); }