aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/quickshell/overview/common/Config.qml4
-rw-r--r--config/quickshell/overview/common/widgets/RectangularShadow.qml28
-rw-r--r--config/quickshell/overview/common/widgets/StyledRectangularShadow.qml1
-rw-r--r--config/quickshell/overview/common/widgets/qmldir1
-rw-r--r--config/quickshell/overview/config.example.json4
5 files changed, 33 insertions, 5 deletions
diff --git a/config/quickshell/overview/common/Config.qml b/config/quickshell/overview/common/Config.qml
index 621b39db..7206503d 100644
--- a/config/quickshell/overview/common/Config.qml
+++ b/config/quickshell/overview/common/Config.qml
@@ -108,7 +108,7 @@ Singleton {
property int columns: root.readInt("overview.columns", 5)
property real scale: root.readReal("overview.scale", 0.16)
property bool enable: root.readBool("overview.enable", true)
- property bool hideEmptyRows: root.readBool("overview.hideEmptyRows", true)
+ property bool hideEmptyRows: root.readBool("overview.hideEmptyRows", false)
property bool closeOnFocusLoss: root.readBool("overview.closeOnFocusLoss", true)
property bool useWorkspaceMap: root.readBool("overview.useWorkspaceMap", false)
property var workspaceMap: root.read("overview.workspaceMap", [])
@@ -118,7 +118,7 @@ Singleton {
property string previewMode: root.readString("overview.previewMode", "live")
property bool includeInactiveMonitorPreviews: root.readBool("overview.includeInactiveMonitorPreviews", true)
property int previewRecaptureDelayMs: root.readInt("overview.previewRecaptureDelayMs", 60)
- property bool showSpecialWorkspaces: root.readBool("overview.showSpecialWorkspaces", true)
+ property bool showSpecialWorkspaces: root.readBool("overview.showSpecialWorkspaces", false)
property var specialWorkspaces: root.read("overview.specialWorkspaces", [])
property int specialWorkspaceColumns: root.readInt("overview.specialWorkspaceColumns", columns)
property string emptyWorkspaceWallpaper: root.readString("overview.emptyWorkspaceWallpaper", "")
diff --git a/config/quickshell/overview/common/widgets/RectangularShadow.qml b/config/quickshell/overview/common/widgets/RectangularShadow.qml
new file mode 100644
index 00000000..2289d4c0
--- /dev/null
+++ b/config/quickshell/overview/common/widgets/RectangularShadow.qml
@@ -0,0 +1,28 @@
+import QtQuick
+import QtQuick.Effects
+
+Item {
+ id: root
+
+ property var target: parent
+ property real radius: 0
+ property real blur: 0
+ property vector2d offset: Qt.vector2d(0.0, 0.0)
+ property real spread: 0
+ property color color: "black"
+ property bool cached: false
+
+ anchors.fill: target
+ visible: target !== null
+
+ MultiEffect {
+ anchors.fill: target
+ source: target
+ shadowEnabled: true
+ shadowColor: root.color
+ shadowBlur: root.blur
+ shadowHorizontalOffset: root.offset.x
+ shadowVerticalOffset: root.offset.y
+ shadowOpacity: 1.0
+ }
+}
diff --git a/config/quickshell/overview/common/widgets/StyledRectangularShadow.qml b/config/quickshell/overview/common/widgets/StyledRectangularShadow.qml
index ccdff1ac..dba2159f 100644
--- a/config/quickshell/overview/common/widgets/StyledRectangularShadow.qml
+++ b/config/quickshell/overview/common/widgets/StyledRectangularShadow.qml
@@ -3,7 +3,6 @@ import QtQuick.Effects
import ".."
RectangularShadow {
- required property var target
anchors.fill: target
radius: 20
blur: 0.9 * Appearance.sizes.elevationMargin
diff --git a/config/quickshell/overview/common/widgets/qmldir b/config/quickshell/overview/common/widgets/qmldir
index 0efe1360..c974f193 100644
--- a/config/quickshell/overview/common/widgets/qmldir
+++ b/config/quickshell/overview/common/widgets/qmldir
@@ -1,4 +1,5 @@
StyledText 1.0 StyledText.qml
StyledRectangularShadow 1.0 StyledRectangularShadow.qml
+RectangularShadow 1.0 RectangularShadow.qml
StyledToolTip 1.0 StyledToolTip.qml
StyledToolTipContent 1.0 StyledToolTipContent.qml
diff --git a/config/quickshell/overview/config.example.json b/config/quickshell/overview/config.example.json
index 2f3a4fe9..1c764788 100644
--- a/config/quickshell/overview/config.example.json
+++ b/config/quickshell/overview/config.example.json
@@ -46,7 +46,7 @@
"columns": 5,
"scale": 0.16,
"enable": true,
- "hideEmptyRows": true,
+ "hideEmptyRows": false,
"closeOnFocusLoss": true,
"useWorkspaceMap": false,
"workspaceMap": [0, 10],
@@ -56,7 +56,7 @@
"previewMode": "live",
"includeInactiveMonitorPreviews": true,
"previewRecaptureDelayMs": 60,
- "showSpecialWorkspaces": true,
+ "showSpecialWorkspaces": false,
"specialWorkspaces": [],
"specialWorkspaceColumns": 5,
"emptyWorkspaceWallpaper": "",
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage