Commit 2683d4c6 authored by Michail Vourlakos's avatar Michail Vourlakos
Browse files

FolderView applet respect panel maxIcon size

Summary:
--FolderView takes into account the
units.iconSizeHints.panel value when is in panel
in order to switch its appearance from
CompactRepresentation to FullRepresentation
and vice versa.

BUG: 379888

Test Plan:
confirm that in order for FolderView to change to
FullRepresention when it is in panel, it respects
the units.iconSizeHints.panel value.

Reviewers: #plasma, hein, mart

Reviewed By: #plasma, hein

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D11651
parent ae247bcc
......@@ -40,12 +40,12 @@ FolderViewDropArea {
width: isPopup ? undefined : preferredWidth(false) // for the initial size when placed on the desktop
Layout.minimumWidth: preferredWidth(true)
Layout.preferredWidth: isPopup ? preferredWidth(false) : 0 // for the popup size to change at runtime when view mode changes
Plasmoid.switchWidth: preferredWidth(true)
Plasmoid.switchWidth: isPopup ? units.iconSizeHints.panel : preferredWidth(true)
height: isPopup ? undefined : preferredHeight(false)
Layout.minimumHeight: preferredHeight(true)
Layout.preferredHeight: isPopup ? preferredHeight(false) : 0
Plasmoid.switchHeight: preferredHeight(true)
Plasmoid.switchHeight: isPopup ? units.iconSizeHints.panel : preferredHeight(true)
LayoutMirroring.enabled: Qt.application.layoutDirection === Qt.RightToLeft
LayoutMirroring.childrenInherit: true
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment