This repository has been archived by the owner on May 7, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Redesign volume icon. Signed-off-by: Markus Reiter <me@reitermark.us>
- Loading branch information
1 parent
07f5d08
commit 9ffe382
Showing
14 changed files
with
54 additions
and
68 deletions.
There are no files selected for viewing
42 changes: 12 additions & 30 deletions
42
extensions/ui/iconset/org.eclipse.smarthome.ui.iconset.classic/icons/_iconconvert
This file contains 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,40 +1,22 @@ | ||
#!/bin/sh | ||
#!/usr/bin/env bash | ||
|
||
for file in "${1}"*.svg; do | ||
set -e | ||
|
||
for file in "${1}"*.svg; do | ||
if [[ "${file}" != 'none'* ]]; then | ||
png="${file%.svg}.png" | ||
|
||
png=`echo "${file}" | sed s/.svg/.png/` | ||
# Clean up SVG file. | ||
svgcleaner --remove-declarations=false --indent=2 "${file}" "${file}" | ||
|
||
# format SVG file | ||
if type xmllint &>/dev/null; then | ||
xmllint "${file}" -o "${file}" --pretty 1 | ||
else | ||
echo "error: xmllint not installed" 2>1 | ||
exit 1 | ||
fi | ||
|
||
# convert SVG file to PNG | ||
# Convert SVG file to PNG. | ||
if [ ! -f "${png}" ]; then | ||
|
||
if type rsvg-convert &>/dev/null; then | ||
|
||
# dependency: librsvg | ||
echo "rsvg-convert: converting ${file}" | ||
rsvg-convert "${file}" -o "${png}" | ||
|
||
elif type svgexport &>/dev/null; then | ||
|
||
# dependency: svgexport (via npm) | ||
echo "svgexport: converting ${file}" | ||
svgexport "${file}" "${png}" | ||
|
||
else | ||
echo "error: no SVG converter installed" 2>1 | ||
exit 1 | ||
fi | ||
|
||
rsvg-convert "${file}" -o "${png}" | ||
fi | ||
|
||
# Losslessly minify PNG file. | ||
while pngout "${png}" -kbKGD; do | ||
: # Minify until maximum compression is reached. | ||
done | ||
fi | ||
done |
This file contains 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
Binary file modified
BIN
+248 Bytes
(180%)
...ons/ui/iconset/org.eclipse.smarthome.ui.iconset.classic/icons/soundvolume-0.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions
6
...ons/ui/iconset/org.eclipse.smarthome.ui.iconset.classic/icons/soundvolume-0.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.69 KB
(260%)
...s/ui/iconset/org.eclipse.smarthome.ui.iconset.classic/icons/soundvolume-100.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 9 additions & 9 deletions
18
...s/ui/iconset/org.eclipse.smarthome.ui.iconset.classic/icons/soundvolume-100.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+472 Bytes
(200%)
...ns/ui/iconset/org.eclipse.smarthome.ui.iconset.classic/icons/soundvolume-33.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions
10
...ns/ui/iconset/org.eclipse.smarthome.ui.iconset.classic/icons/soundvolume-33.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+902 Bytes
(220%)
...ns/ui/iconset/org.eclipse.smarthome.ui.iconset.classic/icons/soundvolume-66.png
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.