Skip to content

Commit

Permalink
fix: View switch button position drift in window mode
Browse files Browse the repository at this point in the history
Use sourceSize to control the size of DciIcon

Issue: linuxdeepin/developer-center#8805
  • Loading branch information
mhduiy committed Jun 12, 2024
1 parent 47c5dc3 commit 66ed09b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions qml/windowed/SideBar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ ColumnLayout {
contentItem: ColumnLayout {
spacing: 2
D.DciIcon {
width: 16
height: 16
sourceSize: Qt.size(16, 16)
name: isFreeSort ? categorizedIcon("freeSort") : categorizedIcon(CategorizedSortProxyModel.categoryType)
palette: D.DTK.makeIconPalette(title.palette)
theme: D.DTK.toColorType(title.palette.window)
Expand All @@ -99,8 +98,7 @@ ColumnLayout {

D.DciIcon {
name: "arrow"
width: 12
height: 12
sourceSize: Qt.size(12, 12)
palette: D.DTK.makeIconPalette(title.palette)
theme: D.DTK.toColorType(title.palette.window)
Layout.alignment: Qt.AlignHCenter
Expand Down

0 comments on commit 66ed09b

Please sign in to comment.