Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Commit

Permalink
Redesign volume icon. (#4414)
Browse files Browse the repository at this point in the history
* Redesign volume icon.

Signed-off-by: Markus Reiter <me@reitermark.us>
  • Loading branch information
reitermarkus authored and kaikreuzer committed Oct 13, 2017
1 parent 07f5d08 commit 9ffe382
Show file tree
Hide file tree
Showing 14 changed files with 54 additions and 68 deletions.
@@ -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
Expand Up @@ -150,3 +150,7 @@ cp -f clock.svg time.svg

cp -f video.png mediacontrol.png
cp -f video.svg mediacontrol.svg

cp -f soundvolume.png mutevolume.png
cp -f soundvolume_mute.png mutevolume-on.png
cp -f soundvolume.png mutevolume-off.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9ffe382

Please sign in to comment.