mirror of
https://github.com/Serial-Studio/Serial-Studio.git
synced 2025-01-15 05:22:53 +08:00
Nicer shadow implementation
This commit is contained in:
parent
6fbfa829c9
commit
adf09ccd15
@ -50,8 +50,9 @@ Window {
|
|||||||
property bool windowMaximized: false
|
property bool windowMaximized: false
|
||||||
property bool windowMinimized: false
|
property bool windowMinimized: false
|
||||||
property alias fullScreen: border.fullScreen
|
property alias fullScreen: border.fullScreen
|
||||||
readonly property int customFlags: Qt.FramelessWindowHint |
|
readonly property int customFlags: Qt.CustomizeWindowHint |
|
||||||
Qt.WindowMinMaxButtonsHint
|
Qt.FramelessWindowHint |
|
||||||
|
Qt.NoDropShadowWindowHint
|
||||||
|
|
||||||
//
|
//
|
||||||
// Toggle fullscreen state
|
// Toggle fullscreen state
|
||||||
@ -91,9 +92,11 @@ Window {
|
|||||||
// Shadow implementation
|
// Shadow implementation
|
||||||
//
|
//
|
||||||
RectangularGlow {
|
RectangularGlow {
|
||||||
|
spread: 0.2
|
||||||
anchors.fill: bg
|
anchors.fill: bg
|
||||||
glowRadius: root.margin
|
color: Qt.rgba(0,0,0,0.5)
|
||||||
color: Qt.rgba(0,0,0,0.1)
|
glowRadius: root.margin / 2
|
||||||
|
cornerRadius: bg.radius + glowRadius
|
||||||
} Rectangle {
|
} Rectangle {
|
||||||
id: bg
|
id: bg
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user