feat(ui): add viewport tooltips

Reuse ribbon tooltip styling for every viewport toolbar action and expose translated action names with related commands.

Refs #482
This commit is contained in:
Hakan Seven committed 2026-08-04 19:10:47 +03:00
1 parent 7c893d8f5f
commit 44d0c65ae9
10 files changed
+115 -17

No files matched your search

+8
View File
@@ -28,6 +28,14 @@ pub use collapse::CollapseMode;
use crate::ui::wrap_bar::{PosReport, WrapBar, WrapFlow};
use crate::t;
pub(crate) fn tooltip_content(text: String) -> Element<'static, Message> {
widgets::make_tip(text)
}
pub(crate) fn tooltip_style(theme: &Theme) -> container::Style {
widgets::tip_style(theme)
}
// ── Ribbon state ───────────────────────────────────────────────────────────
pub struct Ribbon {