mirror of
https://github.com/vinceliuice/WhiteSur-icon-theme.git
synced 2024-11-22 05:40:09 +00:00
Fixed #211
This commit is contained in:
parent
a820c84a32
commit
b992cf3633
3 changed files with 238 additions and 42 deletions
88
install.sh
88
install.sh
|
@ -47,57 +47,59 @@ install() {
|
||||||
|
|
||||||
local THEME_DIR=${dest}/${name}${theme}${color}
|
local THEME_DIR=${dest}/${name}${theme}${color}
|
||||||
|
|
||||||
[[ -d ${THEME_DIR} ]] && rm -rf ${THEME_DIR}
|
[[ -d "${THEME_DIR}" ]] && rm -rf "${THEME_DIR}"
|
||||||
|
|
||||||
echo "Installing '${THEME_DIR}'..."
|
echo "Installing '${THEME_DIR}'..."
|
||||||
|
|
||||||
mkdir -p ${THEME_DIR}
|
mkdir -p "${THEME_DIR}"
|
||||||
cp -r "${SRC_DIR}"/{COPYING,AUTHORS} ${THEME_DIR}
|
cp -r "${SRC_DIR}"/{COPYING,AUTHORS} "${THEME_DIR}"
|
||||||
cp -r "${SRC_DIR}"/src/index.theme ${THEME_DIR}
|
cp -r "${SRC_DIR}"/src/index.theme "${THEME_DIR}"
|
||||||
|
|
||||||
#cd ${THEME_DIR}
|
#cd "${THEME_DIR}"
|
||||||
sed -i "s/${name}/${name}${theme}${color}/g" ${THEME_DIR}/index.theme
|
sed -i "s/${name}/${name}${theme}${color}/g" "${THEME_DIR}"/index.theme
|
||||||
|
|
||||||
if [[ ${color} == '' ]]; then
|
if [[ ${color} == '' ]]; then
|
||||||
mkdir -p ${THEME_DIR}/status
|
mkdir -p "${THEME_DIR}"/status
|
||||||
cp -r "${SRC_DIR}"/src/{actions,animations,apps,categories,devices,emblems,mimes,places,preferences} ${THEME_DIR}
|
cp -r "${SRC_DIR}"/src/{actions,animations,apps,categories,devices,emblems,mimes,places,preferences} "${THEME_DIR}"
|
||||||
cp -r "${SRC_DIR}"/src/status/{16,22,24,32,symbolic} ${THEME_DIR}/status
|
cp -r "${SRC_DIR}"/src/status/{16,22,24,32,symbolic} "${THEME_DIR}"/status
|
||||||
|
|
||||||
|
rm -rf "${THEME_DIR}"/places/scalable/user-trash{'','-full'}-dark.svg
|
||||||
|
|
||||||
if [[ ${black:-} == 'true' ]]; then
|
if [[ ${black:-} == 'true' ]]; then
|
||||||
sed -i "s/#ffffff/#363636/g" "${THEME_DIR}"/status/{16,22,24}/*
|
sed -i "s/#ffffff/#363636/g" "${THEME_DIR}"/status/{16,22,24}/*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ${bold:-} == 'true' ]]; then
|
if [[ ${bold:-} == 'true' ]]; then
|
||||||
cp -r "${SRC_DIR}"/bold/* ${THEME_DIR}
|
cp -r "${SRC_DIR}"/bold/* "${THEME_DIR}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $DESKTOP_SESSION == '/usr/share/xsessions/budgie-desktop' ]]; then
|
if [[ $DESKTOP_SESSION == '/usr/share/xsessions/budgie-desktop' ]]; then
|
||||||
cp -r "${SRC_DIR}"/src/status/symbolic-budgie/*.svg ${THEME_DIR}/status/symbolic
|
cp -r "${SRC_DIR}"/src/status/symbolic-budgie/*.svg "${THEME_DIR}"/status/symbolic
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ${alternative:-} == 'true' ]]; then
|
if [[ ${alternative:-} == 'true' ]]; then
|
||||||
cp -r "${SRC_DIR}"/alternative/* ${THEME_DIR}
|
cp -r "${SRC_DIR}"/alternative/* "${THEME_DIR}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ${theme} != '' ]]; then
|
if [[ ${theme} != '' ]]; then
|
||||||
cp -r "${SRC_DIR}"/colors/color${theme}/*.svg ${THEME_DIR}/places/scalable
|
cp -r "${SRC_DIR}"/colors/color${theme}/*.svg "${THEME_DIR}"/places/scalable
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cp -r "${SRC_DIR}"/links/{actions,apps,categories,devices,emblems,mimes,places,status,preferences} ${THEME_DIR}
|
cp -r "${SRC_DIR}"/links/{actions,apps,categories,devices,emblems,mimes,places,status,preferences} "${THEME_DIR}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ${color} == '-light' ]]; then
|
if [[ ${color} == '-light' ]]; then
|
||||||
mkdir -p ${THEME_DIR}/status
|
mkdir -p "${THEME_DIR}"/status
|
||||||
cp -r "${SRC_DIR}"/src/status/{16,22,24} ${THEME_DIR}/status
|
cp -r "${SRC_DIR}"/src/status/{16,22,24} "${THEME_DIR}"/status
|
||||||
|
|
||||||
if [[ ${bold:-} == 'true' ]]; then
|
if [[ ${bold:-} == 'true' ]]; then
|
||||||
cp -r "${SRC_DIR}"/bold/status/{16,22,24} ${THEME_DIR}/status
|
cp -r "${SRC_DIR}"/bold/status/{16,22,24} "${THEME_DIR}"/status
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Change icon color for light theme
|
# Change icon color for light theme
|
||||||
sed -i "s/#ffffff/#363636/g" "${THEME_DIR}"/status/{16,22,24}/*
|
sed -i "s/#ffffff/#363636/g" "${THEME_DIR}"/status/{16,22,24}/*
|
||||||
|
|
||||||
cp -r "${SRC_DIR}"/links/status/{16,22,24} ${THEME_DIR}/status
|
cp -r "${SRC_DIR}"/links/status/{16,22,24} "${THEME_DIR}"/status
|
||||||
|
|
||||||
cd ${dest}
|
cd ${dest}
|
||||||
ln -s ../${name}${theme}/actions ${name}${theme}-light/actions
|
ln -s ../${name}${theme}/actions ${name}${theme}-light/actions
|
||||||
|
@ -114,27 +116,30 @@ install() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ${color} == '-dark' ]]; then
|
if [[ ${color} == '-dark' ]]; then
|
||||||
mkdir -p ${THEME_DIR}/{apps,categories,emblems,devices,mimes,places,status}
|
mkdir -p "${THEME_DIR}"/{apps,categories,emblems,devices,mimes,places,status}
|
||||||
|
|
||||||
cp -r "${SRC_DIR}"/src/actions ${THEME_DIR}
|
cp -r "${SRC_DIR}"/src/actions "${THEME_DIR}"
|
||||||
cp -r "${SRC_DIR}"/src/apps/symbolic ${THEME_DIR}/apps
|
cp -r "${SRC_DIR}"/src/apps/symbolic "${THEME_DIR}"/apps
|
||||||
cp -r "${SRC_DIR}"/src/categories/symbolic ${THEME_DIR}/categories
|
cp -r "${SRC_DIR}"/src/categories/symbolic "${THEME_DIR}"/categories
|
||||||
cp -r "${SRC_DIR}"/src/emblems/symbolic ${THEME_DIR}/emblems
|
cp -r "${SRC_DIR}"/src/emblems/symbolic "${THEME_DIR}"/emblems
|
||||||
cp -r "${SRC_DIR}"/src/mimes/symbolic ${THEME_DIR}/mimes
|
cp -r "${SRC_DIR}"/src/mimes/symbolic "${THEME_DIR}"/mimes
|
||||||
cp -r "${SRC_DIR}"/src/devices/{16,22,24,symbolic} ${THEME_DIR}/devices
|
cp -r "${SRC_DIR}"/src/devices/{16,22,24,symbolic} "${THEME_DIR}"/devices
|
||||||
cp -r "${SRC_DIR}"/src/places/{16,22,24,symbolic} ${THEME_DIR}/places
|
cp -r "${SRC_DIR}"/src/places/{16,22,24,scalable,symbolic} "${THEME_DIR}"/places
|
||||||
cp -r "${SRC_DIR}"/src/status/symbolic ${THEME_DIR}/status
|
cp -r "${SRC_DIR}"/src/status/symbolic "${THEME_DIR}"/status
|
||||||
|
|
||||||
|
mv -f "${THEME_DIR}"/places/scalable/user-trash-dark.svg "${THEME_DIR}"/places/scalable/user-trash.svg
|
||||||
|
mv -f "${THEME_DIR}"/places/scalable/user-trash-full-dark.svg "${THEME_DIR}"/places/scalable/user-trash-full.svg
|
||||||
|
|
||||||
if [[ ${bold:-} == 'true' ]]; then
|
if [[ ${bold:-} == 'true' ]]; then
|
||||||
cp -r "${SRC_DIR}"/bold/* ${THEME_DIR}
|
cp -r "${SRC_DIR}"/bold/* "${THEME_DIR}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ${alternative:-} == 'true' ]]; then
|
if [[ ${alternative:-} == 'true' ]]; then
|
||||||
cp -r "${SRC_DIR}"/alternative/apps/symbolic/*.svg ${THEME_DIR}/apps/symbolic
|
cp -r "${SRC_DIR}"/alternative/apps/symbolic/*.svg "${THEME_DIR}"/apps/symbolic
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $DESKTOP_SESSION == '/usr/share/xsessions/budgie-desktop' ]]; then
|
if [[ $DESKTOP_SESSION == '/usr/share/xsessions/budgie-desktop' ]]; then
|
||||||
cp -r "${SRC_DIR}"/src/status/symbolic-budgie/*.svg ${THEME_DIR}/status/symbolic
|
cp -r "${SRC_DIR}"/src/status/symbolic-budgie/*.svg "${THEME_DIR}"/status/symbolic
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Change icon color for dark theme
|
# Change icon color for dark theme
|
||||||
|
@ -142,13 +147,13 @@ install() {
|
||||||
sed -i "s/#363636/#dedede/g" "${THEME_DIR}"/actions/32/*
|
sed -i "s/#363636/#dedede/g" "${THEME_DIR}"/actions/32/*
|
||||||
sed -i "s/#363636/#dedede/g" "${THEME_DIR}"/{actions,apps,categories,emblems,devices,mimes,places,status}/symbolic/*
|
sed -i "s/#363636/#dedede/g" "${THEME_DIR}"/{actions,apps,categories,emblems,devices,mimes,places,status}/symbolic/*
|
||||||
|
|
||||||
cp -r "${SRC_DIR}"/links/actions/{16,22,24,32,symbolic} ${THEME_DIR}/actions
|
cp -r "${SRC_DIR}"/links/actions/{16,22,24,32,symbolic} "${THEME_DIR}"/actions
|
||||||
cp -r "${SRC_DIR}"/links/devices/{16,22,24,symbolic} ${THEME_DIR}/devices
|
cp -r "${SRC_DIR}"/links/devices/{16,22,24,symbolic} "${THEME_DIR}"/devices
|
||||||
cp -r "${SRC_DIR}"/links/places/{16,22,24,symbolic} ${THEME_DIR}/places
|
cp -r "${SRC_DIR}"/links/places/{16,22,24,scalable,symbolic} "${THEME_DIR}"/places
|
||||||
cp -r "${SRC_DIR}"/links/status/symbolic ${THEME_DIR}/status
|
cp -r "${SRC_DIR}"/links/status/symbolic "${THEME_DIR}"/status
|
||||||
cp -r "${SRC_DIR}"/links/apps/symbolic ${THEME_DIR}/apps
|
cp -r "${SRC_DIR}"/links/apps/symbolic "${THEME_DIR}"/apps
|
||||||
cp -r "${SRC_DIR}"/links/categories/symbolic ${THEME_DIR}/categories
|
cp -r "${SRC_DIR}"/links/categories/symbolic "${THEME_DIR}"/categories
|
||||||
cp -r "${SRC_DIR}"/links/mimes/symbolic ${THEME_DIR}/mimes
|
cp -r "${SRC_DIR}"/links/mimes/symbolic "${THEME_DIR}"/mimes
|
||||||
|
|
||||||
cd ${dest}
|
cd ${dest}
|
||||||
ln -s ../${name}${theme}/animations ${name}${theme}-dark/animations
|
ln -s ../${name}${theme}/animations ${name}${theme}-dark/animations
|
||||||
|
@ -161,7 +166,6 @@ install() {
|
||||||
ln -s ../../${name}${theme}/mimes/scalable ${name}${theme}-dark/mimes/scalable
|
ln -s ../../${name}${theme}/mimes/scalable ${name}${theme}-dark/mimes/scalable
|
||||||
ln -s ../../${name}${theme}/apps/scalable ${name}${theme}-dark/apps/scalable
|
ln -s ../../${name}${theme}/apps/scalable ${name}${theme}-dark/apps/scalable
|
||||||
ln -s ../../${name}${theme}/devices/scalable ${name}${theme}-dark/devices/scalable
|
ln -s ../../${name}${theme}/devices/scalable ${name}${theme}-dark/devices/scalable
|
||||||
ln -s ../../${name}${theme}/places/scalable ${name}${theme}-dark/places/scalable
|
|
||||||
ln -s ../${name}${theme}/preferences ${name}${theme}-dark/preferences
|
ln -s ../${name}${theme}/preferences ${name}${theme}-dark/preferences
|
||||||
ln -s ../../${name}${theme}/status/16 ${name}${theme}-dark/status/16
|
ln -s ../../${name}${theme}/status/16 ${name}${theme}-dark/status/16
|
||||||
ln -s ../../${name}${theme}/status/22 ${name}${theme}-dark/status/22
|
ln -s ../../${name}${theme}/status/22 ${name}${theme}-dark/status/22
|
||||||
|
@ -170,7 +174,7 @@ install() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
(
|
(
|
||||||
cd ${THEME_DIR}
|
cd "${THEME_DIR}"
|
||||||
ln -sf actions actions@2x
|
ln -sf actions actions@2x
|
||||||
ln -sf animations animations@2x
|
ln -sf animations animations@2x
|
||||||
ln -sf apps apps@2x
|
ln -sf apps apps@2x
|
||||||
|
@ -183,7 +187,7 @@ install() {
|
||||||
ln -sf status status@2x
|
ln -sf status status@2x
|
||||||
)
|
)
|
||||||
|
|
||||||
gtk-update-icon-cache ${THEME_DIR}
|
gtk-update-icon-cache "${THEME_DIR}"
|
||||||
}
|
}
|
||||||
|
|
||||||
uninstall() {
|
uninstall() {
|
||||||
|
@ -194,9 +198,9 @@ uninstall() {
|
||||||
|
|
||||||
local THEME_DIR=${dest}/${name}${theme}${color}
|
local THEME_DIR=${dest}/${name}${theme}${color}
|
||||||
|
|
||||||
[[ -d ${THEME_DIR} ]] && rm -rf ${THEME_DIR}
|
[[ -d "${THEME_DIR}" ]] && rm -rf "${THEME_DIR}"
|
||||||
|
|
||||||
echo "Uninstalling '${THEME_DIR}'..."
|
echo "Uninstalling '"${THEME_DIR}"'..."
|
||||||
}
|
}
|
||||||
|
|
||||||
while [[ "$#" -gt 0 ]]; do
|
while [[ "$#" -gt 0 ]]; do
|
||||||
|
|
31
src/places/scalable/user-trash-dark.svg
Normal file
31
src/places/scalable/user-trash-dark.svg
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
<svg width="64" height="64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||||
|
<defs>
|
||||||
|
<clipPath id="q"/>
|
||||||
|
<filter id="r" x="-.2402" y="-.031935" width="1.4804" height="1.0639" color-interpolation-filters="sRGB">
|
||||||
|
<feGaussianBlur stdDeviation=".506"/>
|
||||||
|
</filter>
|
||||||
|
<linearGradient id="n" x1="170.46" x2="289.66" y1="713.63" y2="713.63" gradientTransform="translate(-57.076 -241.47) scale(.38718)" gradientUnits="userSpaceOnUse">
|
||||||
|
<stop stop-color="#3e3e3e" offset="0"/>
|
||||||
|
<stop stop-color="#525252" offset=".18157"/>
|
||||||
|
<stop stop-color="#454545" offset=".48185"/>
|
||||||
|
<stop stop-color="#454545" offset=".744"/>
|
||||||
|
<stop stop-color="#737373" offset="1"/>
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient id="m" x1="170.46" x2="289.66" y1="704.73" y2="704.73" gradientTransform="translate(-57.076 -241.47) scale(.38718)" gradientUnits="userSpaceOnUse">
|
||||||
|
<stop stop-color="#6b6b6b" offset="0"/>
|
||||||
|
<stop stop-color="#404040" offset=".254"/>
|
||||||
|
<stop stop-color="#434343" offset=".43343"/>
|
||||||
|
<stop stop-color="#595959" offset=".744"/>
|
||||||
|
<stop stop-color="#3d3d3d" offset="1"/>
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient id="linearGradient35" x1="53.432" x2="47.832" y1="42.43" y2="41.736" gradientUnits="userSpaceOnUse">
|
||||||
|
<stop stop-color="#ffffff" stop-opacity=".15" offset="0"/>
|
||||||
|
<stop stop-color="#ffffff" stop-opacity="0" offset="1"/>
|
||||||
|
</linearGradient>
|
||||||
|
</defs>
|
||||||
|
<path d="m32.001 3c-12.744 0-23.076 2.583-23.076 5.77l0.04 0.33c0.688 3.032 10.737 5.438 23.036 5.438 12.3 0 22.352-2.407 23.036-5.439l0.04-0.33c0-3.186-10.332-5.769-23.077-5.769z" fill="url(#m)" opacity=".542"/>
|
||||||
|
<path d="m8.924 8.768 5.525 44.978c0 4.16 7.869 7.533 17.575 7.533 9.707 0 17.576-3.372 17.576-7.533l5.476-44.978c-1e-3 3.186-10.332 5.769-23.076 5.769s-23.075-2.583-23.076-5.769z" fill="url(#n)" opacity=".915"/>
|
||||||
|
<path transform="translate(-52.098 -356.18) scale(1.4634)" d="m44.938 285.23c3.496-11.623-4.516-41.02-4.159-37.78z" clip-path="url(#q)" fill="#9d9da9" fill-rule="evenodd" filter="url(#r)" opacity=".064"/>
|
||||||
|
<path d="m8.924 8.768 5.525 44.978c0 4.16 7.869 7.533 17.575 7.533 9.707 0 17.576-3.372 17.576-7.533l5.476-44.978c-1e-3 3.186-10.332 5.769-23.076 5.769s-23.075-2.583-23.076-5.769z" fill="url(#linearGradient35)"/>
|
||||||
|
<image x="10.285" y="50.301" width="42" height="11" image-rendering="optimizeQuality" preserveAspectRatio="none" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAALCAYAAAAJMx/IAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAA GXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAP1JREFUOMvVlVsPwiAMhU+BLUZ9 Mv7/3+iru1BfijkSGJhpjCQNbBnN19PLRFXxDytU3ovtv4pC6Kw1UAHgbNcMWHMHXwCUTCjdUjQY bIKJ2UW2T0EngRyBLq3UewAjwSZbDTrtcSesZJCeQGOrRhPQQLBCcAvZbO/XTlippNkTqJAAsaXo 3SCOAA7mJIHMACb7xtvZUSA96nEfMCAoU3NP1wPAzfbRzNPzQHXsSNlYUVUKKrpC40QS4sWPdMzR AOAK4EKBLeRwsvOSp6sAWRo9SiU11bIibwx8B+AE4GyqgmqVm6u1crh0fxNEdvyZAtWWFNKLbLxx g/QG9VwPk/Ns/g7qjewAAAAASUVORK5CYII= "/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 2.8 KiB |
161
src/places/scalable/user-trash-full-dark.svg
Normal file
161
src/places/scalable/user-trash-full-dark.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 33 KiB |
Loading…
Reference in a new issue