diff options
Diffstat (limited to 'config/quickshell/overview/common')
4 files changed, 31 insertions, 3 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 |
