Commit b0fc4805 authored by Zren (Chris Holland)'s avatar Zren (Chris Holland)
Browse files

[QuickShare] Respect units.iconSizeHints.panel for panel icon

Differential Revision: https://phabricator.kde.org/D12859
parent 172850fa
......@@ -29,10 +29,17 @@ DropArea {
id: root
Plasmoid.preferredRepresentation: Plasmoid.fullRepresentation
Layout.fillWidth: false
Layout.fillHeight:false
Layout.minimumWidth: 0
Layout.minimumHeight: 0
readonly property bool inPanel: (plasmoid.location === PlasmaCore.Types.TopEdge
|| plasmoid.location === PlasmaCore.Types.RightEdge
|| plasmoid.location === PlasmaCore.Types.BottomEdge
|| plasmoid.location === PlasmaCore.Types.LeftEdge)
Layout.minimumWidth: units.iconSizes.small
Layout.minimumHeight: Layout.minimumWidth
Layout.maximumWidth: inPanel ? units.iconSizeHints.panel : -1
Layout.maximumHeight: inPanel ? units.iconSizeHints.panel : -1
property string url: ""
property string errorMessage: ""
......
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