forked from 1b-agent/opencadstudio-upstream
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:
1 parent
7c893d8f5f
commit
44d0c65ae9
10 files changed
+115
-17
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user