This commit is contained in:
vinceliuice
2024-09-01 21:37:48 +08:00
parent 95d5606e0b
commit 9166992af5
4 changed files with 18 additions and 6 deletions

View File

@@ -437,10 +437,16 @@ parsimplify() {
echo "-i" ;;
--theme)
echo "-t" ;;
-height)
echo "-h" ;;
-panelopacity)
echo "-p" ;;
--panel-opacity)
echo "-p" ;;
--panel-size)
echo "-P" ;;
--nautilus)
echo "-N" ;;
--nautilus-style)
echo "-N" ;;
--background)
@@ -556,6 +562,12 @@ check_param() {
panel_size="${value}"; variant_found="true"; break
fi
done ;;
-h)
for i in {0..2}; do
if [[ "${value}" == "${PANEL_SIZE_VARIANTS[i]}" ]]; then
panel_size="${value}"; variant_found="true"; break
fi
done ;;
-a)
if [[ "${value}" == "all" ]]; then
for i in {0..2}; do

View File

@@ -954,7 +954,7 @@ customize_theme() {
# Change gnome-shell panel transparency
if [[ "${panel_opacity}" != 'default' ]]; then
prompt -s "Changing panel transparency ...\n"
prompt -s "Changing panel transparency to ${panel_opacity}% ...\n"
sed $SED_OPT "/\$panel_opacity/s/0.15/0.${panel_opacity}/" "${THEME_SRC_DIR}/sass/_theme-options-temp.scss"
fi