mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-27 05:38:37 +08:00
update
This commit is contained in:
parent
adc3558e02
commit
9f2c58306c
@ -892,14 +892,21 @@ Item {
|
||||
delegate:Button{
|
||||
id:item_button
|
||||
width: 180
|
||||
padding:10
|
||||
height: 38
|
||||
focusPolicy:Qt.TabFocus
|
||||
background: Rectangle{
|
||||
color: {
|
||||
if(hovered){
|
||||
return FluTheme.dark ? Qt.rgba(63/255,60/255,61/255,1) : Qt.rgba(237/255,237/255,242/255,1)
|
||||
if(FluTheme.dark){
|
||||
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{
|
||||
visible: item_button.activeFocus
|
||||
@ -926,6 +933,7 @@ Item {
|
||||
text:modelData.title
|
||||
elide: Text.ElideRight
|
||||
rightPadding: item_dot_loader.width
|
||||
verticalAlignment: Qt.AlignVCenter
|
||||
anchors{
|
||||
verticalCenter: parent.verticalCenter
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user