wow-launcher/qml/components/AboutDialog.qml
2025-01-08 15:18:16 +07:00

61 lines
1.6 KiB
QML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Controls.Material 2.15
import QtQuick.Layouts 1.15
import "../Theme" as Theme
Dialog {
id: root
title: "О программе"
modal: true
x: (parent.width - width) / 2
y: (parent.height - height) / 2
width: 400
height: 300
Material.background: Theme.Theme.frameColor
ColumnLayout {
anchors.fill: parent
spacing: Theme.Theme.spacing
Image {
source: "qml/images/logo.png"
Layout.preferredWidth: 200
Layout.preferredHeight: 100
Layout.alignment: Qt.AlignHCenter
fillMode: Image.PreserveAspectFit
}
Label {
text: "World of Warcraft 3.3.5a Launcher"
font.pixelSize: Theme.Theme.titleSize
font.bold: true
color: Theme.Theme.primaryText
Layout.alignment: Qt.AlignHCenter
}
Label {
text: "Версия: " + (launcher ? launcher.version : "3.3.5")
color: Theme.Theme.secondaryText
Layout.alignment: Qt.AlignHCenter
}
Item { Layout.fillHeight: true }
Label {
text: "© 2024 Your Server Name"
color: Theme.Theme.secondaryText
Layout.alignment: Qt.AlignHCenter
}
}
footer: DialogButtonBox {
Button {
text: "Закрыть"
DialogButtonBox.buttonRole: DialogButtonBox.RejectRole
onClicked: root.reject()
}
}
}