From ecb18203574deea6b5feb6aea786988b92adf243 Mon Sep 17 00:00:00 2001 From: Mikel Johnson Date: Sun, 15 Nov 2020 14:44:11 +0300 Subject: [PATCH] [TabBar] Add highlight on keyboard focus --- src/declarativeimports/plasmacomponents3/TabButton.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/declarativeimports/plasmacomponents3/TabButton.qml b/src/declarativeimports/plasmacomponents3/TabButton.qml index f4a207e4d..d8dd89fbc 100644 --- a/src/declarativeimports/plasmacomponents3/TabButton.qml +++ b/src/declarativeimports/plasmacomponents3/TabButton.qml @@ -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