add title and settings button
This commit is contained in:
34
Main.qml
34
Main.qml
@@ -1,37 +1,33 @@
|
||||
import QtQuick
|
||||
import QtQuick.Controls.Basic
|
||||
import QtQuick.Layouts 1.15
|
||||
import QtQuick.Layouts
|
||||
|
||||
import archpack
|
||||
import "qml/components" as Components
|
||||
import "qml/buttons" as Buttons
|
||||
|
||||
ApplicationWindow {
|
||||
id: root
|
||||
|
||||
readonly property int currentWidth: 740
|
||||
|
||||
title: "Arch Linux Updater"
|
||||
width: currentWidth
|
||||
height: 560
|
||||
minimumWidth: 200
|
||||
minimumHeight: 250
|
||||
minimumWidth: 740
|
||||
minimumHeight: 560
|
||||
maximumWidth: 1080
|
||||
maximumHeight: 1460
|
||||
visible: true
|
||||
color: Theme.base
|
||||
|
||||
RowLayout {
|
||||
ColumnLayout {
|
||||
id: mainLayout
|
||||
anchors.fill: parent
|
||||
spacing: 0
|
||||
anchors.margins: 16
|
||||
spacing: 12
|
||||
|
||||
Item {
|
||||
id: mainColumn
|
||||
Layout.preferredWidth: root.currentWidth
|
||||
Layout.fillHeight: true
|
||||
RowLayout {
|
||||
id: headerLayout
|
||||
|
||||
ColumnLayout {
|
||||
id: layout
|
||||
anchors.fill: parent
|
||||
anchors.margins: 16
|
||||
spacing: 12
|
||||
}
|
||||
Components.Title {}
|
||||
Buttons.Settings {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user