pub struct WindowCatalog {
pub handle: String,
pub primary: String,
pub windows: Vec<WindowDef>,
pub accent: Option<Expr>,
pub palette: Option<Expr>,
pub appearance: Option<Expr>,
pub icon: Option<Expr>,
pub menu_bar: Option<Element>,
pub status_item: Option<Element>,
}Expand description
Static window kinds declared by the root WindowSet. The first version
supports single-instance windows only.
Fields§
§handle: String§primary: String§windows: Vec<WindowDef>§accent: Option<Expr>The accent every window shows: an enum whose variants name accents
of style!.
palette: Option<Expr>Optional JSON map of semantic roles to light/dark #RRGGBB pairs. The application supplies a complete, contrast-checked palette.
appearance: Option<Expr>The appearance every window shows: an enum of System, Light
and Dark.
icon: Option<Expr>The application icon the system shows: an enum whose Default
variant is [app.icon] and whose other variants name icons of
[app.alternate_icons] (DarkSkin names dark_skin).
The MenuBar: its CommandMenus, their CommandItems, dividers
and submenus, whose drafts are the primary window’s. Only a target
with a system menu bar shows it.
status_item: Option<Element>The StatusItem: the application’s item in the system’s status
area and the CommandItems, dividers and submenus of its menu, which
run without a window. Only a target with a status area shows it; with
it, closing the last window leaves the application running.