Auto-generate 24px monochrome icons

Authored by ngraham on Feb 21 2020, 9:52 PM.

Description

Auto-generate 24px monochrome icons

Summary:
Right now we have 24px monochrome icons for compatibility with GTK apps, which use icons
of this size. However they are visually identical to the 22px versions, with one pixel of
padding on all sides. Manually creating them is tedious busywork.

This patch removes all existing 24px monochrome icons and automatically generates them
from the 22px versions for action, device, places, and status icons by editing the SVG
files to increase the size of the viewbox and apply a (1,1) translation to the content.

That way I implemented this seems to work pretty reliably on the icon generation side.
However I am less sure about how it is integrated into the CMake files. It works, but if
I did it wrong, let me know.

Test Plan:
Delete ~/kde/usr/share/icons/{breeze,breeze-dark} (or wherever your icons live)
Apply patch and build
Look in ~/kde/usr/share/icons/{breeze,breeze-dark}/{devices,actions,places,status}/24
Open Cuttlefish

See that everything is awesome

Reviewers: VDG, ndavis, Frameworks, sitter

Reviewed By: VDG, ndavis

Subscribers: kde-frameworks-devel

Tags: Frameworks

Maniphest Tasks: T11950

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

Details

Committed
ngrahamFeb 23 2020, 4:44 PM
Reviewer
VDG
Differential Revision
D27557: Auto-generate 24px monochrome icons
Parents
R266:b42f44143503: Add icons that were only in actions/24 to actions/22
Branches
Unknown
Tags
Unknown

Very Large Commit

This commit is very large, and affects more than 1000 files. Changes are not shown.