forked from Shinonome/dots-hyprland
notif clear button: ripple -> bouncy
This commit is contained in:
@@ -4,23 +4,20 @@ import QtQuick
|
|||||||
import QtQuick.Controls
|
import QtQuick.Controls
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
|
|
||||||
RippleButton {
|
GroupButton {
|
||||||
id: button
|
id: button
|
||||||
property string buttonText: ""
|
property string buttonText: ""
|
||||||
property string buttonIcon: ""
|
property string buttonIcon: ""
|
||||||
|
|
||||||
implicitHeight: 30
|
baseWidth: contentRowLayout.implicitWidth + 10 * 2
|
||||||
implicitWidth: contentRowLayout.implicitWidth + 10 * 2
|
baseHeight: 30
|
||||||
Behavior on implicitWidth {
|
clickedWidth: baseWidth + 15
|
||||||
SmoothedAnimation {
|
|
||||||
velocity: Appearance.animation.elementMove.velocity
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
buttonRadius: Appearance.rounding.full
|
buttonRadius: baseHeight / 2
|
||||||
|
buttonRadiusPressed: Appearance.rounding.small
|
||||||
colBackground: Appearance.colors.colLayer2
|
colBackground: Appearance.colors.colLayer2
|
||||||
colBackgroundHover: Appearance.colors.colLayer2Hover
|
colBackgroundHover: Appearance.colors.colLayer2Hover
|
||||||
colRipple: Appearance.colors.colLayer2Active
|
colBackgroundActive: Appearance.colors.colLayer2Active
|
||||||
background.anchors.fill: button
|
background.anchors.fill: button
|
||||||
|
|
||||||
contentItem: Item {
|
contentItem: Item {
|
||||||
|
|||||||
Reference in New Issue
Block a user