mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-05 18:42:29 +01:00
bcfb188cf2
Fix sidebar
29 lines
682 B
QML
29 lines
682 B
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
import Qt5Compat.GraphicalEffects
|
|
import QtQuick.Controls.Material.impl
|
|
import QtQuick.Controls.Material
|
|
import ScreenPlayApp
|
|
import ScreenPlay
|
|
|
|
Dialog {
|
|
id: root
|
|
property Item modalSource
|
|
dim: true
|
|
anchors.centerIn: Overlay.overlay
|
|
modal: true
|
|
focus: true
|
|
|
|
Overlay.modal: ModalBackgroundBlur {
|
|
id: blurBg
|
|
sourceItem: root.modalSource
|
|
hideSource: root.hideSource
|
|
}
|
|
// Workaround for missing animation on hide
|
|
// when using hideSource
|
|
property bool hideSource: true
|
|
onAboutToHide: root.hideSource = false
|
|
onAboutToShow: root.hideSource = true
|
|
}
|