forked from Shinonome/dots-hyprland
ripple button: default size based on contentitem
This commit is contained in:
@@ -32,6 +32,9 @@ Button {
|
|||||||
property color colRipple: Appearance?.colors.colLayer1Active ?? "#D6CEE2"
|
property color colRipple: Appearance?.colors.colLayer1Active ?? "#D6CEE2"
|
||||||
property color colRippleToggled: Appearance?.colors.colPrimaryActive ?? "#D6CEE2"
|
property color colRippleToggled: Appearance?.colors.colPrimaryActive ?? "#D6CEE2"
|
||||||
|
|
||||||
|
implicitWidth: contentItem.implicitWidth + horizontalPadding * 2
|
||||||
|
implicitHeight: contentItem.implicitHeight + verticalPadding * 2
|
||||||
|
|
||||||
property color buttonColor: root.enabled ? (root.toggled ?
|
property color buttonColor: root.enabled ? (root.toggled ?
|
||||||
(root.hovered ? colBackgroundToggledHover :
|
(root.hovered ? colBackgroundToggledHover :
|
||||||
colBackgroundToggled) :
|
colBackgroundToggled) :
|
||||||
|
|||||||
Reference in New Issue
Block a user