mirror of
https://github.com/vinceliuice/WhiteSur-gtk-theme.git
synced 2026-06-25 22:12:34 +00:00
Added compromize fix for NVIDIA
This commit is contained in:
17
install.sh
17
install.sh
@@ -199,6 +199,8 @@ install() {
|
||||
cp -r ${SRC_DIR}/other/plank/theme${color}/*.theme ${THEME_DIR}/plank
|
||||
}
|
||||
|
||||
nautilus_use_colors='false'
|
||||
|
||||
while [[ $# -gt 0 ]]; do
|
||||
case "${1}" in
|
||||
-d|--dest)
|
||||
@@ -497,6 +499,10 @@ while [[ $# -gt 0 ]]; do
|
||||
usage
|
||||
exit 0
|
||||
;;
|
||||
--nautilus-use-colors)
|
||||
nautilus_use_colors='true'
|
||||
break
|
||||
;;
|
||||
*)
|
||||
prompt -e "ERROR: Unrecognized installation option '$1'."
|
||||
prompt -i "Try '$0 --help' for more information."
|
||||
@@ -557,6 +563,11 @@ customize_theme() {
|
||||
if [[ "${size:-}" == 'true' && "${sidebar_size:-}" != 'default' ]]; then
|
||||
change_size
|
||||
fi
|
||||
|
||||
# Force nautilus to use colors instead of images
|
||||
if [[ "${nautilus_use_colors}" == 'true' ]]; then
|
||||
force_nautilus_use_colors
|
||||
fi
|
||||
}
|
||||
|
||||
# Backup and install files related to GDM theme
|
||||
@@ -797,6 +808,12 @@ change_transparency() {
|
||||
fi
|
||||
}
|
||||
|
||||
force_nautilus_use_colors() {
|
||||
cd ${SRC_DIR}/sass
|
||||
sed -i.bak "/\$nautilus_use_colors/s/false/true/" _variables.scss
|
||||
prompt -w "Forcing nautilus to use colors instead of images ..."
|
||||
}
|
||||
|
||||
restore_files() {
|
||||
if [[ -f ${SRC_DIR}/sass/gtk/_applications.scss.bak ]]; then
|
||||
local restore_file='true'
|
||||
|
||||
Reference in New Issue
Block a user