Merge branch 'master' of https://github.com/vinceliuice/WhiteSur-gtk-theme
This commit is contained in:
commit
28455c1fd8
17
install.sh
17
install.sh
@ -199,6 +199,8 @@ install() {
|
|||||||
cp -r ${SRC_DIR}/other/plank/theme${color}/*.theme ${THEME_DIR}/plank
|
cp -r ${SRC_DIR}/other/plank/theme${color}/*.theme ${THEME_DIR}/plank
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nautilus_use_colors='false'
|
||||||
|
|
||||||
while [[ $# -gt 0 ]]; do
|
while [[ $# -gt 0 ]]; do
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
-d|--dest)
|
-d|--dest)
|
||||||
@ -497,6 +499,10 @@ while [[ $# -gt 0 ]]; do
|
|||||||
usage
|
usage
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
--nautilus-use-colors)
|
||||||
|
nautilus_use_colors='true'
|
||||||
|
break
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
prompt -e "ERROR: Unrecognized installation option '$1'."
|
prompt -e "ERROR: Unrecognized installation option '$1'."
|
||||||
prompt -i "Try '$0 --help' for more information."
|
prompt -i "Try '$0 --help' for more information."
|
||||||
@ -557,6 +563,11 @@ customize_theme() {
|
|||||||
if [[ "${size:-}" == 'true' && "${sidebar_size:-}" != 'default' ]]; then
|
if [[ "${size:-}" == 'true' && "${sidebar_size:-}" != 'default' ]]; then
|
||||||
change_size
|
change_size
|
||||||
fi
|
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
|
# Backup and install files related to GDM theme
|
||||||
@ -797,6 +808,12 @@ change_transparency() {
|
|||||||
fi
|
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() {
|
restore_files() {
|
||||||
if [[ -f ${SRC_DIR}/sass/gtk/_applications.scss.bak ]]; then
|
if [[ -f ${SRC_DIR}/sass/gtk/_applications.scss.bak ]]; then
|
||||||
local restore_file='true'
|
local restore_file='true'
|
||||||
|
@ -75,3 +75,6 @@ $shadow_6: 0 0 8px rgba(black, 0.2), 0 0 4px rgba(black, 0.3); // S
|
|||||||
$text_shadow: 0 -1px rgba(white, 0.04), -1px 0 rgba(black, 0.05),
|
$text_shadow: 0 -1px rgba(white, 0.04), -1px 0 rgba(black, 0.05),
|
||||||
1px 0 rgba(black, 0.05), 0 1px rgba(black, 0.3),
|
1px 0 rgba(black, 0.05), 0 1px rgba(black, 0.3),
|
||||||
0 2px rgba(black, 0.05); // text and icon shadow
|
0 2px rgba(black, 0.05); // text and icon shadow
|
||||||
|
|
||||||
|
// Force nautilus styles to exclusively use colors instead of linear-gradients
|
||||||
|
$nautilus_use_colors: false;
|
||||||
|
@ -87,8 +87,12 @@ filechooser,
|
|||||||
.nautilus-window {
|
.nautilus-window {
|
||||||
paned > separator { // Use paned separator to hide stack border-bottom-left-radius
|
paned > separator { // Use paned separator to hide stack border-bottom-left-radius
|
||||||
border: none;
|
border: none;
|
||||||
background-color: transparent;
|
@if $nautilus_use_colors {
|
||||||
background-image: image($base_color);
|
background-color: rgba($bg_color, 0.95);
|
||||||
|
} @else {
|
||||||
|
background-color: transparent;
|
||||||
|
background-image: image($base_color);
|
||||||
|
}
|
||||||
background-size: $wm_radius $wm_radius;
|
background-size: $wm_radius $wm_radius;
|
||||||
background-position: left bottom;
|
background-position: left bottom;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
@ -107,14 +111,27 @@ filechooser,
|
|||||||
.nautilus-window {
|
.nautilus-window {
|
||||||
&.background.csd {
|
&.background.csd {
|
||||||
border-radius: 0 0 $wm_radius $wm_radius;
|
border-radius: 0 0 $wm_radius $wm_radius;
|
||||||
background-color: transparent;
|
@if $nautilus_use_colors {
|
||||||
background-image: $nautilus_background_image;
|
background-color: rgba($bg_color, 0.95);
|
||||||
|
} @else {
|
||||||
|
background-color: transparent;
|
||||||
|
background-image: $nautilus_background_image;
|
||||||
|
}
|
||||||
|
|
||||||
> headerbar.titlebar {
|
> headerbar.titlebar {
|
||||||
border: none;
|
border: none;
|
||||||
box-shadow: inset 0 1px rgba(white, 0.1);
|
box-shadow: inset 0 1px rgba(white, 0.1);
|
||||||
|
<<<<<<< HEAD
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: $nautilus_header_image;
|
background-image: $nautilus_header_image;
|
||||||
|
=======
|
||||||
|
background: none;
|
||||||
|
@if $nautilus_use_colors {
|
||||||
|
background-color: $base_color;
|
||||||
|
} @else {
|
||||||
|
background-image: $nautilus_header_image;
|
||||||
|
}
|
||||||
|
>>>>>>> 7be96a064717d91fd07e989ba7e965dead4087cf
|
||||||
|
|
||||||
> .linked.raised > button:first-child { margin-left: $nautilus_sidebar_size - 80px; }
|
> .linked.raised > button:first-child { margin-left: $nautilus_sidebar_size - 80px; }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user