mirror of
https://github.com/vinceliuice/WhiteSur-gtk-theme.git
synced 2025-06-06 07:23:02 +00:00
Fixed #1176
This commit is contained in:
parent
1afceb0b31
commit
4ce80c209b
@ -91,6 +91,9 @@ OPTIONS:
|
|||||||
-l, --libadwaita
|
-l, --libadwaita
|
||||||
Install theme into gtk4.0 config for libadwaita. Default is dark version
|
Install theme into gtk4.0 config for libadwaita. Default is dark version
|
||||||
|
|
||||||
|
-f, --fixed
|
||||||
|
Install fixed accent color version. Default is adaptive version
|
||||||
|
|
||||||
-HD, --highdefinition
|
-HD, --highdefinition
|
||||||
Set to High Definition size. Default is laptop size
|
Set to High Definition size. Default is laptop size
|
||||||
|
|
||||||
|
12
install.sh
12
install.sh
@ -35,6 +35,7 @@ usage() {
|
|||||||
helpify "-m, --monterey" "" " Set to MacOS Monterey style" ""
|
helpify "-m, --monterey" "" " Set to MacOS Monterey style" ""
|
||||||
helpify "-N, --nautilus" "[$(IFS='|'; echo "${NAUTILUS_STYLE_VARIANTS[*]}")]" " Set Nautilus style" "Default is BigSur-like style (stabled sidebar)"
|
helpify "-N, --nautilus" "[$(IFS='|'; echo "${NAUTILUS_STYLE_VARIANTS[*]}")]" " Set Nautilus style" "Default is BigSur-like style (stabled sidebar)"
|
||||||
helpify "-l, --libadwaita" "" " Install theme into gtk4.0 config for libadwaita" "Default is dark version"
|
helpify "-l, --libadwaita" "" " Install theme into gtk4.0 config for libadwaita" "Default is dark version"
|
||||||
|
helpify "-f, --fixed" "" " Install fixed accent color version" "Default is adaptive version"
|
||||||
helpify "-HD, --highdefinition" "" " Set to High Definition size" "Default is laptop size"
|
helpify "-HD, --highdefinition" "" " Set to High Definition size" "Default is laptop size"
|
||||||
|
|
||||||
helpify "--shell, --gnomeshell" "" " Tweaks for gnome-shell" "Options:"
|
helpify "--shell, --gnomeshell" "" " Tweaks for gnome-shell" "Options:"
|
||||||
@ -129,6 +130,8 @@ while [[ $# -gt 0 ]]; do
|
|||||||
monterey="true"; shift ;;
|
monterey="true"; shift ;;
|
||||||
-l|--libadwaita)
|
-l|--libadwaita)
|
||||||
libadwaita="true"; shift ;;
|
libadwaita="true"; shift ;;
|
||||||
|
-f|--fixed)
|
||||||
|
accent_type="fixed"; shift ;;
|
||||||
-r|--remove|-u|-uninstall)
|
-r|--remove|-u|-uninstall)
|
||||||
uninstall='true'; shift ;;
|
uninstall='true'; shift ;;
|
||||||
--silent-mode)
|
--silent-mode)
|
||||||
@ -167,10 +170,11 @@ if [[ "${uninstall}" == 'true' ]]; then
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [[ "${interactive}" == 'true' ]]; then
|
if [[ "${interactive}" == 'true' ]]; then
|
||||||
show_panel_opacity_dialog; show_sidebar_size_dialog; show_nautilus_style_dialog
|
show_panel_opacity_dialog
|
||||||
echo; prompt -w "DIALOG: '--size' and '--panel' parameters are ignored if exist."; echo
|
# show_sidebar_size_dialog
|
||||||
else
|
show_nautilus_style_dialog
|
||||||
show_needed_dialogs
|
# else
|
||||||
|
# show_needed_dialogs
|
||||||
fi
|
fi
|
||||||
|
|
||||||
prompt -w "Removing the old '${name}' themes...\n"
|
prompt -w "Removing the old '${name}' themes...\n"
|
||||||
|
@ -895,6 +895,10 @@ gtk_base() {
|
|||||||
if [[ "${GNOME_VERSION}" -ge '47-0' && "${libadwaita}" == 'true' ]]; then
|
if [[ "${GNOME_VERSION}" -ge '47-0' && "${libadwaita}" == 'true' ]]; then
|
||||||
sed $SED_OPT "/\$gnome_version/s/old/new/" "${THEME_SRC_DIR}/sass/_gtk-base-temp.scss"
|
sed $SED_OPT "/\$gnome_version/s/old/new/" "${THEME_SRC_DIR}/sass/_gtk-base-temp.scss"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "${accent_type}" == 'fixed' ]]; then
|
||||||
|
sed $SED_OPT "/\$accent_type/s/default/fixed/" "${THEME_SRC_DIR}/sass/_gtk-base-temp.scss"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
shell_base() {
|
shell_base() {
|
||||||
|
@ -6,3 +6,6 @@ $scheme: 'standard';
|
|||||||
|
|
||||||
// Gnome version
|
// Gnome version
|
||||||
$gnome_version: 'old';
|
$gnome_version: 'old';
|
||||||
|
|
||||||
|
// Accent type
|
||||||
|
$accent_type: 'default';
|
||||||
|
@ -23,7 +23,7 @@ $cakeisalie: "This stylesheet is generated, DO NOT EDIT";
|
|||||||
* Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
|
* Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@if $gnome_version == 'new' {
|
@if $gnome_version == 'new' and $accent_type == 'default' {
|
||||||
$selected_bg_color: -st-accent-color;
|
$selected_bg_color: -st-accent-color;
|
||||||
$primary_color: -st-accent-color;
|
$primary_color: -st-accent-color;
|
||||||
}
|
}
|
||||||
|
@ -105,7 +105,7 @@ $dark_5: #000000;
|
|||||||
|
|
||||||
// The main accent color and the matching text value
|
// The main accent color and the matching text value
|
||||||
|
|
||||||
@if $gnome_version == 'old' {
|
@if $gnome_version == 'old' or $accent_type == 'fixed' {
|
||||||
@define-color accent_bg_color #{$primary_color};
|
@define-color accent_bg_color #{$primary_color};
|
||||||
@define-color accent_fg_color #{$light_fg_color};
|
@define-color accent_fg_color #{$light_fg_color};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user