mirror of
https://github.com/kossLAN/dots.git
synced 2025-11-04 22:49:50 -05:00
29 lines
672 B
QML
29 lines
672 B
QML
import QtQuick
|
|
import qs
|
|
|
|
MouseArea {
|
|
id: root
|
|
hoverEnabled: true
|
|
|
|
property real radius: 10
|
|
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
|
|
|
|
border {
|
|
width: root.containsMouse ? 1 : 0
|
|
color: ShellSettings.colors.active_translucent
|
|
}
|
|
|
|
Behavior on color {
|
|
ColorAnimation {
|
|
duration: 200
|
|
}
|
|
}
|
|
}
|
|
}
|