-
Notifications
You must be signed in to change notification settings - Fork 23
[SFOS 4.6] Support new theme icon location #464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
7ae80e6
Just use SAILFISH_SVG2PNG for theme icons
5e76235
Package any theme location
0f19fc6
Hardlink the icon source, add README
babfb88
Add svg to installs
e549d58
Fix packaging
2fa7bb6
fixup! Hardlink the icon source, add README
81e5677
Update README
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
| %global theme sailfish-default | ||
|
|
||
| # These macros should already be defined in the RPMbuild environment, see: rpm --showrc | ||
| %{!?qtc_qmake5:%define qtc_qmake5 %qmake5} | ||
|
|
@@ -291,7 +290,13 @@ exit 0 | |
| %{_datadir}/jolla-settings/entries/%{name}.json | ||
| %{_datadir}/%{name}/icons/icon-m-patchmanager.png | ||
|
|
||
| %{_datadir}/themes/%{theme}/meegotouch/*/icons/*.png | ||
| # pre 4.6: | ||
| # /usr/share/themes/sailfish-default/meegotouch/zX.Y/icons/*.png | ||
| # 4.6 and higher: | ||
| # /usr/share/themes/sailfish-default/silica/zX.Y/icons/*.png | ||
| # /usr/share/themes/sailfish-default/silica/zX.Y/icons-monochrome/*.png | ||
| %{_datadir}/themes/sailfish-default/*/*/*/*.png | ||
| %{_datadir}/icons/hicolor/scalable/apps/*.svg | ||
|
|
||
| %changelog | ||
| * Thu Sep 9 1999 SailfishOS Patches <[email protected]> - 99.99.99 | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| sailfish-svg2png: | ||
|
|
||
| For all SailfishOS versions up to v4.6 (and possible also Meego): | ||
|
|
||
| - svg files must be in svgs/ | ||
| - png files will be in /usr/share/sailfish-default/meegotouch/zX.Y/icons | ||
|
|
||
| For SailishOS 4.6 and higher | ||
|
|
||
| - svg files must be in svgs/icons and svgs/icons-monochrome | ||
| - png files will be in /usr/share/sailfish-default/silica/zX.Y/icons and /usr/share/sailfish-default/silica/zX.Y/icons-monochrome | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,29 +1,11 @@ | ||
| TEMPLATE = aux | ||
|
|
||
| # Configures svg to png | ||
| THEMENAME=sailfish-default | ||
|
|
||
| load(sailfish-svg2png-sizes) | ||
|
|
||
| theme.path = /usr/share/themes/$${THEMENAME}/ | ||
| themeDirectory.path = /usr/share/themes/$${THEMENAME}/meegotouch | ||
| themeDirectory.files += $${OUT_PWD}/icons | ||
|
|
||
| for(profile, SAILFISH_SVG2PNG.profiles) { | ||
| # a work-around for installing directories that do not exist yet | ||
| system(mkdir -p $${OUT_PWD}/z$${profile}) | ||
|
|
||
| exists( $${OUT_PWD}/symlinks ): svg2png.commands += cp -r symlinks/icons z$${profile} && | ||
|
|
||
| svg2png.commands += /usr/bin/sailfish_svg2png \ | ||
| -z $$eval(SAILFISH_SVG2PNG.scales.$${profile}) \ | ||
| $$eval(SAILFISH_SVG2PNG.extra.$${profile}) \ | ||
| $${_PRO_FILE_PWD_}/svgs \ | ||
| z$${profile}/icons && | ||
|
|
||
| svg2png.files += $${OUT_PWD}/z$${profile} | ||
| } | ||
|
|
||
| svg2png.commands += true | ||
| svg2png.path = $${themeDirectory.path} | ||
| CONFIG += sailfish-svg2png | ||
|
|
||
| INSTALLS += svg2png theme themeDirectory | ||
| # also install SVG: | ||
| svg.path = /usr/share/icons/hicolor/scalable/apps | ||
| svg.files = svgs/icon-m-patchmanager2.svg | ||
| INSTALLS += svg |
215 changes: 215 additions & 0 deletions
215
src/icons/svgs/icons-monochrome/icon-m-patchmanager2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.