forked from Shinonome/dots-hyprland
32 lines
856 B
QML
32 lines
856 B
QML
import "root:/modules/common"
|
|
import "root:/modules/common/functions/color_utils.js" as ColorUtils
|
|
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
import Quickshell
|
|
import Quickshell.Io
|
|
|
|
RippleButton {
|
|
id: button
|
|
|
|
buttonRadius: 0
|
|
implicitHeight: 36
|
|
implicitWidth: buttonTextWidget.implicitWidth + 14 * 2
|
|
|
|
contentItem: StyledText {
|
|
id: buttonTextWidget
|
|
anchors.fill: parent
|
|
anchors.leftMargin: 14
|
|
anchors.rightMargin: 14
|
|
text: button.buttonText
|
|
horizontalAlignment: Text.AlignLeft
|
|
font.pixelSize: Appearance.font.pixelSize.small
|
|
color: button.enabled ? Appearance.m3colors.m3onSurface : Appearance.m3colors.m3outline
|
|
|
|
Behavior on color {
|
|
animation: Appearance.animation.elementMoveFast.colorAnimation.createObject(this)
|
|
}
|
|
}
|
|
|
|
}
|