From 6e9f2c14ce071778ca2ae0323bb54b3b22d03f50 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Thu, 6 Nov 2025 10:38:35 +0100 Subject: [PATCH] clarify overlay widget instructions a bit --- .../quickshell/ii/modules/overlay/StyledOverlayWidget.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dots/.config/quickshell/ii/modules/overlay/StyledOverlayWidget.qml b/dots/.config/quickshell/ii/modules/overlay/StyledOverlayWidget.qml index 9e00f6f92..5e6a0ce3f 100644 --- a/dots/.config/quickshell/ii/modules/overlay/StyledOverlayWidget.qml +++ b/dots/.config/quickshell/ii/modules/overlay/StyledOverlayWidget.qml @@ -11,7 +11,7 @@ import qs.modules.common.widgets.widgetCanvas /* * To make an overlay widget: - * 1. Create a modules/overlay//.qml, using this as the base class + * 1. Create a modules/overlay//.qml, using this as the base class and declare your widget content as contentItem * 2. Add an entry to OverlayContext.availableWidgets with identifier= * 3. Add an entry in Persistent.states.overlay. with x, y, pinned, clickthrough properties set to reasonable defaults * 4. Add an entry in OverlayWidgetDelegateChooser with roleValue= and Declare your widget in there @@ -20,9 +20,9 @@ import qs.modules.common.widgets.widgetCanvas AbstractOverlayWidget { id: root - required property var modelData required property Item contentItem + required property var modelData readonly property string identifier: modelData.identifier readonly property string materialSymbol: modelData.materialSymbol ?? "widgets" property string title: identifier.replace(/([A-Z])/g, " $1").replace(/^./, function(str){ return str.toUpperCase(); })