Bug 524606 - "remember display style for each folder" causes invisible and unscaled icons in details/compact view modes
Summary: "remember display style for each folder" causes invisible and unscaled icons ...
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: view-engine: general (other bugs)
Version First Reported In: 26.08.0
Platform: Flatpak Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-08-22 16:57 UTC by wizeväxel
Modified: 2026-08-23 13:40 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 26.08.1
Sentry Crash Report:


Attachments
broken appearance in details view mode (47.28 KB, image/png)
2026-08-22 16:57 UTC, wizeväxel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wizeväxel 2026-08-22 16:57:29 UTC
Created attachment 195378 [details]
broken appearance in details view mode

DESCRIPTION
icons and icon sizes are bugged in dolphin when "remember display style for each folder" is enabled.
the bug is seen in all folders regardless of view properties or .directory files

STEPS TO REPRODUCE
1. dolphin > configure dolphin > view
2. enable "remember display style for each folder"
3. switch view mode to details or compact

OBSERVED RESULT
all icons are shown at the absolute minimum icon size regardless of configuration
all icon images and previews are completely invisible, only the text is visible
oddly, changing the view mode to icons and back to details/compact will fix icon images and previews, but icon sizes remain broken

EXPECTED RESULT
icons should preview normally with their size configurations applied regardless of display style

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 44
KDE Plasma Version: 6.7.4
KDE Frameworks Version: 6.29.0
Qt Version: 6.11.1

ADDITIONAL INFORMATION
no warnings or errors are found in terminal output when running dolphin directly
the display style "use common display style for all folders" doesn't have this issue at all, and reverting to it seems to be the current workaround
Comment 1 John 2026-08-22 19:22:23 UTC
Observing this same issue after updating to 26.08. Dolphin fails to respect the icon size setting and uses the smallest icons for every folder in every view mode by default (sometimes invisible icons). Changing icon size for the Icons/Compact/Details modes in the options does nothing. Zooming in while viewing a folder does work and Dolphin will remember the icon size for that exact folder but there is no way to set an icon size level that all folders default to like before. Default is always smallest size.

When common display style for all folders is set it will correctly use whatever icon size I have set in the configuration.
Comment 2 Bug Janitor Service 2026-08-23 08:31:05 UTC
A possibly relevant merge request was started @ https://invent.kde.org/system/dolphin/-/merge_requests/1405
Comment 3 Méven 2026-08-23 08:40:04 UTC
Git commit a2a1cb61703da371eb8b4995bc78075d95180991 by Méven Car.
Committed on 23/08/2026 at 08:33.
Pushed by meven into branch 'master'.

dolphinitemlistview: do not store the fallback icon size in the cache

updateGridSize() bound a reference to m_iconSize or m_previewSize and wrote the
current mode's configured size into it when that was still unset. The cache holds
the per-folder zoom, one value for a folder that every view mode shares, so a size
that was only a fallback reached the other modes as though the folder carried it.

A view starts out in the details layout, so the cache was seeded from
DetailsModeSettings. Opening a folder in icons view with per-folder view
properties and then turning previews off rendered it at 16 rather than the 32 that
icons view is configured with, because turning previews off selects the other
cached size and no mode change recomputes it.

The fallback itself comes from commit 3ce18dd17 ("views: Never let the item layout
use a zero icon size"), which meant to cover the preview toggle too. Storing it is
what left that case short.

Read the fallback without storing it, so the cache stays unset until
setZoomLevel() puts a chosen zoom there.
FIXED-IN: 26.08.1

M  +171  -0    src/tests/dolphinviewtest.cpp
M  +5    -8    src/views/dolphinitemlistview.cpp

https://invent.kde.org/system/dolphin/-/commit/a2a1cb61703da371eb8b4995bc78075d95180991
Comment 4 Méven 2026-08-23 13:40:51 UTC
Git commit 57c6b10e1a225c308dc25599ec49abca1ae6d958 by Méven Car.
Committed on 23/08/2026 at 13:31.
Pushed by meven into branch 'release/26.08'.

dolphinitemlistview: do not store the fallback icon size in the cache

updateGridSe() bound a reference to m_iconSize or m_previewSize and wrote the
current mode's configured size into it when that was still unset. The cache holds
the per-folder zoom, one value for a folder that every view mode shares, so a size
that was only a fallback reached the other modes as though the folder carried it.

A view starts out in the details layout, so the cache was seeded from
DetailsModeSettings. Opening a folder in icons view with per-folder view
properties and then turning previews off rendered it at 16 rather than the 32 that
icons view is configured with, because turning previews off selects the other
cached size and no mode change recomputes it.

The fallback itself comes from commit 3ce18dd17 ("views: Never let the item layout
use a zero icon size"), which meant to cover the preview toggle too. Storing it is
what left that case short.

Read the fallback without storing it, so the cache stays unset until
setZoomLevel() puts a chosen zoom there.
FIXED-IN: 26.08.1
(cherry picked from commit a2a1cb61703da371eb8b4995bc78075d95180991)

A  +329  -0    src/tests/dolphinviewtest.cpp     [License: GPL(v2.0+)]
M  +5    -8    src/views/dolphinitemlistview.cpp

https://invent.kde.org/system/dolphin/-/commit/57c6b10e1a225c308dc25599ec49abca1ae6d958