Commit 9830b2c6 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Use a more reasonable default size for the icon button

parent f3686520
import Material 0.1
import QtQuick 2.1
import QtQuick.Layouts 1.1
Loader
{
......@@ -20,10 +21,15 @@ Loader
Component {
id: iconComponent
IconButton {
Layout.minimumWidth: implicitWidth*2
Layout.minimumHeight: implicitHeight*2
iconName: root.iconName
}
}
Layout.minimumWidth: item.Layout.minimumWidth
Layout.minimumHeight: item.Layout.minimumHeight
sourceComponent: root.text === "" ? iconComponent : textComponent
Connections {
......
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