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
|
||||||
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 {
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue