trying to make servicelist colors reflect active and selected tags
This commit is contained in:
parent
1804addb1b
commit
3cc43adefb
1 changed files with 4 additions and 4 deletions
|
@ -155,7 +155,7 @@ ColumnLayout {
|
||||||
if (active)
|
if (active)
|
||||||
Kirigami.Theme.highlightColor;
|
Kirigami.Theme.highlightColor;
|
||||||
else if (selected)
|
else if (selected)
|
||||||
Kirigami.Theme.highlightColor;
|
Kirigami.Theme.focusColor;
|
||||||
else if (mouseHandler.containsMouse)
|
else if (mouseHandler.containsMouse)
|
||||||
Kirigami.Theme.hoverColor;
|
Kirigami.Theme.hoverColor;
|
||||||
else
|
else
|
||||||
|
@ -163,7 +163,7 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
textColor: {
|
textColor: {
|
||||||
if (selected ||
|
if (selected ||
|
||||||
mouseHandler.containsMouse)
|
mouseHandler.containsMouse || active)
|
||||||
activeTextColor;
|
activeTextColor;
|
||||||
else
|
else
|
||||||
Kirigami.Theme.textColor;
|
Kirigami.Theme.textColor;
|
||||||
|
@ -231,7 +231,7 @@ ColumnLayout {
|
||||||
if (mouse.button === Qt.RightButton)
|
if (mouse.button === Qt.RightButton)
|
||||||
rightClickMenu.popup();
|
rightClickMenu.popup();
|
||||||
else {
|
else {
|
||||||
serviceItemList.currentIndex = index;
|
/* serviceItemList.currentIndex = index; */
|
||||||
serviceItemModel.select(index);
|
serviceItemModel.select(index);
|
||||||
/* currentServiceItem = index; */
|
/* currentServiceItem = index; */
|
||||||
/* changeItem(index); */
|
/* changeItem(index); */
|
||||||
|
@ -268,7 +268,7 @@ ColumnLayout {
|
||||||
id: wheelHandler
|
id: wheelHandler
|
||||||
target: serviceItemList
|
target: serviceItemList
|
||||||
filterMouseEvents: true
|
filterMouseEvents: true
|
||||||
keyNavigationEnabled: true
|
/* keyNavigationEnabled: true */
|
||||||
}
|
}
|
||||||
|
|
||||||
Controls.ScrollBar.vertical: Controls.ScrollBar {
|
Controls.ScrollBar.vertical: Controls.ScrollBar {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue