Skip to content

Commit a667dbc

Browse files
committed
Embed opaque images as JPEG
1 parent 46119ef commit a667dbc

File tree

7 files changed

+13
-6
lines changed

7 files changed

+13
-6
lines changed

main.qml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ ApplicationWindow {
5252
Image {
5353
width: parent.width
5454
height: parent.height
55-
source: "qrc:/resources/background.png"
55+
source: "qrc:/resources/background.jpg"
5656
}
5757

5858
Rectangle {
@@ -70,7 +70,7 @@ ApplicationWindow {
7070
top: parent.top
7171
topMargin: parent.height * 0.1
7272
}
73-
source: "qrc:/resources/header.png"
73+
source: "qrc:/resources/header.jpg"
7474
}
7575
Rectangle {
7676
anchors.top: header.bottom

qml.qrc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
<file>NewsCard.qml</file>
99
<file>DownloadInfo.qml</file>
1010
<file>UpdateFailed.qml</file>
11-
<file>resources/splash.png</file>
11+
<file>resources/splash.jpg</file>
1212
<file>splash.qml</file>
1313
<file>Settings.qml</file>
1414
<file>utils.js</file>
1515
<file>resources/unvanquished.png</file>
16-
<file>resources/background.png</file>
17-
<file>resources/header.png</file>
16+
<file>resources/background.jpg</file>
17+
<file>resources/header.jpg</file>
1818
<file>resources/logo.png</file>
1919
<file>resources/tyrant.png</file>
2020
<file>resources/net.unvanquished.Unvanquished.desktop</file>

resources/background.jpg

17.2 KB
Loading

resources/convert-jpg.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#! /usr/bin/env bash
2+
3+
guetzli --nomemlimit --quality 84 header.png header.jpg &
4+
guetzli --nomemlimit --quality 84 background.png background.jpg &
5+
guetzli --nomemlimit --quality 93 splash.png splash.jpg &
6+
7+
wait

resources/header.jpg

12.8 KB
Loading

resources/splash.jpg

36.7 KB
Loading

splash.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ ApplicationWindow {
106106
Image {
107107
width: parent.width
108108
height: parent.height
109-
source: "qrc:/resources/splash.png"
109+
source: "qrc:/resources/splash.jpg"
110110
}
111111

112112
FluidControls.BodyLabel {

0 commit comments

Comments
 (0)