mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-14 23:34:01 -04:00
wallpaper: allow SVG wallpapers, with a workaround for a matugen panic I encountered on passing it an SVG - fixes #1350
1.1 KiB
1.1 KiB
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.