Skip to content

Commit

Permalink
fix: focus rect not correct
Browse files Browse the repository at this point in the history
IconItemDelegate's height is not the same as cellWidth

Issue: linuxdeepin/developer-center#7624
  • Loading branch information
asterwyx committed Apr 12, 2024
1 parent 10da343 commit 199c7d1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion qml/windowed/FrequentlyUsedView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Control {

delegate: IconItemDelegate {
width: frequentlyUsedViewContainer.cellWidth
height: frequentlyUsedViewContainer.cellHeight
height: frequentlyUsedViewContainer.cellHeight + frequentlyUsedViewContainer.paddingRows
iconSource: iconName
onItemClicked: {
launchApp(desktopId)
Expand Down
3 changes: 2 additions & 1 deletion qml/windowed/IconItemDelegate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ Control {
rightPadding: 2
horizontalAlignment: Text.AlignHCenter
wrapMode: Text.WordWrap
elide: Text.ElideMiddle
elide: Text.ElideRight
maximumLineCount: 2
font: DTK.fontManager.t9
verticalAlignment: Text.AlignTop
}
}
background: ButtonPanel {
Expand Down
2 changes: 1 addition & 1 deletion qml/windowed/RecentlyInstalledView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Control {
delegate: IconItemDelegate {
iconSource: iconName
width: recentlyInstalledViewContainer.cellWidth
height: recentlyInstalledViewContainer.cellHeight
height: recentlyInstalledViewContainer.cellHeight + recentlyInstalledViewContainer.paddingRows
onItemClicked: {
launchApp(desktopId)
}
Expand Down

0 comments on commit 199c7d1

Please sign in to comment.