Skip to content

Commit 0a4b656

Browse files
author
nephros
committed
Merge remote-tracking branch 'upstream/master' into 452plus
2 parents 0cac586 + 2afc2f1 commit 0a4b656

File tree

5 files changed

+455
-26
lines changed

5 files changed

+455
-26
lines changed

rpm/patchmanager.spec

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
%global theme sailfish-default
21

32
# These macros should already be defined in the RPMbuild environment, see: rpm --showrc
43
%{!?qtc_qmake5:%define qtc_qmake5 %qmake5}
@@ -291,7 +290,13 @@ exit 0
291290
%{_datadir}/jolla-settings/entries/%{name}.json
292291
%{_datadir}/%{name}/icons/icon-m-patchmanager.png
293292

294-
%{_datadir}/themes/%{theme}/meegotouch/*/icons/*.png
293+
# pre 4.6:
294+
# /usr/share/themes/sailfish-default/meegotouch/zX.Y/icons/*.png
295+
# 4.6 and higher:
296+
# /usr/share/themes/sailfish-default/silica/zX.Y/icons/*.png
297+
# /usr/share/themes/sailfish-default/silica/zX.Y/icons-monochrome/*.png
298+
%{_datadir}/themes/sailfish-default/*/*/*/*.png
299+
%{_datadir}/icons/hicolor/scalable/apps/*.svg
295300

296301
%changelog
297302
* Thu Sep 9 1999 SailfishOS Patches <[email protected]> - 99.99.99

src/icons/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
sailfish-svg2png:
2+
3+
For all SailfishOS versions up to v4.6 (and possible also Meego):
4+
5+
- svg files must be in svgs/
6+
- png files will be in /usr/share/sailfish-default/meegotouch/zX.Y/icons
7+
8+
For SailishOS 4.6 and higher
9+
10+
- svg files must be in svgs/icons and svgs/icons-monochrome
11+
- png files will be in /usr/share/sailfish-default/silica/zX.Y/icons and /usr/share/sailfish-default/silica/zX.Y/icons-monochrome
12+

src/icons/icons.pro

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,11 @@
11
TEMPLATE = aux
2+
23
# Configures svg to png
34
THEMENAME=sailfish-default
45

5-
load(sailfish-svg2png-sizes)
6-
7-
theme.path = /usr/share/themes/$${THEMENAME}/
8-
themeDirectory.path = /usr/share/themes/$${THEMENAME}/meegotouch
9-
themeDirectory.files += $${OUT_PWD}/icons
10-
11-
for(profile, SAILFISH_SVG2PNG.profiles) {
12-
# a work-around for installing directories that do not exist yet
13-
system(mkdir -p $${OUT_PWD}/z$${profile})
14-
15-
exists( $${OUT_PWD}/symlinks ): svg2png.commands += cp -r symlinks/icons z$${profile} &&
16-
17-
svg2png.commands += /usr/bin/sailfish_svg2png \
18-
-z $$eval(SAILFISH_SVG2PNG.scales.$${profile}) \
19-
$$eval(SAILFISH_SVG2PNG.extra.$${profile}) \
20-
$${_PRO_FILE_PWD_}/svgs \
21-
z$${profile}/icons &&
22-
23-
svg2png.files += $${OUT_PWD}/z$${profile}
24-
}
25-
26-
svg2png.commands += true
27-
svg2png.path = $${themeDirectory.path}
6+
CONFIG += sailfish-svg2png
287

29-
INSTALLS += svg2png theme themeDirectory
8+
# also install SVG:
9+
svg.path = /usr/share/icons/hicolor/scalable/apps
10+
svg.files = svgs/icon-m-patchmanager2.svg
11+
INSTALLS += svg
Lines changed: 215 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)