mirror of
https://github.com/celesrenata/end-4-flakes.git
synced 2026-06-07 02:59:26 -05:00
32 lines
741 B
QML
32 lines
741 B
QML
import qs.modules.common
|
|
import qs.modules.common.widgets
|
|
import QtQuick
|
|
|
|
RippleButton {
|
|
id: button
|
|
property string buttonText: ""
|
|
property string tooltipText: ""
|
|
|
|
implicitHeight: 30
|
|
implicitWidth: implicitHeight
|
|
|
|
Behavior on implicitWidth {
|
|
SmoothedAnimation {
|
|
velocity: Appearance.animation.elementMove.velocity
|
|
}
|
|
}
|
|
|
|
buttonRadius: Appearance.rounding.small
|
|
|
|
contentItem: StyledText {
|
|
text: buttonText
|
|
horizontalAlignment: Text.AlignHCenter
|
|
font.pixelSize: Appearance.font.pixelSize.larger
|
|
color: Appearance.colors.colOnLayer1
|
|
}
|
|
|
|
StyledToolTip {
|
|
content: tooltipText
|
|
extraVisibleCondition: tooltipText.length > 0
|
|
}
|
|
} |