Adopt hightlighted colors for the category tags.

This commit is contained in:
Scharel Clemens 2018-12-06 14:07:48 +01:00
parent 829c265234
commit 2230fefbea
3 changed files with 5 additions and 3 deletions

View file

@ -93,6 +93,7 @@ Dialog {
id: categoryRepeater
model: account.categories
BackgroundItem {
id: categoryBackground
width: categoryRectangle.width
height: categoryRectangle.height
Rectangle {
@ -106,7 +107,7 @@ Dialog {
id: categoryLabel
anchors.centerIn: parent
text: modelData
color: Theme.primaryColor
color: categoryBackground.highlighted ? Theme.highlightColor : Theme.primaryColor
font.pixelSize: Theme.fontSizeSmall
}
}

View file

@ -168,6 +168,7 @@ Dialog {
id: categoryRepeater
model: account.categories
BackgroundItem {
id: categoryBackground
width: categoryRectangle.width
height: categoryRectangle.height
Rectangle {
@ -181,7 +182,7 @@ Dialog {
id: categoryLabel
anchors.centerIn: parent
text: modelData
color: Theme.primaryColor
color: categoryBackground.highlighted ? Theme.highlightColor : Theme.primaryColor
font.pixelSize: Theme.fontSizeSmall
}
}

View file

@ -156,7 +156,7 @@ Page {
id: categoryLabel
anchors.centerIn: parent
text: category
color: Theme.secondaryColor
color: note.highlighted ? Theme.secondaryHighlightColor : Theme.secondaryColor
font.pixelSize: Theme.fontSizeExtraSmall
}
}