Use SVG app logo in UI header

This commit is contained in:
Sebastian Palencsar
2026-05-20 18:55:03 +02:00
parent 1038f041c7
commit 4003e1e029
3 changed files with 67 additions and 7 deletions

View File

@@ -2,6 +2,7 @@
<qresource prefix="/">
<file alias="Main.qml">qml/Main.qml</file>
<file alias="assets/app/bearwave.png">../assets/app/bearwave.png</file>
<file alias="assets/app/bearwave.svg">../assets/app/bearwave.svg</file>
<file alias="assets/ui/globe.svg">../assets/ui/globe.svg</file>
<file alias="assets/ui/github.svg">../assets/ui/github.svg</file>
<file alias="assets/ui/linkedin.svg">../assets/ui/linkedin.svg</file>

View File

@@ -141,11 +141,13 @@ ApplicationWindow {
Layout.fillWidth: true
spacing: 8
Label {
text: qsTr("BearWave")
color: textMain
font.pixelSize: compactMode ? 18 : 22
font.bold: true
Image {
Layout.preferredWidth: compactMode ? 88 : 112
Layout.preferredHeight: compactMode ? 32 : 40
source: "qrc:/assets/app/bearwave.svg"
fillMode: Image.PreserveAspectFit
smooth: true
mipmap: true
}
Rectangle {
@@ -573,7 +575,7 @@ ApplicationWindow {
Image {
id: coverImage
anchors.fill: parent
source: backend && backend.player && backend.player.currentCoverArtUrl ? backend.player.currentCoverArtUrl : "qrc:/assets/app/bearwave.png"
source: backend && backend.player && backend.player.currentCoverArtUrl ? backend.player.currentCoverArtUrl : "qrc:/assets/app/bearwave.svg"
fillMode: backend && backend.player && backend.player.currentCoverArtUrl ? Image.PreserveAspectCrop : Image.PreserveAspectFit
smooth: true
asynchronous: true
@@ -761,7 +763,7 @@ ApplicationWindow {
Layout.preferredHeight: 72
sourceSize.width: 72
sourceSize.height: 72
source: "qrc:/assets/app/bearwave.png"
source: "qrc:/assets/app/bearwave.svg"
fillMode: Image.PreserveAspectFit
smooth: true
}