Fixed #194
108
assets.sh
|
@ -400,7 +400,109 @@ make_assets() {
|
||||||
cp -r "${SRC_DIR}/assets/metacity-1/assets${window}" "${THEME_DIR}/metacity-1/assets"
|
cp -r "${SRC_DIR}/assets/metacity-1/assets${window}" "${THEME_DIR}/metacity-1/assets"
|
||||||
cp -r "${SRC_DIR}/assets/metacity-1/thumbnail${ELSE_DARK:-}.png" "${THEME_DIR}/metacity-1/thumbnail.png"
|
cp -r "${SRC_DIR}/assets/metacity-1/thumbnail${ELSE_DARK:-}.png" "${THEME_DIR}/metacity-1/thumbnail.png"
|
||||||
|
|
||||||
cp -r "${SRC_DIR}/assets/xfwm4/assets${ELSE_LIGHT:-}${scheme}${window}/"*.png "${THEME_DIR}/xfwm4"
|
cp -r "${SRC_DIR}/assets/xfwm4/svg/assets${ELSE_LIGHT:-}${window}/"*.svg "${THEME_DIR}/xfwm4"
|
||||||
cp -r "${SRC_DIR}/assets/xfwm4/assets${ELSE_LIGHT:-}${scheme}${window}-hdpi/"*.png "${THEME_DIR}-hdpi/xfwm4"
|
cp -r "${SRC_DIR}/assets/xfwm4/svg/assets${ELSE_LIGHT:-}${window}-hdpi/"*.svg "${THEME_DIR}-hdpi/xfwm4"
|
||||||
cp -r "${SRC_DIR}/assets/xfwm4/assets${ELSE_LIGHT:-}${scheme}${window}-xhdpi/"*.png "${THEME_DIR}-xhdpi/xfwm4"
|
cp -r "${SRC_DIR}/assets/xfwm4/svg/assets${ELSE_LIGHT:-}${window}-xhdpi/"*.svg "${THEME_DIR}-xhdpi/xfwm4"
|
||||||
|
cp -r "${SRC_DIR}/assets/xfwm4/xpm/assets/"*.xpm "${THEME_DIR}/xfwm4"
|
||||||
|
cp -r "${SRC_DIR}/assets/xfwm4/xpm/assets-hdpi/"*.xpm "${THEME_DIR}-hdpi/xfwm4"
|
||||||
|
cp -r "${SRC_DIR}/assets/xfwm4/xpm/assets-xhdpi/"*.xpm "${THEME_DIR}-xhdpi/xfwm4"
|
||||||
|
|
||||||
|
if [[ "$normal" == "true" ]] ; then
|
||||||
|
mv -f "${THEME_DIR}/xfwm4/button-active-Normal.xpm" "${THEME_DIR}/xfwm4/button-active.xpm"
|
||||||
|
mv -f "${THEME_DIR}-hdpi/xfwm4/button-active-Normal.xpm" "${THEME_DIR}-hdpi/xfwm4/button-active.xpm"
|
||||||
|
mv -f "${THEME_DIR}-xhdpi/xfwm4/button-active-Normal.xpm" "${THEME_DIR}-xhdpi/xfwm4/button-active.xpm"
|
||||||
|
mv -f "${THEME_DIR}/xfwm4/button-inactive-Normal.xpm" "${THEME_DIR}/xfwm4/button-inactive.xpm"
|
||||||
|
mv -f "${THEME_DIR}-hdpi/xfwm4/button-inactive-Normal.xpm" "${THEME_DIR}-hdpi/xfwm4/button-inactive.xpm"
|
||||||
|
mv -f "${THEME_DIR}-xhdpi/xfwm4/button-inactive-Normal.xpm" "${THEME_DIR}-xhdpi/xfwm4/button-inactive.xpm"
|
||||||
|
fi
|
||||||
|
|
||||||
|
case "$scheme" in
|
||||||
|
'')
|
||||||
|
button_close="#fd5f51"
|
||||||
|
button_max="#38c76a"
|
||||||
|
button_min="#fdbe04"
|
||||||
|
;;
|
||||||
|
-Nord)
|
||||||
|
button_close="#bf616a"
|
||||||
|
button_max="#a3be8c"
|
||||||
|
button_min="#ebcb8b"
|
||||||
|
;;
|
||||||
|
-Gruvbox)
|
||||||
|
button_close="#cc241d"
|
||||||
|
button_max="#98971a"
|
||||||
|
button_min="#d79921"
|
||||||
|
;;
|
||||||
|
-Dracula)
|
||||||
|
if [[ "$color" == '-Light' ]]; then
|
||||||
|
button_close="#ed5d5d"
|
||||||
|
button_max="#43db68"
|
||||||
|
button_min="#e3d93b"
|
||||||
|
else
|
||||||
|
button_close="#f44d4d"
|
||||||
|
button_max="#4be772"
|
||||||
|
button_min="#e8f467"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
-Catppuccin)
|
||||||
|
if [[ "$color" == '-Light' ]]; then
|
||||||
|
button_close="#e64553"
|
||||||
|
button_max="#40a02b"
|
||||||
|
button_min="#df8e1d"
|
||||||
|
else
|
||||||
|
button_close="#ea999c"
|
||||||
|
button_max="#a6d189"
|
||||||
|
button_min="#e5c890"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
-Everforest)
|
||||||
|
if [[ "$color" == '-Light' ]]; then
|
||||||
|
button_close="#e67e80"
|
||||||
|
button_max="#93ac6c"
|
||||||
|
button_min="#d6b77a"
|
||||||
|
else
|
||||||
|
button_close="#ff9c9e"
|
||||||
|
button_max="#b6cf8f"
|
||||||
|
button_min="#eacb8e"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
sed -i "s/#fd5f51/${button_close}/g" "${THEME_DIR}/xfwm4/close-active.svg"
|
||||||
|
sed -i "s/#fd5f51/${button_close}/g" "${THEME_DIR}/xfwm4/close-prelight.svg"
|
||||||
|
sed -i "s/#fd5f51/${button_close}/g" "${THEME_DIR}/xfwm4/close-pressed.svg"
|
||||||
|
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}/xfwm4/maximize-active.svg"
|
||||||
|
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}/xfwm4/maximize-prelight.svg"
|
||||||
|
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}/xfwm4/maximize-pressed.svg"
|
||||||
|
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}/xfwm4/maximize-toggled-active.svg"
|
||||||
|
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}/xfwm4/maximize-toggled-prelight.svg"
|
||||||
|
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}/xfwm4/maximize-toggled-pressed.svg"
|
||||||
|
sed -i "s/#fdbe04/${button_min}/g" "${THEME_DIR}/xfwm4/hide-active.svg"
|
||||||
|
sed -i "s/#fdbe04/${button_min}/g" "${THEME_DIR}/xfwm4/hide-prelight.svg"
|
||||||
|
sed -i "s/#fdbe04/${button_min}/g" "${THEME_DIR}/xfwm4/hide-pressed.svg"
|
||||||
|
|
||||||
|
sed -i "s/#fd5f51/${button_close}/g" "${THEME_DIR}-hdpi/xfwm4/close-active.svg"
|
||||||
|
sed -i "s/#fd5f51/${button_close}/g" "${THEME_DIR}-hdpi/xfwm4/close-prelight.svg"
|
||||||
|
sed -i "s/#fd5f51/${button_close}/g" "${THEME_DIR}-hdpi/xfwm4/close-pressed.svg"
|
||||||
|
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}-hdpi/xfwm4/maximize-active.svg"
|
||||||
|
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}-hdpi/xfwm4/maximize-prelight.svg"
|
||||||
|
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}-hdpi/xfwm4/maximize-pressed.svg"
|
||||||
|
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}-hdpi/xfwm4/maximize-toggled-active.svg"
|
||||||
|
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}-hdpi/xfwm4/maximize-toggled-prelight.svg"
|
||||||
|
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}-hdpi/xfwm4/maximize-toggled-pressed.svg"
|
||||||
|
sed -i "s/#fdbe04/${button_min}/g" "${THEME_DIR}-hdpi/xfwm4/hide-active.svg"
|
||||||
|
sed -i "s/#fdbe04/${button_min}/g" "${THEME_DIR}-hdpi/xfwm4/hide-prelight.svg"
|
||||||
|
sed -i "s/#fdbe04/${button_min}/g" "${THEME_DIR}-hdpi/xfwm4/hide-pressed.svg"
|
||||||
|
|
||||||
|
sed -i "s/#fd5f51/${button_close}/g" "${THEME_DIR}-xhdpi/xfwm4/close-active.svg"
|
||||||
|
sed -i "s/#fd5f51/${button_close}/g" "${THEME_DIR}-xhdpi/xfwm4/close-prelight.svg"
|
||||||
|
sed -i "s/#fd5f51/${button_close}/g" "${THEME_DIR}-xhdpi/xfwm4/close-pressed.svg"
|
||||||
|
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}-xhdpi/xfwm4/maximize-active.svg"
|
||||||
|
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}-xhdpi/xfwm4/maximize-prelight.svg"
|
||||||
|
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}-xhdpi/xfwm4/maximize-pressed.svg"
|
||||||
|
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}-xhdpi/xfwm4/maximize-toggled-active.svg"
|
||||||
|
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}-xhdpi/xfwm4/maximize-toggled-prelight.svg"
|
||||||
|
sed -i "s/#38c76a/${button_max}/g" "${THEME_DIR}-xhdpi/xfwm4/maximize-toggled-pressed.svg"
|
||||||
|
sed -i "s/#fdbe04/${button_min}/g" "${THEME_DIR}-xhdpi/xfwm4/hide-active.svg"
|
||||||
|
sed -i "s/#fdbe04/${button_min}/g" "${THEME_DIR}-xhdpi/xfwm4/hide-prelight.svg"
|
||||||
|
sed -i "s/#fdbe04/${button_min}/g" "${THEME_DIR}-xhdpi/xfwm4/hide-pressed.svg"
|
||||||
}
|
}
|
||||||
|
|
|
@ -103,7 +103,7 @@ install() {
|
||||||
|
|
||||||
local THEME_DIR="${1}/${2}${3}${4}${5}${6}"
|
local THEME_DIR="${1}/${2}${3}${4}${5}${6}"
|
||||||
|
|
||||||
[[ -d "${THEME_DIR}" ]] && rm -rf "${THEME_DIR}"
|
[[ -d "${THEME_DIR}" ]] && rm -rf "${THEME_DIR}"{'','-hdpi','-xhdpi'}
|
||||||
|
|
||||||
echo "Installing '${THEME_DIR}'..."
|
echo "Installing '${THEME_DIR}'..."
|
||||||
|
|
||||||
|
@ -156,12 +156,6 @@ install() {
|
||||||
cp -r "${SRC_DIR}/main/xfwm4/themerc" "${THEME_DIR}-xhdpi/xfwm4/themerc"
|
cp -r "${SRC_DIR}/main/xfwm4/themerc" "${THEME_DIR}-xhdpi/xfwm4/themerc"
|
||||||
sed -i "s/button_offset=6/button_offset=12/" "${THEME_DIR}-xhdpi/xfwm4/themerc"
|
sed -i "s/button_offset=6/button_offset=12/" "${THEME_DIR}-xhdpi/xfwm4/themerc"
|
||||||
|
|
||||||
if [[ "$color" == '' ]]; then
|
|
||||||
sed -i "s/active_text_color_2/active_color_2/" "${THEME_DIR}/xfwm4/themerc"
|
|
||||||
sed -i "s/active_text_color_2/active_color_2/" "${THEME_DIR}-hdpi/xfwm4/themerc"
|
|
||||||
sed -i "s/active_text_color_2/active_color_2/" "${THEME_DIR}-xhdpi/xfwm4/themerc"
|
|
||||||
fi
|
|
||||||
|
|
||||||
mkdir -p "${THEME_DIR}/plank"
|
mkdir -p "${THEME_DIR}/plank"
|
||||||
if [[ "$color" == '-Light' ]]; then
|
if [[ "$color" == '-Light' ]]; then
|
||||||
cp -r "${SRC_DIR}/main/plank/theme-Light${scheme}/"* "${THEME_DIR}/plank"
|
cp -r "${SRC_DIR}/main/plank/theme-Light${scheme}/"* "${THEME_DIR}/plank"
|
||||||
|
|
Before Width: | Height: | Size: 143 B |
Before Width: | Height: | Size: 143 B |
Before Width: | Height: | Size: 190 B |
Before Width: | Height: | Size: 190 B |
Before Width: | Height: | Size: 191 B |
Before Width: | Height: | Size: 191 B |
Before Width: | Height: | Size: 523 B |
Before Width: | Height: | Size: 441 B |
Before Width: | Height: | Size: 562 B |
Before Width: | Height: | Size: 607 B |
Before Width: | Height: | Size: 470 B |
Before Width: | Height: | Size: 384 B |
Before Width: | Height: | Size: 452 B |
Before Width: | Height: | Size: 499 B |
Before Width: | Height: | Size: 143 B |
Before Width: | Height: | Size: 143 B |
Before Width: | Height: | Size: 535 B |
Before Width: | Height: | Size: 468 B |
Before Width: | Height: | Size: 567 B |
Before Width: | Height: | Size: 624 B |
Before Width: | Height: | Size: 638 B |
Before Width: | Height: | Size: 567 B |
Before Width: | Height: | Size: 685 B |
Before Width: | Height: | Size: 736 B |
Before Width: | Height: | Size: 258 B |
Before Width: | Height: | Size: 230 B |
Before Width: | Height: | Size: 503 B |
Before Width: | Height: | Size: 574 B |
Before Width: | Height: | Size: 144 B |
Before Width: | Height: | Size: 144 B |
Before Width: | Height: | Size: 279 B |
Before Width: | Height: | Size: 266 B |
Before Width: | Height: | Size: 520 B |
Before Width: | Height: | Size: 593 B |
Before Width: | Height: | Size: 284 B |
Before Width: | Height: | Size: 275 B |
Before Width: | Height: | Size: 534 B |
Before Width: | Height: | Size: 606 B |
Before Width: | Height: | Size: 542 B |
Before Width: | Height: | Size: 424 B |
Before Width: | Height: | Size: 794 B |
Before Width: | Height: | Size: 870 B |
Before Width: | Height: | Size: 587 B |
Before Width: | Height: | Size: 461 B |
Before Width: | Height: | Size: 832 B |
Before Width: | Height: | Size: 912 B |
Before Width: | Height: | Size: 164 B |
Before Width: | Height: | Size: 157 B |
Before Width: | Height: | Size: 164 B |
Before Width: | Height: | Size: 157 B |
Before Width: | Height: | Size: 164 B |
Before Width: | Height: | Size: 157 B |
Before Width: | Height: | Size: 164 B |
Before Width: | Height: | Size: 157 B |
Before Width: | Height: | Size: 164 B |
Before Width: | Height: | Size: 157 B |
Before Width: | Height: | Size: 255 B |
Before Width: | Height: | Size: 235 B |
Before Width: | Height: | Size: 254 B |
Before Width: | Height: | Size: 233 B |
Before Width: | Height: | Size: 146 B |
Before Width: | Height: | Size: 146 B |
Before Width: | Height: | Size: 171 B |
Before Width: | Height: | Size: 171 B |
Before Width: | Height: | Size: 173 B |
Before Width: | Height: | Size: 173 B |
Before Width: | Height: | Size: 589 B |
Before Width: | Height: | Size: 480 B |
Before Width: | Height: | Size: 627 B |
Before Width: | Height: | Size: 650 B |
Before Width: | Height: | Size: 544 B |
Before Width: | Height: | Size: 422 B |
Before Width: | Height: | Size: 496 B |
Before Width: | Height: | Size: 522 B |
Before Width: | Height: | Size: 146 B |
Before Width: | Height: | Size: 146 B |
Before Width: | Height: | Size: 576 B |
Before Width: | Height: | Size: 473 B |
Before Width: | Height: | Size: 613 B |
Before Width: | Height: | Size: 629 B |
Before Width: | Height: | Size: 677 B |
Before Width: | Height: | Size: 562 B |
Before Width: | Height: | Size: 717 B |
Before Width: | Height: | Size: 738 B |
Before Width: | Height: | Size: 214 B |
Before Width: | Height: | Size: 201 B |
Before Width: | Height: | Size: 520 B |
Before Width: | Height: | Size: 568 B |
Before Width: | Height: | Size: 146 B |
Before Width: | Height: | Size: 146 B |
Before Width: | Height: | Size: 321 B |
Before Width: | Height: | Size: 293 B |
Before Width: | Height: | Size: 602 B |
Before Width: | Height: | Size: 645 B |
Before Width: | Height: | Size: 346 B |
Before Width: | Height: | Size: 300 B |
Before Width: | Height: | Size: 624 B |
Before Width: | Height: | Size: 661 B |