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
import Quickshell.Widgets import Quickshell.Widgets
import QtQuick import QtQuick
import QtQuick.Controls
Item { Item {
id: root id: root
@ -84,35 +83,16 @@ Item {
Row { Row {
id: row id: row
ClippingWrapperRectangle { Dash {
id: dash shouldUpdate: visible && this === view.currentItem
radius: Appearance.rounding.normal
color: "transparent"
Dash {
shouldUpdate: visible && dash === view.currentItem
}
} }
ClippingWrapperRectangle { Media {
id: media shouldUpdate: visible && this === view.currentItem
visibilities: root.visibilities
radius: Appearance.rounding.normal
color: "transparent"
Media {
shouldUpdate: visible && media === view.currentItem
visibilities: root.visibilities
}
} }
ClippingWrapperRectangle { Performance {}
radius: Appearance.rounding.normal
color: "transparent"
Performance {}
}
} }
Behavior on contentX { Behavior on contentX {

View file

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