mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-07 15:59:26 -05:00
26 lines
787 B
QML
26 lines
787 B
QML
import qs.modules.common
|
|
import qs.modules.common.functions
|
|
import qs.modules.common.widgets
|
|
import QtQuick
|
|
|
|
RippleButton {
|
|
id: root
|
|
property bool active: false
|
|
|
|
horizontalPadding: Appearance.rounding.large
|
|
verticalPadding: 12
|
|
|
|
clip: true
|
|
pointingHandCursor: !active
|
|
implicitWidth: contentItem.implicitWidth + horizontalPadding * 2
|
|
implicitHeight: contentItem.implicitHeight + verticalPadding * 2
|
|
Behavior on implicitHeight {
|
|
animation: Appearance.animation.elementMove.numberAnimation.createObject(this)
|
|
}
|
|
|
|
colBackground: ColorUtils.transparentize(Appearance.colors.colLayer3)
|
|
colBackgroundHover: active ? colBackground : Appearance.colors.colLayer3Hover
|
|
colRipple: Appearance.colors.colLayer3Active
|
|
buttonRadius: 0
|
|
}
|