This commit is contained in:
朱子楚\zhuzi
2023-03-12 22:36:31 +08:00
parent f75da5e3ce
commit 23bc5cdf68
10 changed files with 72 additions and 86 deletions

View File

@ -15,11 +15,12 @@ Button {
bottomPadding:5
leftPadding:15
rightPadding:15
Keys.onSpacePressed: control.visualFocus&&clicked()
focusPolicy:Qt.TabFocus
background: Rectangle{
radius: 4
FluFocusRectangle{
visible: control.focus
visible: control.visualFocus
radius:8
}
color:{
@ -29,7 +30,6 @@ Button {
return hovered ? hoverColor :normalColor
}
}
contentItem: FluText {
text: control.text
horizontalAlignment: Text.AlignHCenter
@ -46,6 +46,4 @@ Button {
}
font.pixelSize: 14
}
}