Commit 66f318b6 authored by Arjen Hiemstra's avatar Arjen Hiemstra

Only use "focus" style for non-flat toolbuttons on press

Otherwise we get unexpected focus highlights when hovering.
parent a21856a2
......@@ -42,7 +42,7 @@ T.ToolButton {
on: controlRoot.pressed || (controlRoot.checkable && controlRoot.checked)
hover: controlRoot.hovered
text: controlRoot.Kirigami.MnemonicData.mnemonicLabel
hasFocus: !controlRoot.flat && (controlRoot.pressed || controlRoot.hovered)
hasFocus: !controlRoot.flat && controlRoot.pressed
activeControl: controlRoot.isDefault ? "default" : "f"
raised: !controlRoot.flat
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