1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-07 03:22:33 +01:00

Fix workshop resource path prefix

This commit is contained in:
Elias Steurer 2022-05-01 20:20:57 +02:00
parent 7a02ec11ae
commit dd00683445
9 changed files with 19 additions and 19 deletions

View File

@ -21,7 +21,7 @@ MouseArea {
Icon image if the icon. Icon image if the icon.
*/ */
property string icon: "qrc:/ScreenPlayWorkshop/assets/icons/icon_close.svg" property string icon: "qrc:/qml/ScreenPlayWorkshop/assets/icons/icon_close.svg"
width: 32 width: 32
height: width height: width

View File

@ -37,7 +37,7 @@ Rectangle {
id: maskSource id: maskSource
visible: false visible: false
source: "qrc:/ScreenPlayWorkshop/assets/images/mask_workshop.png" source: "qrc:/qml/ScreenPlayWorkshop/assets/images/mask_workshop.png"
} }
Image { Image {

View File

@ -78,14 +78,14 @@ Rectangle {
Image { Image {
id: avatarPlaceholder id: avatarPlaceholder
anchors.fill: avatar anchors.fill: avatar
source: "qrc:/ScreenPlayWorkshop/assets/images/steam_default_avatar.png" source: "qrc:/qml/ScreenPlayWorkshop/assets/images/steam_default_avatar.png"
} }
Button { Button {
id: btnUplaod id: btnUplaod
text: qsTr("Upload to the Steam Workshop") text: qsTr("Upload to the Steam Workshop")
icon.source: "qrc:/ScreenPlayWorkshop/assets/icons/icon_plus.svg" icon.source: "qrc:/qml/ScreenPlayWorkshop/assets/icons/icon_plus.svg"
icon.color: "white" icon.color: "white"
icon.width: 16 icon.width: 16
icon.height: 16 icon.height: 16

View File

@ -36,7 +36,7 @@ Popup {
} }
Image { Image {
source: "qrc:/ScreenPlayWorkshop/assets/images/steam_offline.png" source: "qrc:/qml/ScreenPlayWorkshop/assets/images/steam_offline.png"
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
} }

View File

@ -138,7 +138,7 @@ Item {
Image { Image {
id: mask id: mask
source: "qrc:/ScreenPlayWorkshop/assets/images/window.svg" source: "qrc:/qml/ScreenPlayWorkshop/assets/images/window.svg"
sourceSize: Qt.size(screenPlayItem.width, screenPlayItem.height) sourceSize: Qt.size(screenPlayItem.width, screenPlayItem.height)
visible: false visible: false
smooth: true smooth: true

View File

@ -150,7 +150,7 @@ Drawer {
Image { Image {
id: imgBack id: imgBack
source: "qrc:/ScreenPlayWorkshop/assets/icons/icon_arrow_right.svg" source: "qrc:/qml/ScreenPlayWorkshop/assets/icons/icon_arrow_right.svg"
sourceSize: Qt.size(15, 15) sourceSize: Qt.size(15, 15)
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit
anchors.centerIn: parent anchors.centerIn: parent
@ -186,7 +186,7 @@ Drawer {
id: txtVotesUp id: txtVotesUp
Layout.fillWidth: true Layout.fillWidth: true
icon.source: "qrc:/ScreenPlayWorkshop/assets/icons/icon_thumb_up.svg" icon.source: "qrc:/qml/ScreenPlayWorkshop/assets/icons/icon_thumb_up.svg"
ToolTip.visible: hovered ToolTip.visible: hovered
ToolTip.text: qsTr("Click here if you like the content") ToolTip.text: qsTr("Click here if you like the content")
onClicked: { onClicked: {
@ -200,7 +200,7 @@ Drawer {
id: txtVotesDown id: txtVotesDown
Layout.fillWidth: true Layout.fillWidth: true
icon.source: "qrc:/ScreenPlayWorkshop/assets/icons/icon_thumb_down.svg" icon.source: "qrc:/qml/ScreenPlayWorkshop/assets/icons/icon_thumb_down.svg"
ToolTip.visible: hovered ToolTip.visible: hovered
ToolTip.text: qsTr("Click here if you do not like the content") ToolTip.text: qsTr("Click here if you do not like the content")
onClicked: { onClicked: {
@ -324,7 +324,7 @@ Drawer {
id: btnOpenInSteam id: btnOpenInSteam
font.pointSize: 10 font.pointSize: 10
icon.source: "qrc:/ScreenPlayWorkshop/assets/icons/icon_open_in_new.svg" icon.source: "qrc:/qml/ScreenPlayWorkshop/assets/icons/icon_open_in_new.svg"
height: 25 height: 25
text: qsTr("Open In Steam") text: qsTr("Open In Steam")
onClicked: Qt.openUrlExternally( onClicked: Qt.openUrlExternally(
@ -336,7 +336,7 @@ Drawer {
highlighted: !root.subscribed highlighted: !root.subscribed
enabled: !root.subscribed enabled: !root.subscribed
icon.source: "qrc:/ScreenPlayWorkshop/assets/icons/icon_download.svg" icon.source: "qrc:/qml/ScreenPlayWorkshop/assets/icons/icon_download.svg"
text: root.subscribed ? qsTr("Subscribed!") : qsTr("Subscribe") text: root.subscribed ? qsTr("Subscribed!") : qsTr("Subscribe")
onClicked: { onClicked: {
root.subscribed = true root.subscribed = true

View File

@ -59,7 +59,7 @@ Item {
Image { Image {
id: avatarPlaceholder id: avatarPlaceholder
anchors.fill: parent anchors.fill: parent
source: "qrc:/ScreenPlayWorkshop/assets/images/steam_default_avatar.png" source: "qrc:/qml/ScreenPlayWorkshop/assets/images/steam_default_avatar.png"
} }
} }

View File

@ -154,7 +154,7 @@ Item {
text: qsTr("Download now!") text: qsTr("Download now!")
Material.accent: Material.color(Material.Orange) Material.accent: Material.color(Material.Orange)
highlighted: true highlighted: true
icon.source: "qrc:/ScreenPlayWorkshop/assets/icons/icon_download.svg" icon.source: "qrc:/qml/ScreenPlayWorkshop/assets/icons/icon_download.svg"
onClicked: { onClicked: {
text = qsTr("Downloading...") text = qsTr("Downloading...")
root.steamWorkshop.subscribeItem( root.steamWorkshop.subscribeItem(
@ -167,7 +167,7 @@ Item {
text: qsTr("Details") text: qsTr("Details")
Material.accent: Material.color(Material.Orange) Material.accent: Material.color(Material.Orange)
highlighted: true highlighted: true
icon.source: "qrc:/ScreenPlayWorkshop/assets/icons/icon_info.svg" icon.source: "qrc:/qml/ScreenPlayWorkshop/assets/icons/icon_info.svg"
visible: false visible: false
onClicked: { onClicked: {
sidebar.setWorkshopItem(publishedFileID, sidebar.setWorkshopItem(publishedFileID,
@ -261,7 +261,7 @@ Item {
Image { Image {
id: avatarPlaceholder id: avatarPlaceholder
anchors.fill: avatar anchors.fill: avatar
source: "qrc:/ScreenPlayWorkshop/assets/images/steam_default_avatar.png" source: "qrc:/qml/ScreenPlayWorkshop/assets/images/steam_default_avatar.png"
} }
Button { Button {
@ -340,7 +340,7 @@ Item {
ToolButton { ToolButton {
id: tb id: tb
icon.source: "qrc:/ScreenPlayWorkshop/assets/icons/icon_search.svg" icon.source: "qrc:/qml/ScreenPlayWorkshop/assets/icons/icon_search.svg"
onClicked: { onClicked: {
root.state = "searching" root.state = "searching"
root.steamWorkshop.searchWorkshopByText( root.steamWorkshop.searchWorkshopByText(
@ -377,7 +377,7 @@ Item {
font.capitalization: Font.Capitalize font.capitalization: Font.Capitalize
onClicked: Qt.openUrlExternally( onClicked: Qt.openUrlExternally(
"steam://url/SteamWorkshopPage/672870") "steam://url/SteamWorkshopPage/672870")
icon.source: "qrc:/ScreenPlayWorkshop/assets/icons/icon_steam.svg" icon.source: "qrc:/qml/ScreenPlayWorkshop/assets/icons/icon_steam.svg"
icon.width: 18 icon.width: 18
icon.height: 18 icon.height: 18
height: cbQuerySort.height height: cbQuerySort.height

View File

@ -127,7 +127,7 @@ Item {
Image { Image {
id: mask id: mask
//source: "qrc:/ScreenPlayWorkshop/assets/images/Window.svg" //source: "qrc:/qml/ScreenPlayWorkshop/assets/images/Window.svg"
sourceSize: Qt.size(screenPlay.width, screenPlay.height) sourceSize: Qt.size(screenPlay.width, screenPlay.height)
visible: false visible: false
smooth: true smooth: true
@ -220,7 +220,7 @@ Item {
} }
Image { Image {
source: "qrc:/ScreenPlayWorkshop/assets/icons/icon_open_in_new.svg" source: "qrc:/qml/ScreenPlayWorkshop/assets/icons/icon_open_in_new.svg"
sourceSize: Qt.size(parent.width, parent.height) sourceSize: Qt.size(parent.width, parent.height)
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit
} }