forked from qt-creator/qt-creator
StudioWelcome: Remove effect from splash screen
Not supported with Qt 6. Change-Id: Ie12c5b15caaa6b80dcb3dc26fdf43b360b6761a5 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -23,19 +23,13 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtGraphicalEffects 1.0
|
||||
import QtQuick 2.0
|
||||
|
||||
Item {
|
||||
id: root
|
||||
default property alias content: stack.children
|
||||
property alias maskBlurRadius: maskedBlur.radius
|
||||
property alias maskBlurSamples: maskedBlur.samples
|
||||
property alias gradientStopPosition1: stop1.position
|
||||
property alias gradientStopPosition2: stop2.position
|
||||
property alias gradientStopPosition3: stop3.position
|
||||
property alias gradientStopPosition4: stop4.position
|
||||
property alias maskRotation: gradient.rotation
|
||||
|
||||
Row {
|
||||
visible: true
|
||||
@@ -47,47 +41,13 @@ Item {
|
||||
width: stack.width
|
||||
height: stack.height
|
||||
visible: false
|
||||
|
||||
LinearGradient {
|
||||
id: gradient
|
||||
height: stack.height * 2
|
||||
width: stack.width * 2
|
||||
y: -stack.height / 2
|
||||
x: -stack.width / 2
|
||||
rotation: 0
|
||||
gradient: Gradient {
|
||||
GradientStop {
|
||||
id: stop1
|
||||
position: 0.2
|
||||
color: "#ffffffff"
|
||||
}
|
||||
GradientStop {
|
||||
id: stop2
|
||||
position: 0.5
|
||||
color: "#00ffffff"
|
||||
}
|
||||
GradientStop {
|
||||
id: stop3
|
||||
position: 0.8
|
||||
color: "#00ffffff"
|
||||
}
|
||||
GradientStop {
|
||||
id: stop4
|
||||
position: 1.0
|
||||
color: "#ffffffff"
|
||||
}
|
||||
}
|
||||
start: Qt.point(stack.width / 2, 0)
|
||||
end: Qt.point(stack.width + stack.width / 2, 100)
|
||||
}
|
||||
}
|
||||
|
||||
MaskedBlur {
|
||||
ShaderEffectSource {
|
||||
id: maskedBlur
|
||||
anchors.fill: stack
|
||||
source: stack
|
||||
maskSource: mask
|
||||
radius: 32
|
||||
samples: 16
|
||||
sourceItem: stack
|
||||
property real radius: 0
|
||||
property real samples: 0
|
||||
}
|
||||
}
|
||||
|
||||
@@ -192,10 +192,6 @@ Image {
|
||||
visible: true
|
||||
maskBlurSamples: 64
|
||||
maskBlurRadius: 32
|
||||
gradientStopPosition4: 1.3
|
||||
gradientStopPosition3: 0.9
|
||||
gradientStopPosition2: 0.6
|
||||
gradientStopPosition1: 0
|
||||
|
||||
Splash_Image25d {
|
||||
id: animated_artwork
|
||||
|
||||
Reference in New Issue
Block a user