mirror of
https://github.com/vinceliuice/WhiteSur-icon-theme.git
synced 2024-11-22 13:50:13 +00:00
Update
This commit is contained in:
parent
141e246dc9
commit
4cbbaea754
3 changed files with 39 additions and 2 deletions
|
@ -15,6 +15,7 @@ Usage: `./install.sh` **[OPTIONS...]**
|
|||
|-a, --alternative | Install alternative icons for software center and file-manager|
|
||||
|-b, --bold | Install bold panel icons version|
|
||||
|--black | Black panel icons version|
|
||||
|-r,--remove,-u,--uninstall | Uninstall (remove) icon themes|
|
||||
|-h, --help | Show this help|
|
||||
|
||||
> **Note for snaps:** To use these icons with snaps, the best way is to make a copy of the application's .desktop located in `/var/lib/snapd/desktop/applications/name-of-the-snap-application.desktop` into `$HOME/.local/share/applications/`. Then use any text editor and change the "Icon=" to "Icon=name-of-the-icon.svg"
|
||||
|
|
35
install.sh
35
install.sh
|
@ -27,6 +27,10 @@ cat << EOF
|
|||
-a, --alternative Install alternative icons for software center and file-manager
|
||||
-b, --bold Install bold panel icons version
|
||||
--black Black panel icons version
|
||||
|
||||
-r, --remove,
|
||||
-u, --uninstall Uninstall (remove) icon themes
|
||||
|
||||
-h, --help Show help
|
||||
EOF
|
||||
}
|
||||
|
@ -142,6 +146,19 @@ install() {
|
|||
gtk-update-icon-cache ${THEME_DIR}
|
||||
}
|
||||
|
||||
uninstall() {
|
||||
local dest=${1}
|
||||
local name=${2}
|
||||
local theme=${3}
|
||||
local color=${4}
|
||||
|
||||
local THEME_DIR=${dest}/${name}${theme}${color}
|
||||
|
||||
[[ -d ${THEME_DIR} ]] && rm -rf ${THEME_DIR}
|
||||
|
||||
echo "Uninstalling '${THEME_DIR}'..."
|
||||
}
|
||||
|
||||
while [[ "$#" -gt 0 ]]; do
|
||||
case "${1:-}" in
|
||||
-d|--dest)
|
||||
|
@ -168,6 +185,10 @@ while [[ "$#" -gt 0 ]]; do
|
|||
echo "Installing 'black on panel' version..."
|
||||
shift
|
||||
;;
|
||||
-r|--remove|-u|--uninstall)
|
||||
remove='true'
|
||||
shift
|
||||
;;
|
||||
-t|--theme)
|
||||
shift
|
||||
for theme in "${@}"; do
|
||||
|
@ -252,4 +273,16 @@ install_theme() {
|
|||
done
|
||||
}
|
||||
|
||||
install_theme
|
||||
uninstall_theme() {
|
||||
for theme in "${THEME_VARIANTS[@]}"; do
|
||||
for color in "${COLOR_VARIANTS[@]}"; do
|
||||
uninstall "${dest:-${DEST_DIR}}" "${name:-${THEME_NAME}}" "${theme}" "${color}"
|
||||
done
|
||||
done
|
||||
}
|
||||
|
||||
if [[ "${remove}" == 'true' ]]; then
|
||||
uninstall_theme
|
||||
else
|
||||
install_theme
|
||||
fi
|
||||
|
|
|
@ -1 +1,4 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16"><path d="M5.045 3L1.529 13h2.276l.722-2H6.62c-.001-.042-.01-.081-.01-.123 0-.422.036-.844.11-1.266l-.002.002c.035-.206.08-.41.135-.613H5.059l1.287-4 .927 2.834a5.962 5.962 0 0 1 1.27-1.84c.034-.032.075-.055.11-.086L7.626 3H5.045zm6.144 2.932c-.76 0-1.412.26-1.95.78-.54.522-.953 1.18-1.243 1.977a6.41 6.41 0 0 0-.387 2.188c0 .362.052.687.157.973.29.792.845 1.187 1.67 1.187.824 0 1.524-.428 2.1-1.289.054.412.2.73.435.957.235.222.535.332.902.332.371 0 .678-.13.918-.392.136-.154.301-.493.496-1.014a.684.684 0 0 1-.307.062c-.38 0-.57-.16-.57-.476 0-.168.02-.33.06-.488l1-4.729h-2.003l-.15.74V6.64a.601.601 0 0 0-.266-.502c-.177-.136-.463-.205-.862-.205zm.373.863c.259 0 .425.067.502.203.082.131.123.24.123.326l-.666 3.139c-.086.38-.242.682-.468.904-.227.218-.478.326-.754.326a.506.506 0 0 1-.373-.15c-.172-.163-.26-.45-.26-.861 0-.213.013-.416.035-.606.15-1.245.519-2.201 1.108-2.867.244-.276.495-.414.754-.414z" fill="#363636"/></svg>
|
||||
<svg width="16" height="16" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="m5.4688 3-3.6367 10h1.0645l1.1035-3.0352v0.035156h2.0352a4.5 4.5 0 0 1-0.035156-0.5 4.5 4.5 0 0 1 0.035156-0.5h-1.6855l1.8184-5h0.66406l0.75391 2.0742a4.5 4.5 0 0 1 0.85742-0.56641l-0.91211-2.5078h-0.53125-1-0.53125zm4.0254 5.3984a1.5 1.5 0 0 0-0.49414 1.1016 1.5 1.5 0 0 0 1.4375 1.4922l-0.94336-2.5938z" fill="#363636"/>
|
||||
<path d="m10.5 6a3.5 3.5 0 0 0-3.5 3.5 3.5 3.5 0 0 0 3.5 3.5 3.5 3.5 0 0 0 2.6562-1.2207c0.30281 0.71831 1.0128 1.2207 1.8438 1.2207v-1c-0.554 0-1-0.446-1-1v-1-4h-1v1.0527a3.5 3.5 0 0 0-2.5-1.0527zm0 1a2.5 2.5 0 0 1 2.5 2.5 2.5 2.5 0 0 1-2.5 2.5 2.5 2.5 0 0 1-2.5-2.5 2.5 2.5 0 0 1 2.5-2.5z" fill="#363636"/>
|
||||
</svg>
|
||||
|
|
Before Width: | Height: | Size: 998 B After Width: | Height: | Size: 728 B |
Loading…
Reference in a new issue