Heavy changes

This commit is contained in:
Stefano Moretti
2023-04-21 18:07:17 +02:00
parent 32a567a950
commit 11606b8f39
52 changed files with 1578 additions and 748 deletions

45
qml/PopupInfo.qml Normal file
View File

@ -0,0 +1,45 @@
import QtQuick
import QtQuick.Layouts
import QtQuick.Controls
Dialog {
id: root
property alias text: popupLabel.text
x: (parent.width - width) / 2
y: (parent.height - height) / 2
modal: true
dim: true
closePolicy: Popup.CloseOnEscape
contentItem: LabelSubheading {
id: popupLabel
Layout.fillWidth: true
topPadding: 20
leftPadding: 8
rightPadding: 8
color: Style.popupTextColor
horizontalAlignment: Text.AlignHCenter
wrapMode: Text.WordWrap
linkColor: Style.isDarkTheme ? "lightblue" : "blue"
onLinkActivated: Qt.openUrlExternally(link)
}
footer: DialogButtonBox {
alignment: Qt.AlignHCenter
standardButtons: DialogButtonBox.Ok
onAccepted: root.close()
ButtonFlat {
text: "OK"
textColor: Style.accentColor
DialogButtonBox.buttonRole: DialogButtonBox.AcceptRole
}
}
}