mirror of
https://github.com/Alia5/GlosSI.git
synced 2024-10-30 15:20:38 +00:00
0692b4107e
Man... fuck... QT and Windows fucks me up... Should've gone electron.
21 lines
609 B
QML
21 lines
609 B
QML
import QtQuick 2.9
|
|
import QtQuick.Controls 2.9
|
|
import QtQuick.Controls.Material 2.9
|
|
import QtQuick.Controls.Material.impl 2.9
|
|
|
|
Pane {
|
|
id: control
|
|
property int radius: 0
|
|
property color color: control.Material.backgroundColor
|
|
property real bgOpacity: 1
|
|
background: Rectangle {
|
|
color: parent.color
|
|
opacity: parent.bgOpacity
|
|
radius: control.Material.elevation > 0 ? control.radius : 0
|
|
|
|
layer.enabled: control.enabled && control.Material.elevation > 0
|
|
layer.effect: ElevationEffect {
|
|
elevation: control.Material.elevation
|
|
}
|
|
}
|
|
} |