add toggle for screen corners
This commit is contained in:
parent
9b8e4292f2
commit
3cddfe4291
4 changed files with 7 additions and 7 deletions
|
|
@ -1,7 +1,6 @@
|
||||||
pragma ComponentBehavior: Bound
|
pragma ComponentBehavior: Bound
|
||||||
import Quickshell
|
import Quickshell
|
||||||
import Quickshell.Hyprland
|
import Quickshell.Hyprland
|
||||||
import Quickshell.Widgets
|
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
import qs
|
import qs
|
||||||
|
|
@ -33,7 +32,7 @@ Rectangle {
|
||||||
visible: Hyprland.monitorFor(root.barScreen) === wsWrapper.modelData.monitor
|
visible: Hyprland.monitorFor(root.barScreen) === wsWrapper.modelData.monitor
|
||||||
|
|
||||||
implicitHeight: root.moduleHeight
|
implicitHeight: root.moduleHeight
|
||||||
implicitWidth: wsName.width
|
implicitWidth: 12
|
||||||
parent: wsLayout
|
parent: wsLayout
|
||||||
color: 'transparent'
|
color: 'transparent'
|
||||||
radius: Config.rounding
|
radius: Config.rounding
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ Variants {
|
||||||
preferredRendererType: Shape.CurveRenderer
|
preferredRendererType: Shape.CurveRenderer
|
||||||
asynchronous: true
|
asynchronous: true
|
||||||
enabled: false // Disable mouse input
|
enabled: false // Disable mouse input
|
||||||
visible: Config.rounding != 0
|
visible: Config.showCorners ? true : Config.rounding == 0
|
||||||
|
|
||||||
ShapePath {
|
ShapePath {
|
||||||
id: cornersPath
|
id: cornersPath
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ Singleton {
|
||||||
property double opacity: 1.0
|
property double opacity: 1.0
|
||||||
property string primaryMon: "eDP-1"
|
property string primaryMon: "eDP-1"
|
||||||
property string wallDir: "file://" + Quickshell.env("HOME") + "/.walls"
|
property string wallDir: "file://" + Quickshell.env("HOME") + "/.walls"
|
||||||
|
property bool showCorners: true
|
||||||
Settings {
|
Settings {
|
||||||
|
|
||||||
location: Qt.resolvedUrl("file:///home/lucy/.config/quickshell/settings/settings.ini")
|
location: Qt.resolvedUrl("file:///home/lucy/.config/quickshell/settings/settings.ini")
|
||||||
|
|
@ -27,5 +28,6 @@ Singleton {
|
||||||
property alias primaryMon: root.primaryMon
|
property alias primaryMon: root.primaryMon
|
||||||
property alias floating: root.floating
|
property alias floating: root.floating
|
||||||
property alias wallDir: root.wallDir
|
property alias wallDir: root.wallDir
|
||||||
|
property alias showCorners: root.showCorners
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,13 +5,12 @@ import QtQuick
|
||||||
Text {
|
Text {
|
||||||
font.family: "Material Symbols Rounded"
|
font.family: "Material Symbols Rounded"
|
||||||
color: Colors.text
|
color: Colors.text
|
||||||
font.pixelSize: Config.iconSize
|
font.pointSize: Config.iconSize - 4
|
||||||
property bool fill: true
|
property bool fill: true
|
||||||
renderType: Text.NativeRendering
|
renderType: Text.NativeRendering
|
||||||
font.variableAxes: {
|
font.variableAxes: {
|
||||||
"FILL": fill ? 1 : 0,
|
"FILL": fill ? 1 : 0,
|
||||||
"opsz": 48,
|
"opsz": 24,
|
||||||
"wght": 400,
|
"wght": 400
|
||||||
"GRAD": 24
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue