mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-28 07:22:50 -05:00
qmlfmt with 4 space
This commit is contained in:
@@ -3,22 +3,22 @@ import qs.Common
|
||||
import qs.Widgets
|
||||
|
||||
MouseArea {
|
||||
id: root
|
||||
id: root
|
||||
|
||||
property bool disabled: false
|
||||
property color stateColor: Theme.surfaceText
|
||||
property real cornerRadius: parent?.radius ?? Theme.cornerRadius
|
||||
property bool disabled: false
|
||||
property color stateColor: Theme.surfaceText
|
||||
property real cornerRadius: parent?.radius ?? Theme.cornerRadius
|
||||
|
||||
anchors.fill: parent
|
||||
cursorShape: disabled ? undefined : Qt.PointingHandCursor
|
||||
hoverEnabled: true
|
||||
|
||||
Rectangle {
|
||||
id: hoverLayer
|
||||
anchors.fill: parent
|
||||
radius: root.cornerRadius
|
||||
color: Qt.rgba(
|
||||
root.stateColor.r, root.stateColor.g, root.stateColor.b,
|
||||
root.disabled ? 0 : root.pressed ? 0.12 : root.containsMouse ? 0.08 : 0)
|
||||
}
|
||||
cursorShape: disabled ? undefined : Qt.PointingHandCursor
|
||||
hoverEnabled: true
|
||||
|
||||
Rectangle {
|
||||
id: hoverLayer
|
||||
anchors.fill: parent
|
||||
radius: root.cornerRadius
|
||||
color: Qt.rgba(
|
||||
root.stateColor.r, root.stateColor.g, root.stateColor.b,
|
||||
root.disabled ? 0 : root.pressed ? 0.12 : root.containsMouse ? 0.08 : 0)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user