Remove slide animation from mcsr thin macro
This commit is contained in:
+9
-6
@@ -10,7 +10,7 @@ Grid {
|
||||
top: parent.top
|
||||
horizontalCenter: parent.horiontalCenter
|
||||
}
|
||||
spacing: 6
|
||||
spacing: 4
|
||||
padding: 6
|
||||
columns: 5
|
||||
horizontalItemAlignment: Grid.AlignHCenter
|
||||
@@ -20,13 +20,15 @@ Grid {
|
||||
Hyprland.refreshToplevels()
|
||||
}
|
||||
component WorkspaceView: ClippingRectangle {
|
||||
id: workspaceView
|
||||
color: "#282828"
|
||||
width: 192
|
||||
radius: 8
|
||||
topLeftRadius: modelData == 0 ? 12 : this.radius
|
||||
topRightRadius: modelData == 4 ? 12 : this.radius
|
||||
bottomLeftRadius: modelData == 5 ? 12 : this.radius
|
||||
height: this.width * Hyprland.focusedMonitor?.height / Hyprland.focusedMonitor?.width
|
||||
property var widthRatio: this.width / Hyprland.focusedMonitor?.width
|
||||
height: Hyprland.focusedMonitor?.height * widthRatio
|
||||
border {
|
||||
width: 2
|
||||
color: {
|
||||
@@ -42,6 +44,7 @@ Grid {
|
||||
Behavior on color { ColorAnimation {duration: 150} }
|
||||
}
|
||||
required property var modelData
|
||||
|
||||
Image {
|
||||
anchors.fill: parent
|
||||
source: Quickshell.shellPath('assets/wallpaper')
|
||||
@@ -50,10 +53,10 @@ Grid {
|
||||
Repeater {
|
||||
model: Hyprland.toplevels.values.filter(tl => tl.workspace?.id == modelData + 1)
|
||||
delegate: ClippingRectangle {
|
||||
x: modelData.lastIpcObject.at[0] / 10 - 2
|
||||
y: modelData.lastIpcObject.at[1] / 10 - 2
|
||||
width: modelData.lastIpcObject.size[0] / 10
|
||||
height: modelData.lastIpcObject.size[1] / 10
|
||||
x: modelData.lastIpcObject.at[0] * workspaceView.widthRatio - 2
|
||||
y: modelData.lastIpcObject.at[1] * workspaceView.widthRatio - 2
|
||||
width: modelData.lastIpcObject.size[0] * workspaceView.widthRatio
|
||||
height: modelData.lastIpcObject.size[1] * workspaceView.widthRatio
|
||||
ScreencopyView {
|
||||
anchors.fill: parent
|
||||
captureSource: modelData.wayland
|
||||
|
||||
Reference in New Issue
Block a user