diff options
| author | Akseli Lahtinen <[email protected]> | 2026-03-29 22:16:00 +0300 |
|---|---|---|
| committer | Akseli Lahtinen <[email protected]> | 2026-03-29 22:16:00 +0300 |
| commit | 61b6e173f2647e885814f5c11f9861e7bb9144c2 (patch) | |
| tree | 2fd0ed84b116bbd094de1587d0df6e453ed3ba46 /src/views/dolphinitemlistview.cpp | |
| parent | 20a173c8e069f3aba7537f48442c1eb7811d494b (diff) | |
KItemListWidget: Use primitives instead of custom painting
We should avoid custom painting since that will cause issues with
Union and other styles. We however still use the old hardcoded painting
for Breeze style, which can be removed when Breeze 6.8 is released.
For other styles, we draw using the primitives the QStyle provides.
Also make the icon items less wider for better information density.
CCBUG: 508294
BUG: 508465
Diffstat (limited to 'src/views/dolphinitemlistview.cpp')
| -rw-r--r-- | src/views/dolphinitemlistview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/views/dolphinitemlistview.cpp b/src/views/dolphinitemlistview.cpp index b3ec65eac..53d1c6c34 100644 --- a/src/views/dolphinitemlistview.cpp +++ b/src/views/dolphinitemlistview.cpp @@ -201,7 +201,7 @@ void DolphinItemListView::updateGridSize() // 9 is the average char width for 10pt Noto Sans, making fontFactor =1 // by each pixel the font gets larger the factor increases by 1/9 auto fontFactor = option.fontMetrics.averageCharWidth() / 9.0; - itemWidth = 48 + IconsModeSettings::textWidthIndex() * 64 * fontFactor * zoomFactor; + itemWidth = 16 + IconsModeSettings::textWidthIndex() * 64 * fontFactor * zoomFactor; if (itemWidth < iconSize + padding * 2 * zoomFactor) { itemWidth = iconSize + padding * 2 * zoomFactor; |
