This commit is contained in:
Zacharias-Brohn
2026-02-16 19:46:26 +01:00
parent 168c0cd686
commit b22e79a2c5
4 changed files with 21 additions and 12 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import Quickshell.Io
JsonObject { JsonObject {
property bool enabled: true property bool enabled: true
property int hideDelay: 5000 property int hideDelay: 3000
property bool enableBrightness: true property bool enableBrightness: true
property bool enableMicrophone: true property bool enableMicrophone: true
property Sizes sizes: Sizes {} property Sizes sizes: Sizes {}
+1
View File
@@ -240,6 +240,7 @@ CustomMouseArea {
if (root.visibilities.osd) { if (root.visibilities.osd) {
// OSD became visible, immediately check if this should be shortcut mode // OSD became visible, immediately check if this should be shortcut mode
const inOsdArea = root.inRightPanel(root.panels.osd, root.mouseX, root.mouseY); const inOsdArea = root.inRightPanel(root.panels.osd, root.mouseX, root.mouseY);
console.log(inOsdArea);
if (!inOsdArea) { if (!inOsdArea) {
root.osdShortcutActive = true; root.osdShortcutActive = true;
} }
+11 -11
View File
@@ -23,29 +23,29 @@ ShapePath {
radiusY: root.rounding radiusY: root.rounding
} }
PathLine { PathLine {
relativeX: -(root.wrapper.width - root.roundingX * 2) relativeX: -(root.wrapper.width - root.roundingX * 3)
relativeY: 0 relativeY: 0
} }
PathArc { PathArc {
relativeX: -root.roundingX relativeX: -root.roundingX * 2
relativeY: root.rounding relativeY: root.rounding * 2
radiusX: Math.min(root.rounding, root.wrapper.width) radiusX: Math.min(root.rounding * 2, root.wrapper.width)
radiusY: root.rounding radiusY: root.rounding * 2
direction: PathArc.Counterclockwise direction: PathArc.Counterclockwise
} }
PathLine { PathLine {
relativeX: 0 relativeX: 0
relativeY: root.wrapper.height - root.rounding * 2 relativeY: root.wrapper.height - root.rounding * 4
} }
PathArc { PathArc {
relativeX: root.roundingX relativeX: root.roundingX * 2
relativeY: root.rounding relativeY: root.rounding * 2
radiusX: Math.min(root.rounding, root.wrapper.width) radiusX: Math.min(root.rounding * 2, root.wrapper.width)
radiusY: root.rounding radiusY: root.rounding * 2
direction: PathArc.Counterclockwise direction: PathArc.Counterclockwise
} }
PathLine { PathLine {
relativeX: root.wrapper.width - root.roundingX * 2 relativeX: root.wrapper.width - root.roundingX * 3
relativeY: 0 relativeY: 0
} }
PathArc { PathArc {
+8
View File
@@ -105,6 +105,14 @@ Item {
} }
} }
CustomShortcut {
name: "show-osd"
onPressed: {
root.show();
}
}
Timer { Timer {
id: timer id: timer