summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-08 17:33:39 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-08 17:33:39 +1000
commitc1d1bf447b9343a625fc4460d1f879b0e5de37b4 (patch)
tree7913902aab343a5984d5cacaef771a40bbd095ae
parentreadme: add usage section (diff)
downloadcaelestia-shell-c1d1bf447b9343a625fc4460d1f879b0e5de37b4.tar.gz
caelestia-shell-c1d1bf447b9343a625fc4460d1f879b0e5de37b4.tar.bz2
caelestia-shell-c1d1bf447b9343a625fc4460d1f879b0e5de37b4.zip
colours: fix switching
Also remove unnecessary clipping rects around dashboard panes
-rw-r--r--modules/dashboard/Content.qml32
-rw-r--r--services/Colours.qml2
2 files changed, 7 insertions, 27 deletions
diff --git a/modules/dashboard/Content.qml b/modules/dashboard/Content.qml
index b7b48ff..84079ef 100644
--- a/modules/dashboard/Content.qml
+++ b/modules/dashboard/Content.qml
@@ -4,7 +4,6 @@ import "root:/config"
import Quickshell
import Quickshell.Widgets
import QtQuick
-import QtQuick.Controls
Item {
id: root
@@ -84,35 +83,16 @@ Item {
Row {
id: row
- ClippingWrapperRectangle {
- id: dash
-
- radius: Appearance.rounding.normal
- color: "transparent"
-
- Dash {
- shouldUpdate: visible && dash === view.currentItem
- }
+ Dash {
+ shouldUpdate: visible && this === view.currentItem
}
- ClippingWrapperRectangle {
- id: media
-
- radius: Appearance.rounding.normal
- color: "transparent"
-
- Media {
- shouldUpdate: visible && media === view.currentItem
- visibilities: root.visibilities
- }
+ Media {
+ shouldUpdate: visible && this === view.currentItem
+ visibilities: root.visibilities
}
- ClippingWrapperRectangle {
- radius: Appearance.rounding.normal
- color: "transparent"
-
- Performance {}
- }
+ Performance {}
}
Behavior on contentX {
diff --git a/services/Colours.qml b/services/Colours.qml
index aa4282f..4383972 100644
--- a/services/Colours.qml
+++ b/services/Colours.qml
@@ -44,7 +44,7 @@ Singleton {
colours[name] = `#${colour.trim()}`;
}
- if (isPreview && endPreviewOnNextChange) {
+ if (!isPreview || (isPreview && endPreviewOnNextChange)) {
showPreview = false;
endPreviewOnNextChange = false;
}