diff --git a/i18n/en/cosmic_edit.ftl b/i18n/en/cosmic_edit.ftl index 11a9107..25e057f 100644 --- a/i18n/en/cosmic_edit.ftl +++ b/i18n/en/cosmic_edit.ftl @@ -39,6 +39,8 @@ enable-vim-bindings = Enable Vim bindings # Find find-placeholder = Find... +find-previous = Find previous +find-next = Find next # Menu diff --git a/src/main.rs b/src/main.rs index cd53dfd..798e45e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1891,16 +1891,24 @@ impl Application for App { ); let find_widget = widget::row::with_children(vec![ text_input.into(), - button(icon_cache_get("go-up-symbolic", 16)) - .on_press(Message::FindPrevious) - .padding(space_xxs) - .style(style::Button::Icon) - .into(), - button(icon_cache_get("go-down-symbolic", 16)) - .on_press(Message::FindNext) - .padding(space_xxs) - .style(style::Button::Icon) - .into(), + widget::tooltip( + button(icon_cache_get("go-up-symbolic", 16)) + .on_press(Message::FindPrevious) + .padding(space_xxs) + .style(style::Button::Icon), + fl!("find-previous"), + widget::tooltip::Position::Top, + ) + .into(), + widget::tooltip( + button(icon_cache_get("go-down-symbolic", 16)) + .on_press(Message::FindNext) + .padding(space_xxs) + .style(style::Button::Icon), + fl!("find-next"), + widget::tooltip::Position::Top, + ) + .into(), widget::horizontal_space(Length::Fill).into(), button(icon_cache_get("window-close-symbolic", 16)) .on_press(Message::Find(None))