Commit b55433bc authored by Jimmy HUGUET's avatar Jimmy HUGUET

Highlight symbol key when symbol are visible instead of changing text

parent 0c71403e
......@@ -45,8 +45,8 @@ CharacterEaseKey {
Rectangle {
id: backgroundItem
color: parent.pressed ? Theme.highlightBackgroundColor : Theme.primaryColor
opacity: parent.pressed ? 0.6 : 0.17
color: parent.pressed || attributes.inSymView2 ? Theme.highlightBackgroundColor : Theme.primaryColor
opacity: parent.pressed || attributes.inSymView2 ? 0.6 : 0.17
radius: geometry.keyRadius
anchors { fill: parent; margins: Theme.paddingMedium }
visible: !attributes.inSymView
......@@ -63,7 +63,7 @@ CharacterEaseKey {
font.pixelSize: Theme.fontSizeMedium
font.family: Theme.fontFamily
color: parent.pressed ? Theme.highlightColor : Theme.primaryColor
text: !attributes.inSymView2 ? "*.$" : " "
text: "*.$"
visible: !attributes.inSymView
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment