]> cloud.milkyroute.net Git - dolphin.git/commit
dolphinview: Add a dynamic view option
authorVictor Blanchard <viblanc@proton.me>
Wed, 28 May 2025 10:33:52 +0000 (12:33 +0200)
committerMéven Car <meven@kde.org>
Wed, 28 May 2025 10:33:52 +0000 (10:33 +0000)
commitedda24eb851c2647f7dde01885008ef60fcadd9a
treeb49978ac3135b7de5346a93f43ff013898f3c365
parent0959642be297bf0749467c204e511f5887b17ee1
dolphinview: Add a dynamic view option

Added a 'dynamic view' option, which allows to switch from a 'compact' or 'details' view to an 'icons' view if most of the files in the directory are images or videos. It reverts to the previous view mode when we switch to a directory which doesn't meet that criteria.

The view mode is only changed once so users don't have to undo that for specific folders when they don't want icon view.

A setting is added in the "Display style" section of the general view setting page.

BUG: 491139
src/settings/dolphin_directoryviewpropertysettings.kcfg
src/settings/dolphin_generalsettings.kcfg
src/settings/viewmodes/generalviewsettingspage.cpp
src/settings/viewmodes/generalviewsettingspage.h
src/tests/dolphinmainwindowtest.cpp
src/views/dolphinview.cpp
src/views/dolphinview.h
src/views/viewproperties.cpp
src/views/viewproperties.h