pub struct Activity {
pub id: ActivityId,
pub module: String,
pub view: String,
pub payload: Value,
pub expanded: bool,
pub expandable: bool,
pub key: Option<String>,
pub modal: bool,
pub overlay: Option<String>,
pub output: Option<String>,
pub outside: bool,
pub over_fullscreen: bool,
}Expand description
The activity the island shows.
Fields§
§id: ActivityId§module: String§view: StringThe view to load: modules/<module>/<view>.qml.
payload: Value§expanded: boolWhether view is the expanded view.
expandable: boolWhether a click toggles between a compact and an expanded view.
key: Option<String>The module’s replacement key. A new activity with the same module, key and view continues the previous one: the UI updates the payload in place instead of switching views.
modal: boolTakes the keyboard while shown, and a click anywhere outside the island dismisses it. For views you type into, like a launcher.
overlay: Option<String>A full-screen view, modules/<module>/<overlay>.qml, drawn under the
island on every monitor while the activity shows. For picking
something on screen, like a region to capture. Implies modal.
output: Option<String>The monitor a modal activity shows on, by name. The islands on other monitors keep what they showed. Without one, every island shows it.
outside: boolA click outside the island closes it, which means the UI catches
every click while it shows. Implied by modal.
over_fullscreen: boolShows over a fullscreen window, which hides the island otherwise. A modal activity shows there without it.