making servicelist follow the selected and active attribute of items
This commit is contained in:
parent
d343470d7c
commit
dd58cb3b6b
1 changed files with 4 additions and 2 deletions
|
@ -152,7 +152,9 @@ ColumnLayout {
|
|||
hoverEnabled: false
|
||||
supportsMouseEvents: false
|
||||
backgroundColor: {
|
||||
if (serviceItemList.currentIndex === index)
|
||||
if (active)
|
||||
Kirigami.Theme.highlightColor;
|
||||
else if (selected)
|
||||
Kirigami.Theme.highlightColor;
|
||||
else if (mouseHandler.containsMouse)
|
||||
Kirigami.Theme.hoverColor;
|
||||
|
@ -160,7 +162,7 @@ ColumnLayout {
|
|||
Kirigami.Theme.backgroundColor;
|
||||
}
|
||||
textColor: {
|
||||
if (serviceItemList.currentIndex === index ||
|
||||
if (selected ||
|
||||
mouseHandler.containsMouse)
|
||||
activeTextColor;
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue