This commit is contained in:
朱子楚\zhuzi
2023-03-29 21:43:01 +08:00
parent a33a63abc9
commit 5a1b10fef8
22 changed files with 107 additions and 117 deletions

View File

@ -59,7 +59,7 @@ Button {
border.color: selected ? Qt.lighter(FluTheme.primaryColor.dark,1.2) : "#666666"
Rectangle {
x: selected ? control_backgound.width - width - 4 : 4
width: control.height - 8
width: pressed ? control.height - 6 : control.height - 8
height: control.height - 8
radius: width / 2
antialiasing: true
@ -68,20 +68,20 @@ Button {
anchors.verticalCenter: parent.verticalCenter
color: selected ? "#FFFFFF" : "#666666"
Behavior on x {
NumberAnimation { duration: 200 }
NumberAnimation { duration: 150 }
}
Behavior on width {
NumberAnimation { duration: 150 }
}
Behavior on scale {
NumberAnimation { duration: 150 }
}
}
}
FluText{
text: control.text
Layout.leftMargin: 5
visible: text !== ""
}
}
}