colours: fix switching
Also remove unnecessary clipping rects around dashboard panes
This commit is contained in:
parent
645bb8b696
commit
c1d1bf447b
2 changed files with 7 additions and 27 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ Singleton {
|
|||
colours[name] = `#${colour.trim()}`;
|
||||
}
|
||||
|
||||
if (isPreview && endPreviewOnNextChange) {
|
||||
if (!isPreview || (isPreview && endPreviewOnNextChange)) {
|
||||
showPreview = false;
|
||||
endPreviewOnNextChange = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue