Adopt hightlighted colors for the category tags.
This commit is contained in:
parent
829c265234
commit
2230fefbea
3 changed files with 5 additions and 3 deletions
|
@ -93,6 +93,7 @@ Dialog {
|
||||||
id: categoryRepeater
|
id: categoryRepeater
|
||||||
model: account.categories
|
model: account.categories
|
||||||
BackgroundItem {
|
BackgroundItem {
|
||||||
|
id: categoryBackground
|
||||||
width: categoryRectangle.width
|
width: categoryRectangle.width
|
||||||
height: categoryRectangle.height
|
height: categoryRectangle.height
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
@ -106,7 +107,7 @@ Dialog {
|
||||||
id: categoryLabel
|
id: categoryLabel
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: modelData
|
text: modelData
|
||||||
color: Theme.primaryColor
|
color: categoryBackground.highlighted ? Theme.highlightColor : Theme.primaryColor
|
||||||
font.pixelSize: Theme.fontSizeSmall
|
font.pixelSize: Theme.fontSizeSmall
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -168,6 +168,7 @@ Dialog {
|
||||||
id: categoryRepeater
|
id: categoryRepeater
|
||||||
model: account.categories
|
model: account.categories
|
||||||
BackgroundItem {
|
BackgroundItem {
|
||||||
|
id: categoryBackground
|
||||||
width: categoryRectangle.width
|
width: categoryRectangle.width
|
||||||
height: categoryRectangle.height
|
height: categoryRectangle.height
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
@ -181,7 +182,7 @@ Dialog {
|
||||||
id: categoryLabel
|
id: categoryLabel
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: modelData
|
text: modelData
|
||||||
color: Theme.primaryColor
|
color: categoryBackground.highlighted ? Theme.highlightColor : Theme.primaryColor
|
||||||
font.pixelSize: Theme.fontSizeSmall
|
font.pixelSize: Theme.fontSizeSmall
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -156,7 +156,7 @@ Page {
|
||||||
id: categoryLabel
|
id: categoryLabel
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: category
|
text: category
|
||||||
color: Theme.secondaryColor
|
color: note.highlighted ? Theme.secondaryHighlightColor : Theme.secondaryColor
|
||||||
font.pixelSize: Theme.fontSizeExtraSmall
|
font.pixelSize: Theme.fontSizeExtraSmall
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue