1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-06 19:12:30 +01:00

Add custom background blur #2

This commit is contained in:
Elias Steurer 2022-01-16 12:22:57 +01:00
parent 0f44db0b68
commit 2053a6da80
9 changed files with 40 additions and 14 deletions

View File

@ -6,13 +6,14 @@ import "../"
Dialog {
id: root
property var modalSource
Overlay.modal: ModalBackgroundBlur {
sourceItem: root.modalSource
}
modal: true
anchors.centerIn: Overlay.overlay
standardButtons: Dialog.Ok
title: qsTr("Could not load steam integration!")
Overlay.modal: ModalBackgroundBlur {
sourceItem: root.modalSource
}
}

View File

@ -8,6 +8,8 @@ import ScreenPlay 1.0
Item {
id: root
required property var modalSource
XMLNewsfeed {
anchors {
top: navWrapper.bottom
@ -52,7 +54,8 @@ Item {
Button {
text: qsTr("Wiki")
onClicked: Qt.openUrlExternally("https://kelteseth.gitlab.io/ScreenPlayDocs/")
onClicked: Qt.openUrlExternally(
"https://kelteseth.gitlab.io/ScreenPlayDocs/")
icon.source: "qrc:/assets/icons/icon_help_center.svg"
icon.width: 14
icon.height: 14
@ -61,7 +64,8 @@ Item {
Button {
text: qsTr("Forum")
onClicked: Qt.openUrlExternally("https://forum.screen-play.app/")
onClicked: Qt.openUrlExternally(
"https://forum.screen-play.app/")
icon.source: "qrc:/assets/icons/icon_forum.svg"
icon.width: 14
icon.height: 14
@ -70,7 +74,8 @@ Item {
Button {
text: qsTr("Reddit")
onClicked: Qt.openUrlExternally("https://www.reddit.com/r/ScreenPlayApp/")
onClicked: Qt.openUrlExternally(
"https://www.reddit.com/r/ScreenPlayApp/")
icon.source: "qrc:/assets/icons/brand_reddit.svg"
icon.width: 14
icon.height: 14
@ -79,7 +84,8 @@ Item {
Button {
text: qsTr("Issue Tracker")
onClicked: Qt.openUrlExternally("https://gitlab.com/kelteseth/ScreenPlay/-/issues")
onClicked: Qt.openUrlExternally(
"https://gitlab.com/kelteseth/ScreenPlay/-/issues")
icon.source: "qrc:/assets/icons/icon_report_problem.svg"
icon.width: 14
icon.height: 14
@ -88,7 +94,8 @@ Item {
Button {
text: qsTr("Contribute")
onClicked: Qt.openUrlExternally("https://gitlab.com/kelteseth/ScreenPlay#general-contributing")
onClicked: Qt.openUrlExternally(
"https://gitlab.com/kelteseth/ScreenPlay#general-contributing")
icon.source: "qrc:/assets/icons/icon_supervisor_account.svg"
icon.width: 14
icon.height: 14
@ -130,6 +137,4 @@ Item {
}
}
}
}

View File

@ -12,6 +12,8 @@ import ScreenPlay.QMLUtilities 1.0
Item {
id: root
required property var modalSource
Component.onCompleted: {
wizardContentWrapper.state = "in";
stackView.push("qrc:/ScreenPlay/qml/Create/StartInfo.qml");

View File

@ -12,7 +12,8 @@ Item {
property bool refresh: false
property bool enabled: true
property Sidebar sidebar
required property Sidebar sidebar
signal setNavigationItem(var pos)
signal setSidebarActive(var active)

View File

@ -12,6 +12,8 @@ import "../Common"
Item {
id: root
required property var modalSource
function indexOfValue(model, value) {
for (var i = 0; i < model.length; i++) {
let ourValue = model[i].value;

View File

@ -11,6 +11,8 @@ import "upload/"
Item {
id: root
required property var modalSource
ScreenPlayWorkshop {
id: screenPlayWorkshop
Component.onCompleted: {
@ -19,7 +21,8 @@ Item {
"stackView": stackView,
"screenPlayWorkshop": screenPlayWorkshop,
"steamWorkshop": screenPlayWorkshop.steamWorkshop,
"background": background
"background": background,
"modalSource": root.modalSource
})
} else {
popupOffline.open()
@ -39,6 +42,7 @@ Item {
id: popupOffline
workshop: screenPlayWorkshop
steam: screenPlayWorkshop.steamWorkshop
modalSource: root.modalSource
}
StackView {

View File

@ -16,6 +16,7 @@ Item {
property ScreenPlayWorkshop screenPlayWorkshop
property StackView stackView
property Background background
property var modalSource
Component.onCompleted: {
root.steamWorkshop.searchWorkshop(SteamEnums.K_EUGCQuery_RankedByTrend)
@ -51,6 +52,7 @@ Item {
PopupSteamWorkshopAgreement {
id: popupSteamWorkshopAgreement
modalSource: root.modalSource
}
Connections {

View File

@ -2,16 +2,21 @@ import QtQuick
import QtQuick.Controls
import QtQuick.Controls.Material
import Qt5Compat.GraphicalEffects
import QtQuick.Layouts
import QtQuick.Layouts
import Settings
import ScreenPlay
Item {
id: root
required property var modalSource
Component.onCompleted: {
if (ScreenPlay.settings.steamVersion) {
workshopLoader.setSource("qrc:/ScreenPlay/qml/Workshop/SteamWorkshop.qml")
workshopLoader.setSource(
"qrc:/ScreenPlay/qml/Workshop/SteamWorkshop.qml", {
"modalSource": modalSource
})
} else {
workshopLoader.setSource("qrc:/ScreenPlay/qml/Workshop/Forum.qml")
}

View File

@ -14,6 +14,10 @@ Popup {
height: 400
closePolicy: Popup.NoAutoClose
anchors.centerIn: Overlay.overlay
property var modalSource
Overlay.modal: ModalBackgroundBlur {
sourceItem: root.modalSource
}
ColumnLayout {
anchors {