call stickypad notes

This commit is contained in:
end-4
2025-11-14 10:28:09 +01:00
parent 237fa85f0f
commit c8c4642c61
4 changed files with 12 additions and 11 deletions
@@ -131,13 +131,13 @@ Singleton {
property real height: 600 property real height: 600
property int tabIndex: 0 property int tabIndex: 0
} }
property JsonObject stickypad: JsonObject { property JsonObject notes: JsonObject {
property bool pinned: true property bool pinned: false
property bool clickthrough: false property bool clickthrough: true
property real x: 100 property real x: 1400
property real y: 100 property real y: 42
property real width: 350 property real width: 460
property real height: 600 property real height: 330
} }
} }
@@ -11,7 +11,7 @@ Singleton {
{ identifier: "floatingImage", materialSymbol: "imagesmode" }, { identifier: "floatingImage", materialSymbol: "imagesmode" },
{ identifier: "recorder", materialSymbol: "screen_record" }, { identifier: "recorder", materialSymbol: "screen_record" },
{ identifier: "resources", materialSymbol: "browse_activity" }, { identifier: "resources", materialSymbol: "browse_activity" },
{ identifier: "stickypad", materialSymbol: "note_stack" }, { identifier: "notes", materialSymbol: "note_stack" },
{ identifier: "volumeMixer", materialSymbol: "volume_up" }, { identifier: "volumeMixer", materialSymbol: "volume_up" },
] ]
@@ -23,6 +23,6 @@ DelegateChooser {
DelegateChoice { roleValue: "fpsLimiter"; FpsLimiter {} } DelegateChoice { roleValue: "fpsLimiter"; FpsLimiter {} }
DelegateChoice { roleValue: "recorder"; Recorder {} } DelegateChoice { roleValue: "recorder"; Recorder {} }
DelegateChoice { roleValue: "resources"; Resources {} } DelegateChoice { roleValue: "resources"; Resources {} }
DelegateChoice { roleValue: "stickypad"; Stickypad {} } DelegateChoice { roleValue: "notes"; Stickypad {} }
DelegateChoice { roleValue: "volumeMixer"; VolumeMixer {} } DelegateChoice { roleValue: "volumeMixer"; VolumeMixer {} }
} }
@@ -1,16 +1,17 @@
import QtQuick import QtQuick
import QtQuick.Layouts import QtQuick.Layouts
import Quickshell import Quickshell
import qs.services
import qs.modules.common import qs.modules.common
import qs.modules.ii.overlay import qs.modules.ii.overlay
StyledOverlayWidget { StyledOverlayWidget {
id: root id: root
title: "Stickypad" title: Translation.tr("Notes")
showCenterButton: true showCenterButton: true
contentItem: StickypadContent { contentItem: StickypadContent {
anchors.fill: parent radius: root.contentRadius
isClickthrough: root.clickthrough isClickthrough: root.clickthrough
} }
} }