Files
archpack/Main.qml
2026-11-14 11:44:25 +03:00

70 lines
1.3 KiB
QML

import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import "qml/components" as Components
import "qml/components/pages" as Pages
import "qml/buttons" as Buttons
ApplicationWindow {
id: root
title: "Arch Linux Updater"
width: 740
height: 960
minimumWidth: 740
minimumHeight: 560
maximumWidth: 1080
maximumHeight: 1460
visible: true
color: Theme.color1
ColumnLayout {
id: mainLayout
anchors.fill: parent
anchors.margins: Theme.baseMargins
spacing: Theme.baseSpacing
RowLayout {
id: headerLayout
Layout.maximumWidth: Number.POSITIVE_INFINITY
Components.Title {
id: title
Layout.maximumWidth: Number.POSITIVE_INFINITY
Layout.alignment: Qt.AlignBottom
}
Buttons.SettingsBtn {
id: settingsButton
Layout.alignment: Qt.AlignBottom
}
}
Components.Line { id: line }
Components.Tabs {
id: tabs
parentWidth: mainLayout.width
}
StackLayout {
id: pages
Layout.fillWidth: true
Layout.fillHeight: true
currentIndex: tabs.currentIndex
Pages.UpdatePg {
id: pgUpdate
}
Pages.InstallPg {
id: pgInstall
}
Pages.DeletePg {
id: pgDelete
}
}
}
}