Commit 11ebcf52 authored by camilo higuita's avatar camilo higuita

only load some dialogs when needed

parent 25c409b4
......@@ -112,6 +112,13 @@ ItemDelegate
margins: control.padding
}
Behavior on color
{
ColorAnimation
{
duration: Kirigami.Units.longDuration
}
}
color: control.isCurrentItem || control.hovered ? Qt.rgba(control.Kirigami.Theme.highlightColor.r, control.Kirigami.Theme.highlightColor.g, control.Kirigami.Theme.highlightColor.b, 0.2) : control.Kirigami.Theme.backgroundColor
radius: control.radius
......
......@@ -108,7 +108,6 @@ Maui.SwipeItemDelegate
{
id: _layout
anchors.fill: parent
spacing: Maui.Style.space.small
Item
......@@ -133,8 +132,9 @@ Maui.SwipeItemDelegate
Layout.fillHeight: visible
Layout.fillWidth: visible
Layout.margins: Maui.Style.space.small
Layout.topMargin: Maui.Style.space.small
Layout.bottomMargin: Maui.Style.space.small
Layout.leftMargin: _iconContainer.visible ? 0 : Maui.Style.space.small
Label
{
id: _label1
......
......@@ -126,10 +126,8 @@ Maui.ItemDelegate
icon.name: "overflow-menu"
onClicked: _swipeDelegate.swipe.position < 0 ? _swipeDelegate.swipe.close() : _swipeDelegate.swipe.open(SwipeDelegate.Right)
}
}
}
}
}
swipe.right: Row
{
......@@ -140,16 +138,7 @@ Maui.ItemDelegate
padding: Maui.Style.space.medium
visible: _swipeDelegate.swipe.complete
opacity: Math.abs(_swipeDelegate.swipe.position)
Behavior on width
{
NumberAnimation
{
duration: Kirigami.Units.longDuration
easing.type: Easing.InOutQuad
}
}
Repeater
{
model: control.collapse && control.showQuickActions ? control.quickActions : undefined
......
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