Commit 2c15ae16 authored by Sebastian Gottfried's avatar Sebastian Gottfried

Qt5: Blur Background Of Lesson Locked Notice

It makes the element more readable.
parent a5000ea6
......@@ -30,15 +30,31 @@ Item {
width: content.width + 40
height: content.height + 40
property alias blurSource: effectSource.sourceItem
SystemPalette {
id: palette
colorGroup: SystemPalette.Active
}
ShaderEffectSource {
id: effectSource
anchors.fill: parent
hideSource: false
sourceRect: Qt.rect(root.x, root.y, root.width, root.height)
}
FastBlur {
anchors.fill: parent
source: effectSource
radius: 25
}
Rectangle {
id: background
anchors.fill: parent
color: palette.base
opacity: 0.3
radius: 15
}
......
......@@ -55,11 +55,12 @@ Item {
Layout.fillHeight: true
lesson: selectedLesson
}
LessonLockedNotice {
anchors.centerIn: parent
opacity: selectedLessonLocked? 1: 0
}
LessonLockedNotice {
anchors.centerIn: lessonPreview
blurSource: lessonPreview
opacity: selectedLessonLocked? 1: 0
}
Item {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment