This commit is contained in:
Vince 2021-04-20 20:30:39 +08:00
commit 3401130195
9 changed files with 27 additions and 14 deletions

View File

@ -29,6 +29,16 @@ else
GNOME_VERSION="none" GNOME_VERSION="none"
fi 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 # Program options
SASSC_OPT="-M -t expanded" SASSC_OPT="-M -t expanded"

View File

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

View File

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

View File

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

View File

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

View File

@ -13,6 +13,10 @@ $app_icon_size: 96px;
page-padding-right: $base_padding * 2; page-padding-right: $base_padding * 2;
} }
.app-folder-dialog {
background-color: rgba(black, 0.9);
}
// App Grid pagination indicators // App Grid pagination indicators
.page-indicator { .page-indicator {
padding: $base_padding $base_padding * 2 0; 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 $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_header_image: linear-gradient(90deg, transparent $nautilus_sidebar_size,
$nautilus_borders_color $nautilus_sidebar_size, $nautilus_borders_color $nautilus_sidebar_size,
$nautilus_borders_color ($nautilus_sidebar_size + 1px), $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 $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_header_image: linear-gradient(90deg, transparent $nautilus_sidebar_size,
$nautilus_borders_color $nautilus_sidebar_size, $nautilus_borders_color $nautilus_sidebar_size,
$nautilus_borders_color ($nautilus_sidebar_size + 1px), $nautilus_borders_color ($nautilus_sidebar_size + 1px),

View File

@ -1378,7 +1378,8 @@ actionbar {
border-top: 1px solid $borders_color; border-top: 1px solid $borders_color;
background-color: darken($bg_color, 3%); background-color: darken($bg_color, 3%);
.background.csd revealer > & { .background.csd revealer > &,
.background.csd > box.vertical > & {
border-radius: 0 0 $wm_radius $wm_radius; border-radius: 0 0 $wm_radius $wm_radius;
} }
} }