mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-03 18:23:19 +00:00
Add color to tags
This commit is contained in:
parent
689eea07a7
commit
dc4f0795c7
4 changed files with 29 additions and 1 deletions
|
@ -64,8 +64,14 @@ ColumnLayout {
|
|||
Layout.fillWidth: true
|
||||
color: backend.activeTagsFilter.includes(modelData) ? MiraiColorPalette.filterSelected : mouse.hovered ? MiraiColorPalette.filterHovered : "transparent"
|
||||
radius: 4
|
||||
QtObject {
|
||||
id: internal
|
||||
property string configTagColor: backend.getTagColor(modelData)
|
||||
}
|
||||
AppText {
|
||||
|
||||
text: modelData
|
||||
color: internal.configTagColor != "" ? internal.configTagColor : MiraiColorPalette.text
|
||||
padding: 4
|
||||
}
|
||||
MouseArea {
|
||||
|
|
|
@ -18,8 +18,13 @@ Rectangle {
|
|||
implicitHeight: childrenRect.height
|
||||
radius: 8
|
||||
|
||||
QtObject {
|
||||
id: internal
|
||||
property string configTagColor: backend.getTagColor(control.text)
|
||||
}
|
||||
|
||||
AppText {
|
||||
color: control.textColor
|
||||
color: internal.configTagColor != "" ? internal.configTagColor : control.textColor
|
||||
padding: 2
|
||||
leftPadding: 6
|
||||
rightPadding: 6
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue