forked from Shinonome/dots-hyprland
add kb focus border for group buttons
This commit is contained in:
@@ -117,7 +117,7 @@ Button {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
property bool tabbedTo: root.focus && (focusReason === Qt.TabFocusReason || focusReason === Qt.BacktabFocusReason)
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
id: buttonBackground
|
id: buttonBackground
|
||||||
topLeftRadius: root.leftRadius
|
topLeftRadius: root.leftRadius
|
||||||
@@ -130,6 +130,9 @@ Button {
|
|||||||
Behavior on color {
|
Behavior on color {
|
||||||
animation: Appearance.animation.elementMoveFast.colorAnimation.createObject(this)
|
animation: Appearance.animation.elementMoveFast.colorAnimation.createObject(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
border.width: root.tabbedTo ? 2 : 0
|
||||||
|
border.color: Appearance.colors.colSecondary
|
||||||
}
|
}
|
||||||
|
|
||||||
contentItem: StyledText {
|
contentItem: StyledText {
|
||||||
|
|||||||
Reference in New Issue
Block a user