mirror of
https://github.com/kossLAN/dots.git
synced 2025-11-04 22:49:50 -05:00
24 lines
545 B
QML
24 lines
545 B
QML
import QtQuick
|
|
import qs
|
|
|
|
MouseArea {
|
|
id: root
|
|
hoverEnabled: true
|
|
|
|
property real radius: width / 2
|
|
property bool checked: false
|
|
property var activeColor: ShellSettings.colors.active_translucent
|
|
property var inactiveColor: "transparent"
|
|
|
|
Rectangle {
|
|
color: root.containsMouse || root.checked ? root.activeColor : root.inactiveColor
|
|
radius: root.radius
|
|
anchors.fill: parent
|
|
|
|
Behavior on color {
|
|
ColorAnimation {
|
|
duration: 200
|
|
}
|
|
}
|
|
}
|
|
}
|