add toggle for screen corners

This commit is contained in:
lucy 2026-08-13 14:51:32 +02:00
commit 3cddfe4291
4 changed files with 7 additions and 7 deletions

View file

@ -1,7 +1,6 @@
pragma ComponentBehavior: Bound
import Quickshell
import Quickshell.Hyprland
import Quickshell.Widgets
import QtQuick
import QtQuick.Layouts
import qs
@ -33,7 +32,7 @@ Rectangle {
visible: Hyprland.monitorFor(root.barScreen) === wsWrapper.modelData.monitor
implicitHeight: root.moduleHeight
implicitWidth: wsName.width
implicitWidth: 12
parent: wsLayout
color: 'transparent'
radius: Config.rounding

View file

@ -48,7 +48,7 @@ Variants {
preferredRendererType: Shape.CurveRenderer
asynchronous: true
enabled: false // Disable mouse input
visible: Config.rounding != 0
visible: Config.showCorners ? true : Config.rounding == 0
ShapePath {
id: cornersPath

View file

@ -15,6 +15,7 @@ Singleton {
property double opacity: 1.0
property string primaryMon: "eDP-1"
property string wallDir: "file://" + Quickshell.env("HOME") + "/.walls"
property bool showCorners: true
Settings {
location: Qt.resolvedUrl("file:///home/lucy/.config/quickshell/settings/settings.ini")
@ -27,5 +28,6 @@ Singleton {
property alias primaryMon: root.primaryMon
property alias floating: root.floating
property alias wallDir: root.wallDir
property alias showCorners: root.showCorners
}
}

View file

@ -5,13 +5,12 @@ import QtQuick
Text {
font.family: "Material Symbols Rounded"
color: Colors.text
font.pixelSize: Config.iconSize
font.pointSize: Config.iconSize - 4
property bool fill: true
renderType: Text.NativeRendering
font.variableAxes: {
"FILL": fill ? 1 : 0,
"opsz": 48,
"wght": 400,
"GRAD": 24
"opsz": 24,
"wght": 400
}
}