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:
parent
7c893d8f5f
commit
44d0c65ae9
10 changed files with 115 additions and 17 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue