64 lines
1.6 KiB
QML
64 lines
1.6 KiB
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Window
|
|
import FigmaQmlInterface
|
|
// import QtGraphicalEffects
|
|
// import QtQuickApp
|
|
import QtQuick.Effects
|
|
import QtQuick.Shapes 1.9
|
|
|
|
ApplicationWindow {
|
|
id: rootWindow
|
|
property int baseWidth: 600
|
|
property int baseHeight: 450
|
|
property int borderWidth: 1
|
|
property int shadowMask: 10
|
|
|
|
width: baseWidth + 2*(borderWidth+shadowMask)
|
|
height: baseHeight + 2*(borderWidth+shadowMask)
|
|
visible: true
|
|
minimumWidth: width
|
|
maximumWidth: width
|
|
minimumHeight: height
|
|
maximumHeight: height
|
|
flags: Qt.Window | Qt.FramelessWindowHint
|
|
color: "transparent"
|
|
title: "Кварц"
|
|
|
|
Rectangle {
|
|
id: mainContainer
|
|
anchors.fill: parent
|
|
anchors.margins: 0
|
|
// border.color: "#000000"
|
|
// border.width: 1
|
|
radius: 30
|
|
color: "transparent"
|
|
clip: true
|
|
|
|
FigmaQmlUi {
|
|
id: figmaRoot
|
|
x: (rootWindow.width - figmaRoot.width) / 2
|
|
y: (rootWindow.height - figmaRoot.height) / 2
|
|
Rectangle {
|
|
id: baseBorder
|
|
anchors.fill: parent
|
|
anchors.margins: -1
|
|
color: "transparent"
|
|
border.color: "#000000"
|
|
border.width: 1
|
|
}
|
|
}
|
|
|
|
MultiEffect {
|
|
source: figmaRoot
|
|
anchors.fill: figmaRoot
|
|
shadowBlur: 1.0
|
|
shadowEnabled: true
|
|
shadowColor: "#33000000"
|
|
shadowVerticalOffset: 0
|
|
shadowHorizontalOffset: 0
|
|
}
|
|
}
|
|
|
|
}
|