This commit is contained in:
vinceliuice
2024-10-15 19:03:33 +08:00
parent b453da1bec
commit 5d09b0610b
11 changed files with 6 additions and 22 deletions

View File

@@ -500,6 +500,8 @@ check_param() {
colors=() ;;
-t)
themes=() ;;
-s)
schemes=() ;;
esac
fi

View File

@@ -500,15 +500,7 @@ install_theemy() {
}
remove_packy() {
rm -rf "${dest}/${name}$(destify ${1})$(destify ${2})$(destify ${3})$(destify ${4})$(destify ${5})"
rm -rf "${dest}/${name}$(destify ${1})$(destify ${2})$(destify ${5})-hdpi"
rm -rf "${dest}/${name}$(destify ${1})$(destify ${2})$(destify ${5})-xhdpi"
}
remove_old_packy() {
rm -rf "${dest}/${name}${1}$(destify ${2})$(destify ${3})$(destify ${4})${5}"
rm -rf "${dest}/${name}${1}${5}-hdpi"
rm -rf "${dest}/${name}${1}${5}-xhdpi"
rm -rf "${dest}/${name}$(destify ${1})$(destify ${2})$(destify ${3})$(destify ${4})$(destify ${5})"{'','-hdpi','-xhdpi'}
}
###############################################################################
@@ -545,6 +537,8 @@ install_libadwaita() {
color="${colors[0]}"
opacity="${opacities[0]}"
echo -e "${color} ${opacity} ${alt} ${theme} ${scheme}"
gtk_base && config_gtk4 "${color}" "${opacity}" "${alt}" "${theme}" "${scheme}"
}
@@ -606,18 +600,6 @@ remove_themes() {
done
done
# for color in '-light' '-dark'; do
# for opacity in "${OPACITY_VARIANTS[@]}"; do
# for alt in "${ALT_VARIANTS[@]}"; do
# for theme in "${THEME_VARIANTS[@]}"; do
# for scheme in '' '-nord'; do
# remove_old_packy "${color}" "${opacity}" "${alt}" "${theme}" "${scheme}"
# done
# done
# done
# done
# done
wait ${process_ids[*]} &> /dev/null
}