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 {
property bool enabled: true
property int hideDelay: 5000
property int hideDelay: 3000
property bool enableBrightness: true
property bool enableMicrophone: true
property Sizes sizes: Sizes {}
+1
View File
@@ -240,6 +240,7 @@ CustomMouseArea {
if (root.visibilities.osd) {
// OSD became visible, immediately check if this should be shortcut mode
const inOsdArea = root.inRightPanel(root.panels.osd, root.mouseX, root.mouseY);
console.log(inOsdArea);
if (!inOsdArea) {
root.osdShortcutActive = true;
}
+11 -11
View File
@@ -23,29 +23,29 @@ ShapePath {
radiusY: root.rounding
}
PathLine {
relativeX: -(root.wrapper.width - root.roundingX * 2)
relativeX: -(root.wrapper.width - root.roundingX * 3)
relativeY: 0
}
PathArc {
relativeX: -root.roundingX
relativeY: root.rounding
radiusX: Math.min(root.rounding, root.wrapper.width)
radiusY: root.rounding
relativeX: -root.roundingX * 2
relativeY: root.rounding * 2
radiusX: Math.min(root.rounding * 2, root.wrapper.width)
radiusY: root.rounding * 2
direction: PathArc.Counterclockwise
}
PathLine {
relativeX: 0
relativeY: root.wrapper.height - root.rounding * 2
relativeY: root.wrapper.height - root.rounding * 4
}
PathArc {
relativeX: root.roundingX
relativeY: root.rounding
radiusX: Math.min(root.rounding, root.wrapper.width)
radiusY: root.rounding
relativeX: root.roundingX * 2
relativeY: root.rounding * 2
radiusX: Math.min(root.rounding * 2, root.wrapper.width)
radiusY: root.rounding * 2
direction: PathArc.Counterclockwise
}
PathLine {
relativeX: root.wrapper.width - root.roundingX * 2
relativeX: root.wrapper.width - root.roundingX * 3
relativeY: 0
}
PathArc {
+8
View File
@@ -105,6 +105,14 @@ Item {
}
}
CustomShortcut {
name: "show-osd"
onPressed: {
root.show();
}
}
Timer {
id: timer