diff --git a/sddm/03-sway-fedora/Main.qml b/sddm/03-sway-fedora/Main.qml index 4fac9f3..2369b24 100644 --- a/sddm/03-sway-fedora/Main.qml +++ b/sddm/03-sway-fedora/Main.qml @@ -1,5 +1,6 @@ /*************************************************************************** * Copyright (c) 2013 Abdurrahman AVCI +* Copyright (c) 2024 Aleksei Bavshin * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation @@ -58,11 +59,12 @@ Rectangle { Background { anchors.fill: parent - source: config.background + source: Qt.resolvedUrl(config.background) fillMode: Image.PreserveAspectCrop onStatusChanged: { - if (status == Image.Error && source != config.defaultBackground) { - source = config.defaultBackground + var defaultBackground = Qt.resolvedUrl(config.defaultBackground) + if (status == Image.Error && source != defaultBackground) { + source = defaultBackground } } } @@ -87,7 +89,7 @@ Rectangle { width: Math.max(320, mainColumn.implicitWidth + 50) height: Math.max(320, mainColumn.implicitHeight + 50) - source: "rectangle.png" + source: Qt.resolvedUrl("rectangle.png") Column { id: mainColumn @@ -186,7 +188,7 @@ Rectangle { width: parent.width; height: 30 font.pixelSize: 14 - arrowIcon: "angle-down.png" + arrowIcon: Qt.resolvedUrl("angle-down.png") model: sessionModel index: sessionModel.lastIndex @@ -215,7 +217,7 @@ Rectangle { width: parent.width; height: 30 font.pixelSize: 14 - arrowIcon: "angle-down.png" + arrowIcon: Qt.resolvedUrl("angle-down.png") KeyNavigation.backtab: session; KeyNavigation.tab: loginButton }