slint-ui-templates 0.1.0

Composable Slint UI building blocks — mother-child pattern, token-driven
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Shell type definitions — shared by AppShell, DesktopShell, MobileShell.

import { NavItem } from "../desktop/types.slint";
export { NavItem }

/// Toolbar action item consumed by `AppShell` and `DesktopShell`.
export struct ShellToolbarItem {
    /// Stable action id emitted back through toolbar callbacks.
    id:      string,
    /// Icon glyph string, typically from `FluentIcons`.
    icon:    string,
    /// Tooltip text shown for the toolbar button.
    tooltip: string,
}