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

Redesign volume icon. #4414

Merged
merged 3 commits into from Oct 13, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -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.