Keep desktoptheme SVG files uncompressed in repo, install svgz

Authored by kossebau on Apr 1 2019, 11:55 AM.

Description

Keep desktoptheme SVG files uncompressed in repo, install svgz

Summary:
The SVG format being based on plain text, storing the SVG in the repository
not as .svgz, but .svg, helps both VCS tools (patching, showing diffs) as
well as allows some developers to edit the SVG directly in any text editor,
not only those which support automatic conversion from/to gzip format.

While most artists will continue (and which shall be okay) to use GUI
editors like inkscape, which might rewrite the complete structure on saving,
using uncompressed format in the repo still allows the occasional direct
edit of the text, .e.g. to change a colour, which then is also easily seen
in the commit diff.

To still keep the svgz format when deployed, a build step is introduced,
which uses gzip to create svgz files in the build dir. This conversion can
be controlled using the option GZIP_DESKTOPTHEME_SVG (default: ON).

Test Plan: Themes are still working (with & without cache removed).

Reviewers: Plasma, VDG, ngraham

Reviewed By: VDG, ngraham

Subscribers: bruns, GB_2, ndavis, ngraham, fvogt, kde-frameworks-devel

Tags: Frameworks

Differential Revision: https://phabricator.kde.org/D20166

Details

Committed
kossebauApr 11 2019, 11:37 PM
Reviewer
VDG
Differential Revision
D20166: Keep desktoptheme SVG files uncompressed in repo, install svgz
Parents
R242:58dd4c5c0f12: separe mobile text selection to avoid recursive imports
Branches
Unknown
Tags
Unknown