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 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
} }
} }

View file

@ -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
} }
} }

View file

@ -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
} }
} }