mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-29 22:47:47 -04:00
deprecation notice to plugin compatibility shims - When qml-common became a thing, we left qs.Widgets shims in place for plugin compatibility - It's annoying to need to maintain them when qml-common has any change, add a warning so we can safely deprecate them in the future - One shot rename the common stuff to D to make it shorter and nicer to write
Stopwatch Example
A standalone dash tab. The manifest uses the single file form, "type": "dash" plus "component", the same way a bar widget uses "type": "widget".
What it shows:
DashTabComponentas the root, sized withimplicitHeightso the dash grows when many laps are shown.livegating. The display timer only runs while the tab is on screen and the stopwatch is running. Time is computed from stored timestamps, so the stopwatch keeps counting while the dash is closed or another tab is open.- The plugin state API (
loadPluginState/savePluginState) for runtime data. Nothing goes into settings, so no permissions are needed. focusTargetandrestoreFocus(). Opening the tab focuses Start without a focus ring, so Space starts it right away.handleKeyEvent: Space starts or pauses, L records a lap, R resets.menuActions: Reset in the tab's edit-mode controls.dash.options: a toggle for hundredths and a number for how many laps to list, read asoptions.hundredthsandoptions.laps.
Open it with dms ipc call dash open plugin_dashTabExample.