osd
This commit is contained in:
+1
-1
@@ -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 {}
|
||||||
|
|||||||
@@ -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
@@ -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 {
|
||||||
|
|||||||
@@ -105,6 +105,14 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CustomShortcut {
|
||||||
|
name: "show-osd"
|
||||||
|
|
||||||
|
onPressed: {
|
||||||
|
root.show();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
id: timer
|
id: timer
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user