From 61b6e173f2647e885814f5c11f9861e7bb9144c2 Mon Sep 17 00:00:00 2001 From: Akseli Lahtinen Date: Sun, 29 Mar 2026 22:16:00 +0300 Subject: 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 --- src/views/dolphinitemlistview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/views/dolphinitemlistview.cpp') 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; -- cgit v1.3