mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
26 lines
690 B
QML
26 lines
690 B
QML
import qs.modules.common
|
|
import QtQuick
|
|
|
|
RippleButton {
|
|
id: root
|
|
|
|
buttonRadius: 0
|
|
implicitHeight: 36
|
|
implicitWidth: buttonTextWidget.implicitWidth + 14 * 2
|
|
|
|
contentItem: StyledText {
|
|
id: buttonTextWidget
|
|
anchors.fill: parent
|
|
anchors.leftMargin: 14
|
|
anchors.rightMargin: 14
|
|
text: root.buttonText
|
|
horizontalAlignment: Text.AlignLeft
|
|
font.pixelSize: Appearance.font.pixelSize.small
|
|
color: root.enabled ? Appearance.m3colors.m3onSurface : Appearance.m3colors.m3outline
|
|
|
|
Behavior on color {
|
|
animation: Appearance.animation.elementMoveFast.colorAnimation.createObject(this)
|
|
}
|
|
}
|
|
|
|
}
|