Skip to content

Commit

Permalink
fix: double focus box
Browse files Browse the repository at this point in the history
ButtonPanel has its own focus box, use BoxPanel instead.
Optimize margin and radius for highlight item.

Log: fix double focus box
  • Loading branch information
asterwyx committed Jan 9, 2024
1 parent 5496370 commit 6087167
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions qml/AppListView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ Item {
FocusBoxBorder {
anchors {
fill: parent
margins: 5
margins: 4
}
radius: 8
radius: 4
color: highlightPalette.highlight
visible: listView.activeFocus
}
Expand Down
3 changes: 1 addition & 2 deletions qml/WindowedFrame.qml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ StackView {
}
}

background: P.ButtonPanel {
button: parent
background: BoxPanel {
visible: ColorSelector.controlState === DTK.HoveredState
}
}
Expand Down

0 comments on commit 6087167

Please sign in to comment.