This commit is contained in:
Vince 2021-04-21 18:40:03 +08:00
parent ffab45f5d7
commit df3c3790be
5 changed files with 34 additions and 15 deletions

View File

@ -35,6 +35,7 @@ usage() {
helpify "-i, --icon" "[$(IFS='|'; echo "${ICON_VARIANTS[*]}")]" "Set 'Activities' icon" "Default is 'standard'"
helpify "-N, --nautilus-style" "[$(IFS='|'; echo "${NAUTILUS_STYLE_VARIANTS[*]}")]" "Set Nautilus style" "Default is BigSur-like style"
helpify "-R, --round" "" "Set maximized window to rounded" "Default is square"
helpify "--normal, --normalshowapps" "" "Set gnome-shell show apps button style to normal" "Default is bigsur"
helpify "--dialog, --interactive" "" "Run this installer interactively, with dialogs" ""
helpify "-r, --remove, -u, --uninstall" "" "Remove all installed ${THEME_NAME} themes" ""
helpify "-h, --help" "" "Show this help" ""
@ -62,6 +63,8 @@ while [[ $# -gt 0 ]]; do
uninstall='true'; shift ;;
--dialog|--interactive)
interactive='true'; shift ;;
--normal|--normalshowapps)
showapps_normal="true"; shift ;;
-R|--round)
max_round="true"; shift ;;
-h|--help)

View File

@ -119,6 +119,7 @@ snap="false"
gdm="false"
dash_to_dock="false"
max_round="false"
showapps_normal="false"
# Misc
msg="Run '${0} --help' to explore more customization features!"

View File

@ -531,6 +531,12 @@ customize_theme() {
sed ${SED_OPT} "/\$panel_opacity/s/0.15/0.${panel_opacity}/" "${THEME_SRC_DIR}/sass/_theme-options-temp.scss"
fi
# Change gnome-shell show apps button style
if [[ "${showapps_normal}" == 'true' ]]; then
prompt -w "Changing gnome-shell show apps button style ..."
sed ${SED_OPT} "/\$showapps_button/s/bigsur/normal/" "${THEME_SRC_DIR}/sass/_theme-options-temp.scss"
fi
# Change Nautilus sidarbar size
if [[ "${sidebar_size}" != 'default' ]]; then
prompt -w "Changing Nautilus sidebar size ..."

View File

@ -14,5 +14,8 @@ $nautilus_style: 'stable';
// Gnome-shell panel opacity
$panel_opacity: 0.15;
// Gnome-shell show apps button style
$showapps_button: 'bigsur';
// maximized window radius
$max_window_style: 'square';

View File

@ -24,20 +24,26 @@ $dash_placeholder_size: 32px;
-x-offset: 8px;
}
%show_apps_bigsur {
.show-apps-icon {
color: transparent;
background-image: url("assets/view-app-grid.svg");
background-size: contain;
}
.overview-icon { color: transparent; }
&:hover,
&:active,
&:checked,
&:focus {
.show-apps-icon { color: transparent; }
}
}
// Show apps button
.show-apps .show-apps-icon {
color: transparent;
background-image: url("assets/view-app-grid.svg");
background-size: contain;
}
.show-apps .overview-icon {
color: transparent;
}
.show-apps:hover .show-apps-icon,
.show-apps:active .show-apps-icon,
.show-apps:checked .show-apps-icon,
.show-apps:focus .show-apps-icon {
color: transparent;
.show-apps {
@if $showapps_button == "bigsur" {
@extend %show_apps_bigsur;
}
}