From 3bd81a68dd61e88a6388b7c00908325ada8966fd Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Sat, 4 Mar 2023 18:38:59 -0800 Subject: [PATCH] widgets/krunner: Disable for now --- .../qml/widgets/krunner/KRunnerWidget.qml | 206 +++++++++--------- 1 file changed, 103 insertions(+), 103 deletions(-) diff --git a/components/mobileshell/qml/widgets/krunner/KRunnerWidget.qml b/components/mobileshell/qml/widgets/krunner/KRunnerWidget.qml index f8fc58ab..e113550b 100644 --- a/components/mobileshell/qml/widgets/krunner/KRunnerWidget.qml +++ b/components/mobileshell/qml/widgets/krunner/KRunnerWidget.qml @@ -17,7 +17,7 @@ import org.kde.plasma.extras 2.0 as PlasmaExtras import org.kde.plasma.private.mobileshell 1.0 as MobileShell import org.kde.plasma.private.mobileshell.state 1.0 as MobileShellState -import org.kde.milou 0.1 as Milou +// import org.kde.milou 0.1 as Milou import org.kde.kirigami 2.19 as Kirigami import "../../components" as Components @@ -186,108 +186,108 @@ Item { Layout.fillWidth: true - Milou.ResultsListView { - id: listView - queryString: queryField.text - highlight: null - clip: true - PlasmaCore.ColorScope.colorGroup: PlasmaCore.Theme.NormalColorGroup - - onActivated: queryField.text = ""; - onUpdateQueryString: { - queryField.text = text - queryField.cursorPosition = cursorPosition - } - - delegate: MouseArea { - id: delegate - height: rowLayout.height - width: listView.width - - onClicked: { - listView.currentIndex = model.index; - listView.runCurrentIndex(); - } - hoverEnabled: true - - Rectangle { - anchors.fill: parent - color: delegate.pressed ? Qt.rgba(255, 255, 255, 0.2) : (delegate.containsMouse ? Qt.rgba(255, 255, 255, 0.05) : "transparent") - Behavior on color { - ColorAnimation { duration: PlasmaCore.Units.shortDuration } - } - } - - RowLayout { - id: rowLayout - height: PlasmaCore.Units.gridUnit * 3 - anchors.top: parent.top - anchors.left: parent.left - anchors.right: parent.right - anchors.leftMargin: PlasmaCore.Units.largeSpacing - anchors.rightMargin: PlasmaCore.Units.largeSpacing - - Kirigami.Icon { - Layout.alignment: Qt.AlignVCenter - source: model.decoration - implicitWidth: PlasmaCore.Units.iconSizes.medium - implicitHeight: PlasmaCore.Units.iconSizes.medium - } - - ColumnLayout { - Layout.fillWidth: true - Layout.alignment: Qt.AlignVCenter - spacing: PlasmaCore.Units.smallSpacing - - PlasmaComponents.Label { - id: title - Layout.fillWidth: true - Layout.leftMargin: PlasmaCore.Units.smallSpacing * 2 - Layout.rightMargin: PlasmaCore.Units.largeSpacing - - maximumLineCount: 1 - elide: Text.ElideRight - text: typeof modelData !== "undefined" ? modelData : model.display - color: "white" - - font.pointSize: PlasmaCore.Theme.defaultFont.pointSize - } - PlasmaComponents.Label { - id: subtitle - Layout.fillWidth: true - Layout.leftMargin: PlasmaCore.Units.smallSpacing * 2 - Layout.rightMargin: PlasmaCore.Units.largeSpacing - - maximumLineCount: 1 - elide: Text.ElideRight - text: model.subtext || "" - color: "white" - opacity: 0.8 - - font.pointSize: Math.round(PlasmaCore.Theme.defaultFont.pointSize * 0.8) - } - } - - Repeater { - id: actionsRepeater - model: typeof actions !== "undefined" ? actions : [] - - Controls.ToolButton { - icon: modelData.icon || "" - visible: modelData.visible || true - enabled: modelData.enabled || true - - Accessible.role: Accessible.Button - Accessible.name: modelData.text - checkable: checked - checked: delegate.activeAction === index - focus: delegate.activeAction === index - onClicked: delegate.ListView.view.runAction(index) - } - } - } - } - } +// Milou.ResultsListView { +// id: listView +// queryString: queryField.text +// highlight: null +// clip: true +// PlasmaCore.ColorScope.colorGroup: PlasmaCore.Theme.NormalColorGroup +// +// onActivated: queryField.text = ""; +// onUpdateQueryString: { +// queryField.text = text +// queryField.cursorPosition = cursorPosition +// } +// +// delegate: MouseArea { +// id: delegate +// height: rowLayout.height +// width: listView.width +// +// onClicked: { +// listView.currentIndex = model.index; +// listView.runCurrentIndex(); +// } +// hoverEnabled: true +// +// Rectangle { +// anchors.fill: parent +// color: delegate.pressed ? Qt.rgba(255, 255, 255, 0.2) : (delegate.containsMouse ? Qt.rgba(255, 255, 255, 0.05) : "transparent") +// Behavior on color { +// ColorAnimation { duration: PlasmaCore.Units.shortDuration } +// } +// } +// +// RowLayout { +// id: rowLayout +// height: PlasmaCore.Units.gridUnit * 3 +// anchors.top: parent.top +// anchors.left: parent.left +// anchors.right: parent.right +// anchors.leftMargin: PlasmaCore.Units.largeSpacing +// anchors.rightMargin: PlasmaCore.Units.largeSpacing +// +// Kirigami.Icon { +// Layout.alignment: Qt.AlignVCenter +// source: model.decoration +// implicitWidth: PlasmaCore.Units.iconSizes.medium +// implicitHeight: PlasmaCore.Units.iconSizes.medium +// } +// +// ColumnLayout { +// Layout.fillWidth: true +// Layout.alignment: Qt.AlignVCenter +// spacing: PlasmaCore.Units.smallSpacing +// +// PlasmaComponents.Label { +// id: title +// Layout.fillWidth: true +// Layout.leftMargin: PlasmaCore.Units.smallSpacing * 2 +// Layout.rightMargin: PlasmaCore.Units.largeSpacing +// +// maximumLineCount: 1 +// elide: Text.ElideRight +// text: typeof modelData !== "undefined" ? modelData : model.display +// color: "white" +// +// font.pointSize: PlasmaCore.Theme.defaultFont.pointSize +// } +// PlasmaComponents.Label { +// id: subtitle +// Layout.fillWidth: true +// Layout.leftMargin: PlasmaCore.Units.smallSpacing * 2 +// Layout.rightMargin: PlasmaCore.Units.largeSpacing +// +// maximumLineCount: 1 +// elide: Text.ElideRight +// text: model.subtext || "" +// color: "white" +// opacity: 0.8 +// +// font.pointSize: Math.round(PlasmaCore.Theme.defaultFont.pointSize * 0.8) +// } +// } +// +// Repeater { +// id: actionsRepeater +// model: typeof actions !== "undefined" ? actions : [] +// +// Controls.ToolButton { +// icon: modelData.icon || "" +// visible: modelData.visible || true +// enabled: modelData.enabled || true +// +// Accessible.role: Accessible.Button +// Accessible.name: modelData.text +// checkable: checked +// checked: delegate.activeAction === index +// focus: delegate.activeAction === index +// onClicked: delegate.ListView.view.runAction(index) +// } +// } +// } +// } +// } } MouseArea {