From cc5b893ddf49bb58e13749adf84f08dceb51cb56 Mon Sep 17 00:00:00 2001 From: chatlanin Date: Sat, 14 Nov 2026 11:53:00 +0300 Subject: [PATCH] add base install mark and delete mark page --- qml/components/pages/DeletePg.qml | 35 +++++++++++++++++++++++++++++- qml/components/pages/InstallPg.qml | 33 +++++++++++++++++++++++++++- qml/style/Theme.qml | 2 +- 3 files changed, 67 insertions(+), 3 deletions(-) diff --git a/qml/components/pages/DeletePg.qml b/qml/components/pages/DeletePg.qml index 2ad5a15..e899581 100644 --- a/qml/components/pages/DeletePg.qml +++ b/qml/components/pages/DeletePg.qml @@ -1,4 +1,37 @@ import QtQuick +import QtQuick.Layouts +import QtQuick.Window +import QtQuick.Controls + +Item { + id: root + + ColumnLayout { + anchors.fill: parent + spacing: 8 + + TextField { + id: packageSearchField + Layout.fillWidth: true + placeholderText: "название установленного пакета" + placeholderTextColor: Theme.color3 + selectByMouse: true + color: Theme.color2 + font.pixelSize: 14 + + background: Rectangle { + color: "#313244" + radius: 3 + border.width: 1 + border.color: packageSearchField.activeFocus ? Theme.color6 : Theme.color4 + } + } + + Item { + Layout.fillHeight: true + } + } +} + -Item { } diff --git a/qml/components/pages/InstallPg.qml b/qml/components/pages/InstallPg.qml index 0a8d8be..3a6f260 100644 --- a/qml/components/pages/InstallPg.qml +++ b/qml/components/pages/InstallPg.qml @@ -1,6 +1,37 @@ import QtQuick +import QtQuick.Layouts +import QtQuick.Window +import QtQuick.Controls -Item { } +Item { + id: root + + ColumnLayout { + anchors.fill: parent + spacing: 8 + + TextField { + id: packageSearchField + Layout.fillWidth: true + placeholderText: "название пакета, например sourcegit" + placeholderTextColor: Theme.color3 + selectByMouse: true + color: Theme.color2 + font.pixelSize: 14 + + background: Rectangle { + color: "#313244" + radius: 3 + border.width: 1 + border.color: packageSearchField.activeFocus ? Theme.color6 : Theme.color4 + } + } + + Item { + Layout.fillHeight: true + } + } +} diff --git a/qml/style/Theme.qml b/qml/style/Theme.qml index b1d0e52..f981d8d 100644 --- a/qml/style/Theme.qml +++ b/qml/style/Theme.qml @@ -3,13 +3,13 @@ pragma Singleton import QtQuick QtObject { + readonly property color colorTransparent: "transparent" readonly property color color1: "#303446" readonly property color color2: "#cdd6f4" readonly property color color3: "#6c7086" readonly property color color4: "#45475a" readonly property color color5: "#313244" readonly property color color6: "#89b4fa" - readonly property color colorTransparent: "transparent" readonly property int fontSize: 12 readonly property int fontTitleSize: 20