This commit is contained in:
朱子楚\zhuzi 2023-06-20 19:18:18 +08:00
parent adc3558e02
commit 9f2c58306c

View File

@ -892,14 +892,21 @@ Item {
delegate:Button{ delegate:Button{
id:item_button id:item_button
width: 180 width: 180
padding:10 height: 38
focusPolicy:Qt.TabFocus focusPolicy:Qt.TabFocus
background: Rectangle{ background: Rectangle{
color: { color: {
if(hovered){ if(FluTheme.dark){
return FluTheme.dark ? Qt.rgba(63/255,60/255,61/255,1) : Qt.rgba(237/255,237/255,242/255,1) if(item_button.hovered){
return Qt.rgba(1,1,1,0.06)
}
return Qt.rgba(0,0,0,0)
}else{
if(item_button.hovered){
return Qt.rgba(0,0,0,0.03)
}
return Qt.rgba(0,0,0,0)
} }
return FluTheme.dark ? Qt.rgba(51/255,48/255,48/255,1) : Qt.rgba(0,0,0,0)
} }
FluFocusRectangle{ FluFocusRectangle{
visible: item_button.activeFocus visible: item_button.activeFocus
@ -926,6 +933,7 @@ Item {
text:modelData.title text:modelData.title
elide: Text.ElideRight elide: Text.ElideRight
rightPadding: item_dot_loader.width rightPadding: item_dot_loader.width
verticalAlignment: Qt.AlignVCenter
anchors{ anchors{
verticalCenter: parent.verticalCenter verticalCenter: parent.verticalCenter
} }