colours: fix switching

Also remove unnecessary clipping rects around dashboard panes
This commit is contained in:
2 * r + 2 * t 2025-06-08 17:33:39 +10:00
parent 645bb8b696
commit c1d1bf447b
2 changed files with 7 additions and 27 deletions

View file

@ -4,7 +4,6 @@ import "root:/config"
import Quickshell
import Quickshell.Widgets
import QtQuick
import QtQuick.Controls
Item {
id: root
@ -84,36 +83,17 @@ Item {
Row {
id: row
ClippingWrapperRectangle {
id: dash
radius: Appearance.rounding.normal
color: "transparent"
Dash {
shouldUpdate: visible && dash === view.currentItem
shouldUpdate: visible && this === view.currentItem
}
}
ClippingWrapperRectangle {
id: media
radius: Appearance.rounding.normal
color: "transparent"
Media {
shouldUpdate: visible && media === view.currentItem
shouldUpdate: visible && this === view.currentItem
visibilities: root.visibilities
}
}
ClippingWrapperRectangle {
radius: Appearance.rounding.normal
color: "transparent"
Performance {}
}
}
Behavior on contentX {
NumberAnimation {

View file

@ -44,7 +44,7 @@ Singleton {
colours[name] = `#${colour.trim()}`;
}
if (isPreview && endPreviewOnNextChange) {
if (!isPreview || (isPreview && endPreviewOnNextChange)) {
showPreview = false;
endPreviewOnNextChange = false;
}