This commit is contained in:
Vince 2021-05-14 18:31:26 +08:00
parent 5f7a8e5b2a
commit b728d56735
3 changed files with 8 additions and 3 deletions

View file

@ -135,7 +135,7 @@ else
echo; install_themes; echo; prompt -s "Done!" echo; install_themes; echo; prompt -s "Done!"
rm -rf "${THEME_SRC_DIR}/sass/_gtk-base-temp.scss" # rm -rf "${THEME_SRC_DIR}/sass/_gtk-base-temp.scss"
if is_my_distro "arch" && has_command xfce4-session; then if is_my_distro "arch" && has_command xfce4-session; then
msg="XFCE: you may need to logout after changing your theme to fix your panel opacity." msg="XFCE: you may need to logout after changing your theme to fix your panel opacity."

View file

@ -499,6 +499,7 @@ remove_firefox_theme() {
############################################################################### ###############################################################################
install_dash_to_dock_theme() { install_dash_to_dock_theme() {
cp -rf "${THEME_SRC_DIR}/sass/_gtk-base"{".scss","-temp.scss"}
if [[ -d "${DASH_TO_DOCK_DIR_HOME}" ]]; then if [[ -d "${DASH_TO_DOCK_DIR_HOME}" ]]; then
backup_file "${DASH_TO_DOCK_DIR_HOME}/stylesheet.css" "userify" backup_file "${DASH_TO_DOCK_DIR_HOME}/stylesheet.css" "userify"
userify sassc ${SASSC_OPT} "${DASH_TO_DOCK_SRC_DIR}/stylesheet$(destify ${colors[0]}).scss" "${DASH_TO_DOCK_DIR_HOME}/stylesheet.css" userify sassc ${SASSC_OPT} "${DASH_TO_DOCK_SRC_DIR}/stylesheet$(destify ${colors[0]}).scss" "${DASH_TO_DOCK_DIR_HOME}/stylesheet.css"

View file

@ -100,8 +100,12 @@ while [[ $# -gt 0 ]]; do
has_any_error="true" has_any_error="true"
fi; shift ;; fi; shift ;;
-d|--dash-to-dock) -d|--dash-to-dock)
dash_to_dock="true" if [[ "${GNOME_VERSION}" == 'new' ]]; then
prompt -e "'${1}' ERROR: There's no need to install on >= Gnome 40.0!"
has_any_error="true"
else
dash_to_dock="true"
fi
if [[ ! -d "${DASH_TO_DOCK_DIR_HOME}" && ! -d "${DASH_TO_DOCK_DIR_ROOT}" ]]; then if [[ ! -d "${DASH_TO_DOCK_DIR_HOME}" && ! -d "${DASH_TO_DOCK_DIR_ROOT}" ]]; then
prompt -e "'${1}' ERROR: There's no Dash to Dock installed in your system" prompt -e "'${1}' ERROR: There's no Dash to Dock installed in your system"
has_any_error="true" has_any_error="true"