mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-30 15:06:52 +08:00
update
This commit is contained in:
parent
adc3558e02
commit
9f2c58306c
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user