Commit 29cf0fd9 authored by Nate Graham's avatar Nate Graham
Browse files

[containments/desktop] Fix applet overlay icon size with touch interaction

Ths intention of this code was to present larger icons when the config
overlay was shown via a touch event. However this did not work because
the buttons' size was accidentally hardcoded to small, with conflicting
size definitions when only one was needed.

This commit fixes the issue by removing the width and height properties,
using the correct layout properties, and allowing the icon size to
scale ccording to the space available, which fixes the problem for
touch. There are no visual changes with the mouse-based interaction.


(cherry picked from commit f0eb8415)
parent 1c711c1e
......@@ -63,11 +63,9 @@ PlasmaComponents.ToolButton {
PlasmaCore.SvgItem {
id: icon
Layout.preferredWidth: PlasmaCore.Units.iconSizes.small
Layout.preferredWidth: PlasmaCore.Units.roundToIconSize(button.iconSize)
Layout.preferredHeight: Layout.preferredWidth
Layout.alignment: Qt.AlignHCenter
width: iconSize
height: iconSize
svg: button.svg
}
......
Markdown is supported
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