mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 19:38:48 +03:00
38 lines
1.1 KiB
QML
38 lines
1.1 KiB
QML
// SPDX-FileCopyrightText: 2021 Nheko Contributors
|
|
// SPDX-FileCopyrightText: 2022 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
|
|
|
|
Dialog {
|
|
default property alias inner: scroll.data
|
|
property int useableWidth: scroll.width - scroll.ScrollBar.vertical.width
|
|
|
|
anchors.centerIn: parent
|
|
closePolicy: Popup.NoAutoClose
|
|
height: (Math.floor(parent.height / 2) - Nheko.paddingLarge) * 2
|
|
modal: true
|
|
padding: 0
|
|
parent: Overlay.overlay
|
|
standardButtons: Dialog.Ok | Dialog.Cancel
|
|
width: (Math.floor(parent.width / 2) - Nheko.paddingLarge) * 2
|
|
|
|
background: Rectangle {
|
|
border.color: Nheko.theme.separator
|
|
border.width: 1
|
|
color: timelineRoot.palette.window
|
|
radius: Nheko.paddingSmall
|
|
}
|
|
contentChildren: [
|
|
ScrollView {
|
|
id: scroll
|
|
ScrollBar.horizontal.visible: false
|
|
ScrollBar.vertical.visible: true
|
|
anchors.fill: parent
|
|
clip: true
|
|
}
|
|
]
|
|
}
|