2022-04-23 14:32:36 +02:00
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Controls
|
|
|
|
import QtQuick.Layouts
|
|
|
|
import QtQuick.Controls.Material
|
2022-04-30 12:07:54 +02:00
|
|
|
import ScreenPlayApp 1.0
|
2022-04-23 14:32:36 +02:00
|
|
|
import ScreenPlay 1.0
|
|
|
|
import ScreenPlayUtil 1.0 as Common
|
|
|
|
|
|
|
|
Common.Dialog {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
standardButtons: Dialog.Ok
|
|
|
|
contentHeight: 250
|
|
|
|
|
|
|
|
Connections {
|
|
|
|
function onMonitorConfigurationChanged() {
|
|
|
|
root.open()
|
|
|
|
}
|
|
|
|
|
2022-04-30 12:07:54 +02:00
|
|
|
target: App.monitorListModel
|
2022-04-23 14:32:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
contentItem: Item {
|
|
|
|
ColumnLayout {
|
|
|
|
anchors.margins: 20
|
|
|
|
anchors.fill: parent
|
|
|
|
spacing: 20
|
|
|
|
|
|
|
|
Image {
|
|
|
|
Layout.alignment: Qt.AlignHCenter
|
|
|
|
Layout.preferredWidth: 150
|
|
|
|
Layout.preferredHeight: 150
|
|
|
|
source: "qrc:/assets/icons/monitor_setup.svg"
|
|
|
|
fillMode: Image.PreserveAspectFit
|
|
|
|
}
|
|
|
|
|
|
|
|
Text {
|
|
|
|
text: qsTr("Your monitor setup changed!\n Please configure your wallpaper again.")
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.fillHeight: true
|
|
|
|
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
2022-04-30 12:07:54 +02:00
|
|
|
font.family: App.settings.font
|
2022-04-23 14:32:36 +02:00
|
|
|
font.pointSize: 16
|
|
|
|
color: Material.primaryTextColor
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|