summary refs log tree commit diff
path: root/resources/qml/components
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-10-17 17:17:29 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-10-17 17:18:14 +0200
commitb030eb923b7aac7e67bce30e34e18f6ef222f8fc (patch)
tree7e085c8c04dc9966abf23bdff486bb87eb627c18 /resources/qml/components
parentmove device verification management to its own file (diff)
downloadnheko-b030eb923b7aac7e67bce30e34e18f6ef222f8fc.tar.xz
WIP
Diffstat (limited to 'resources/qml/components')
-rw-r--r--resources/qml/components/MainWindowDialog.qml42
1 files changed, 42 insertions, 0 deletions
diff --git a/resources/qml/components/MainWindowDialog.qml b/resources/qml/components/MainWindowDialog.qml
new file mode 100644

index 00000000..19233384 --- /dev/null +++ b/resources/qml/components/MainWindowDialog.qml
@@ -0,0 +1,42 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + +import Qt.labs.platform 1.1 as P +import QtQuick 2.15 +import QtQuick.Controls 2.15 +import QtQuick.Layouts 1.3 +import im.nheko 1.0 + +Dialog { + parent: Overlay.overlay + anchors.centerIn: parent + height: (Math.floor(parent.height / 2) - Nheko.paddingLarge) * 2 + width: (Math.floor(parent.width / 2) - Nheko.paddingLarge) * 2 + padding: 0 + modal: true + standardButtons: Dialog.Ok | Dialog.Cancel + closePolicy: Popup.NoAutoClose + + default property alias inner: scroll.data + property int useableWidth: scroll.width - scroll.ScrollBar.vertical.width + + contentChildren: [ + ScrollView { + id: scroll + + clip: true + anchors.fill: parent + ScrollBar.horizontal.visible: false + ScrollBar.vertical.visible: true + } + ] + + background: Rectangle { + color: Nheko.colors.window + border.color: Nheko.theme.separator + border.width: 1 + radius: Nheko.paddingSmall + } + +}