[TabBar] Add highlight on keyboard focus
This commit is contained in:
parent
9c8cf7078e
commit
ecb1820357
@ -49,6 +49,7 @@ T.TabButton {
|
||||
colorGroup: control.PlasmaCore.ColorScope.colorGroup
|
||||
visible: source.length > 0 && control.display !== T.AbstractButton.TextOnly
|
||||
source: control.icon ? (control.icon.name || control.icon.source) : ""
|
||||
selected: control.visualFocus
|
||||
}
|
||||
Label {
|
||||
id: label
|
||||
@ -56,7 +57,7 @@ T.TabButton {
|
||||
visible: text.length > 0 && control.display !== T.AbstractButton.IconOnly
|
||||
text: control.Kirigami.MnemonicData.richTextLabel
|
||||
font: control.font
|
||||
color: PlasmaCore.ColorScope.textColor
|
||||
color: control.visualFocus ? PlasmaCore.ColorScope.highlightColor : PlasmaCore.ColorScope.textColor
|
||||
opacity: enabled || control.highlighted || control.checked ? 1 : 0.4
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
|
Loading…
Reference in New Issue
Block a user