move styled button

This commit is contained in:
Benjamin Palko 2025-08-29 16:38:23 -04:00
parent cda3334296
commit 2762c7952a
6 changed files with 6 additions and 1 deletions

View file

@ -1,32 +0,0 @@
import qs.config
import QtQuick
import Quickshell.Widgets
WrapperMouseArea {
id: root
required property Component content
property alias padding: rectangle.margin
property alias color: rectangle.color
property alias border: rectangle.border
property alias radius: rectangle.radius
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
WrapperRectangle {
id: rectangle
margin: 8
radius: 8
color: root.containsMouse && root.hoverEnabled ? Theme.palette.primary : Theme.palette.base100
Behavior on color {
ColorAnimation {
duration: 200
easing.type: Easing.InOutQuad
}
}
Loader {
active: true
sourceComponent: root.content
}
}
}