fix: remove more uses of cliprect and finally fix workspace's layer texture
This commit is contained in:
@@ -24,7 +24,8 @@ WidgetBase {
|
||||
StateLayer {
|
||||
color: root.screenState.resources ? Colors.palette.m3onPrimary : Colors.palette.m3onSurface
|
||||
|
||||
onClicked: root.screenState.resources = !root.screenState.resources
|
||||
// onClicked: root.screenState.resources = !root.screenState.resources
|
||||
onClicked: console.log(root.mapToGlobal(0, 0))
|
||||
}
|
||||
|
||||
GridLayout {
|
||||
@@ -34,6 +35,7 @@ WidgetBase {
|
||||
anchors.horizontalCenterOffset: root.horizontal ? 0 : 1
|
||||
anchors.verticalCenterOffset: root.horizontal ? 0 : -3
|
||||
columnSpacing: Tokens.spacing.small
|
||||
rowSpacing: 0
|
||||
columns: root.horizontal ? -1 : 1
|
||||
|
||||
ServiceRef {
|
||||
@@ -52,6 +54,7 @@ WidgetBase {
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
Layout.fillHeight: root.horizontal
|
||||
Layout.fillWidth: !root.horizontal
|
||||
|
||||
horizontal: root.horizontal
|
||||
icon: "memory"
|
||||
iconColor: root.screenState.resources ? Colors.palette.m3onPrimary : Colors.palette.m3onSurface
|
||||
|
||||
Reference in New Issue
Block a user