Verified Commit f0e760f9 authored by Jonah Brüchert's avatar Jonah Brüchert
Browse files

Port AppChooserDialog to Kirigami

parent 0f3b64a8
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
import QtQuick 2.12 import QtQuick 2.12
import QtQuick.Controls 2.12 import QtQuick.Controls 2.12
import QtQuick.Layouts 1.12 import QtQuick.Layouts 1.12
import org.kde.plasma.core 2.0
import org.kde.kirigami 2.9 as Kirigami import org.kde.kirigami 2.9 as Kirigami
import org.kde.xdgdesktopportal 1.0 import org.kde.xdgdesktopportal 1.0
...@@ -66,11 +65,10 @@ Item { ...@@ -66,11 +65,10 @@ Item {
GridView { GridView {
id: grid id: grid
anchors.fill: parent anchors.fill: parent
cellHeight: 110 cellHeight: Kirigami.Units.iconSizes.huge + 50
cellWidth: 150 cellWidth: Kirigami.Units.iconSizes.huge + 80
model: AppModel model: AppModel
delegate: appDelegate delegate: appDelegate
} }
} }
} }
...@@ -87,12 +85,11 @@ Item { ...@@ -87,12 +85,11 @@ Item {
} }
} }
TextField { Kirigami.SearchField {
id: searchField id: searchField
Layout.fillWidth: true Layout.fillWidth: true
visible: !showAllAppsButton.visible visible: !showAllAppsButton.visible
opacity: visible opacity: visible
placeholderText: i18n("Search...");
onTextChanged: AppModel.filter = text onTextChanged: AppModel.filter = text
} }
} }
...@@ -122,13 +119,13 @@ Item { ...@@ -122,13 +119,13 @@ Item {
Column { Column {
anchors.fill: parent anchors.fill: parent
anchors.margins: units.gridUnit / 2 anchors.margins: Kirigami.Units.gridUnit / 2
spacing: units.gridUnit / 3 spacing: Kirigami.Units.gridUnit / 3
Kirigami.Icon { Kirigami.Icon {
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
height: units.iconSizes.huge height: Kirigami.Units.iconSizes.huge
width: units.iconSizes.huge width: Kirigami.Units.iconSizes.huge
source: ApplicationIcon source: ApplicationIcon
smooth: true smooth: true
} }
......
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