This commit is contained in:
vinceliuice 2021-04-20 11:11:33 +08:00
parent 366af537f0
commit 7f2ae635d1
8 changed files with 25 additions and 13 deletions

View file

@ -29,6 +29,16 @@ else
GNOME_VERSION="none"
fi
if command -v nautilus &> /dev/null; then
if (( $(nautilus --version | cut -d ' ' -f 3 | cut -d . -f 1) >= 40 )); then
NAUTILUS_VERSION="new"
else
NAUTILUS_VERSION="old"
fi
else
NAUTILUS_VERSION="none"
fi
# Program options
SASSC_OPT="-M -t expanded"

View file

@ -499,10 +499,10 @@ customize_theme() {
cp -rf "${THEME_SRC_DIR}/sass/_theme-options"{".scss","-temp.scss"}
# Change common apps style for a specific GNOME Shell version
if [[ ${GNOME_VERSION} == "new" ]]; then
sed ${SED_OPT} "/\$gnome_version/s/old/new/" "${THEME_SRC_DIR}/sass/_theme-options-temp.scss"
elif [[ ${GNOME_VERSION} == "none" ]]; then
prompt -w "There's no GNOME Shell installed, using style for the older GNOME Shell instead..."
if [[ ${NAUTILUS_VERSION} == "new" ]]; then
sed ${SED_OPT} "/\$nautilus_version/s/old/new/" "${THEME_SRC_DIR}/sass/_theme-options-temp.scss"
elif [[ ${NAUTILUS_VERSION} == "none" ]]; then
prompt -w "There's no Nautilus installed, using style for the older gtk theme instead..."
fi
# Change gnome-shell panel transparency

View file

@ -2,17 +2,14 @@
// THEME OPTIONS
//
// Gnome shell version
$gnome_version: 'old'; // 3.38/old || 40.0/new
// Force nautilus styles to exclusively use colors instead of linear-gradients
$nautilus_use_colors: false;
// Nautilus version
$nautilus_version: 'old'; // < 3.38/old || 40.0/new
// Nautilus sidebar sizes (when nautilus_use_colors is false)
$sidebar_size: 200px;
// Nautilus style
$nautilus_style: stable;
$nautilus_style: 'stable';
// Gnome-shell panel opacity
$panel_opacity: 0.15;

View file

@ -49,7 +49,6 @@ $app_grid_fg_color: #fff;
border-radius: $bd_radius * 4;
border: 0 solid rgba(white, 0.15);
padding: 12px;
background-color: rgba(black, 0.9);
& .folder-name-container {
padding: 24px 36px 0;

View file

@ -27,6 +27,8 @@ $app_icon_padding: 24px;
// expanded folder
.app-folder-dialog {
background-color: rgba(#333, 0.9);
& .page-indicators {
.page-indicator {
padding: 15px 12px;

View file

@ -13,6 +13,10 @@ $app_icon_size: 96px;
page-padding-right: $base_padding * 2;
}
.app-folder-dialog {
background-color: rgba(black, 0.9);
}
// App Grid pagination indicators
.page-indicator {
padding: $base_padding $base_padding * 2 0;

View file

@ -109,7 +109,7 @@ $nautilus_sidebar_image: image($dark_sidebar_bg);
}
@if $nautilus_style == 'stable' or $nautilus_style == 'default' {
@if $gnome_version == 'new' {
@if $nautilus_version == 'new' {
$nautilus_header_image: linear-gradient(90deg, transparent $nautilus_sidebar_size,
$nautilus_borders_color $nautilus_sidebar_size,
$nautilus_borders_color ($nautilus_sidebar_size + 1px),

View file

@ -69,7 +69,7 @@ $nautilus_sidebar_image: image($dark_sidebar_bg);
}
@if $nautilus_style == 'stable' or $nautilus_style == 'default' {
@if $gnome_version == 'new' {
@if $nautilus_version == 'new' {
$nautilus_header_image: linear-gradient(90deg, transparent $nautilus_sidebar_size,
$nautilus_borders_color $nautilus_sidebar_size,
$nautilus_borders_color ($nautilus_sidebar_size + 1px),