fix(StatusListItem): ensure icon background in secondary type works correctly

This commit is contained in:
Pascal Precht 2021-06-22 10:59:54 +02:00 committed by Michał Cieślak
parent 0d946ea4b0
commit d389196f9e
2 changed files with 9 additions and 3 deletions

View File

@ -224,6 +224,12 @@ GridLayout {
]
}
StatusListItem {
title: "Title"
icon.name: "info"
type: StatusListItem.Type.Secondary
}
StatusDescriptionListItem {
title: "Title"
subTitle: "Subtitle"

View File

@ -37,9 +37,9 @@ Rectangle {
background: StatusIconBackgroundSettings {
width: 40
height: 40
color: type === StatusListItem.Type.Primary ?
Theme.palette.primaryColor3 :
"transparent"
color: sensor.containsMouse && type === StatusListItem.Type.Secondary ?
"transparent" :
Theme.palette.primaryColor3
}
}
property StatusImageSettings image: StatusImageSettings {