less curve

This commit is contained in:
2026-03-07 23:07:40 -06:00
parent 95043f84e4
commit 17ad2959c1
3 changed files with 6 additions and 8 deletions

View File

@@ -10,11 +10,7 @@ import Quickshell.Hyprland
PanelWindow {
property real radius: 20
onClosed: {
Hyprland.dispatch("exec hyprctl keyword monitor eDP-1,addreserved,0,100,0,0")
}
property real radius: 10
anchors {
top: true
@@ -27,7 +23,7 @@ PanelWindow {
Component.onCompleted: {
//Hyprland.dispatch("exec hyprctl keyword monitor eDP-1,addreserved," + topRect.height + "," + botRect.height + "," + leftRect.width + "," + rightRect.width)
Hyprland.dispatch("exec hyprctl keyword monitor eDP-1,addreserved," + topEx + "," + botEx + "," + leftEx + "," + rightEx)
Hyprland.dispatch("exec hyprctl keyword monitor eDP-1,addreserved," + (midFO.visible ? midFO.y + midFO.height : topEx) + "," + botEx + "," + leftEx + "," + rightEx)
}
@@ -76,6 +72,7 @@ PanelWindow {
onEntered: {
midFO.set = !midFO.set
midFO.visible = Qt.binding(() => midFO.set)
Hyprland.dispatch("exec hyprctl keyword monitor eDP-1,addreserved," + (midFO.visible ? midFO.y + midFO.height : topEx) + "," + botEx + "," + leftEx + "," + rightEx)
}
//onEntered: midFO.visible = true
}

View File

@@ -7,8 +7,8 @@ import Quickshell.Widgets
MouseArea {
id: root
property real radius: 15
property real pad: 10
property real radius: 10
property real pad: 5
property color color
property Item item