Compare commits

...

No commits in common. "main" and "2023-06-30" have entirely different histories.

986 changed files with 1566 additions and 7410 deletions

View File

@ -1,10 +1,16 @@
<h1 align="center"> WhiteSur GTK Theme </h1> <h1 align="center"> WhiteSur GTK Theme </h1>
<p align="center"> <img src="imagenes/macbook.png"/> </p> <p align="center"> <img src="https://github.com/vinceliuice/WhiteSur-gtk-theme/blob/pictures/pictures/macbook.png"/> </p>
<br> <br>
<p align="center"> <b> A macOS BigSur-like theme for your GTK apps </b> </p> <p align="center"> <b> A macOS BigSur-like theme for your GTK apps </b> </p>
<br> <br>
## Donate
If you like my project, you can buy me a coffee:
<span class="paypal"><a href="https://www.paypal.me/vinceliuice" title="Donate to this project using Paypal"><img src="https://www.paypalobjects.com/webstatic/mktg/Logo/pp-logo-100px.png" alt="PayPal donate button" /></a></span>
# Installation is easy! # Installation is easy!
<details> <summary> Required dependencies <b>(click to open)</b> </summary> <details> <summary> Required dependencies <b>(click to open)</b> </summary>
@ -36,7 +42,7 @@ Don't worry, WhiteSur installer already provides all of those dependencies.
### Installing from source ### Installing from source
1. Run `git clone https://gitea.soloconlinux.org.es/luisgulo/WhiteSur-gtk-theme.git --depth=1` 1. Run `git clone https://github.com/vinceliuice/WhiteSur-gtk-theme.git --depth=1`
2. Run `./install.sh` to install the default WhiteSur GTK theme pack. 2. Run `./install.sh` to install the default WhiteSur GTK theme pack.
@ -171,7 +177,7 @@ sudo flatpak override --filesystem=xdg-config/gtk-4.0
``` ```
### <p align="center"> <b> Change theme color and accent </b> </p> ### <p align="center"> <b> Change theme color and accent </b> </p>
<p align="center"> <img src="imagenes/colors-themes.png"/> </p> <p align="center"> <img src="https://github.com/vinceliuice/WhiteSur-gtk-theme/blob/pictures/pictures/colors-themes.png"/> </p>
#### Install theme color #### Install theme color
Parameter: `--color` `-c` (repeatable) Parameter: `--color` `-c` (repeatable)
@ -195,7 +201,7 @@ Example:
``` ```
### <p align="center"> <b> Change Nautilus style </b> </p> ### <p align="center"> <b> Change Nautilus style </b> </p>
<p align="center"> <img src="imagenes/nautilus.png"/> </p> <p align="center"> <img src="https://github.com/vinceliuice/WhiteSur-gtk-theme/blob/pictures/pictures/nautilus.png"/> </p>
Parameter: `--nautilus-style` `-N` Parameter: `--nautilus-style` `-N`
@ -277,7 +283,7 @@ Usage: `./tweaks.sh [OPTIONS...]`
### <p align="center"> <b> Install and edit Firefox theme </b> </p> ### <p align="center"> <b> Install and edit Firefox theme </b> </p>
<p align="center"> <a href="src/other/firefox"> <p align="center"> <a href="src/other/firefox">
<img src="imagenes/firefox.svg"/> <img src="https://github.com/vinceliuice/WhiteSur-gtk-theme/blob/pictures/pictures/firefox.svg"/>
</a> </p> </a> </p>
#### [Install Firefox theme](src/other/firefox) #### [Install Firefox theme](src/other/firefox)
@ -297,7 +303,7 @@ Example:
``` ```
### <p align="center"> <b> Install and customize GDM theme </b> </p> ### <p align="center"> <b> Install and customize GDM theme </b> </p>
<p align="center"> <img src="imagenes/gdm.png"/> </p> <p align="center"> <img src="https://github.com/vinceliuice/WhiteSur-gtk-theme/blob/pictures/pictures/gdm.png"/> </p>
#### Install GDM theme #### Install GDM theme
Parameter: `--gdm` `-g` (requires to be run as root) Parameter: `--gdm` `-g` (requires to be run as root)
@ -342,22 +348,22 @@ like changing theme color (dark and light variant) and accent, GNOME Shell
## Other recommended stuff ## Other recommended stuff
### WhiteSur Icon Theme ### WhiteSur Icon Theme
<p align="center"> <a href="https://gitea.soloconlinux.org.es/luisgulo/WhiteSur-icon-theme"> <p align="center"> <a href="https://github.com/vinceliuice/WhiteSur-icon-theme">
<img src="imagenes/icon-theme.png"/> <img src="https://github.com/vinceliuice/WhiteSur-gtk-theme/blob/pictures/pictures/icon-theme.png"/>
</a> </p> </a> </p>
<br> <br>
<p align="center"> <a href="https://gitea.soloconlinux.org.es/luisgulo/WhiteSur-icon-theme"> <p align="center"> <a href="https://github.com/vinceliuice/WhiteSur-icon-theme">
<img src="imagenes/download-button.svg"/> <img src="https://github.com/vinceliuice/WhiteSur-gtk-theme/blob/pictures/pictures/download-button.svg"/>
</a> </p> </a> </p>
<br> <br>
### WhiteSur Wallpapers ### WhiteSur Wallpapers
<p align="center"> <a href="https://gitea.soloconlinux.org.es/luisgulo/WhiteSur-wallpapers"> <p align="center"> <a href="https://github.com/vinceliuice/WhiteSur-wallpapers">
<img class="image" src="imagenes/wallpaper.gif"/> <img class="image" src="https://github.com/vinceliuice/WhiteSur-gtk-theme/blob/pictures/pictures/wallpaper.gif"/>
</a> </p> </a> </p>
<br> <br>
<p align="center"> <a href="https://gitea.soloconlinux.org.es/luisgulo/WhiteSur-wallpapers"> <p align="center"> <a href="https://github.com/vinceliuice/WhiteSur-wallpapers">
<img src="imagenes/download-button.svg"/> <img src="https://github.com/vinceliuice/WhiteSur-gtk-theme/blob/pictures/pictures/download-button.svg"/>
</a> </p> </a> </p>
<br> <br>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

View File

@ -1,81 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="160"
height="48"
version="1.1"
viewBox="0 0 160 48"
id="svg12304"
sodipodi:docname="download-button.svg"
inkscape:version="1.2.1 (9c6d41e410, 2022-07-14)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs12308" />
<sodipodi:namedview
id="namedview12306"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
showgrid="false"
inkscape:zoom="4.9166667"
inkscape:cx="60.610169"
inkscape:cy="24.101695"
inkscape:window-width="1920"
inkscape:window-height="1012"
inkscape:window-x="0"
inkscape:window-y="32"
inkscape:window-maximized="1"
inkscape:current-layer="svg12304" />
<g
fill-opacity="0.97647"
stroke-linecap="square"
id="g12302"
transform="matrix(3.7795573,0,0,3.7795573,-1.7671869e-6,-2.6507804e-7)">
<rect
x="6.3578e-07"
y="9.5367e-08"
width="42.333"
height="12.7"
rx="6.3499999"
ry="6.3499999"
fill="#0071e3"
stroke-width="0.17259"
id="rect12282" />
<g
fill="#ffffff"
stroke-width="0.94837"
aria-label="Download"
id="g12300">
<path
d="m 8.8054,8.4074 h 1.1966 c 1.1853,0 1.9925,-0.77329 1.9925,-2.032 0,-1.1853 -0.7112,-1.8852 -1.9078,-1.8852 H 8.8054 Z M 9.27389,8.001 V 4.8966 h 0.75636 c 0.95391,0 1.4845,0.5588 1.4845,1.5522 0,0.98778 -0.52493,1.5522 -1.4563,1.5522 z"
id="path12284" />
<path
d="m 13.863,8.4638 c 0.80151,0 1.3434,-0.58138 1.3434,-1.4506 0,-0.84102 -0.50236,-1.3829 -1.2756,-1.3829 -0.80151,0 -1.3377,0.57573 -1.3377,1.445 0,0.84102 0.49671,1.3885 1.27,1.3885 z m 0.06209,-0.39511 c -0.52493,0 -0.88053,-0.42333 -0.88053,-1.0499 0,-0.60396 0.32173,-0.99342 0.82409,-0.99342 0.52493,0 0.88618,0.42898 0.88618,1.0499 0,0.59831 -0.32738,0.99342 -0.82973,0.99342 z"
id="path12286" />
<path
d="m 16.516,8.4074 h 0.44591 l 0.73942,-2.19 0.78458,2.19 h 0.4572 L 19.84058,5.6868 H 19.38902 L 18.71733,7.8938 17.97791,5.6981 H 17.4812 l -0.72813,2.2296 -0.6604,-2.2408 h -0.51364 z"
id="path12288" />
<path
d="m 22.245,8.4074 h 0.45156 V 6.6238 c 0,-0.60396 -0.40076,-0.99342 -1.0104,-0.99342 -0.31044,0 -0.62089,0.10724 -0.88053,0.29916 l -0.1016,-0.24271 h -0.31609 v 2.7206 h 0.45156 v -2.128 c 0.20884,-0.16369 0.4572,-0.254 0.72249,-0.254 0.44027,0 0.68298,0.24836 0.68298,0.68862 z"
id="path12290" />
<path
d="m 24.203,8.4413 c 0.14676,0 0.32173,-0.033867 0.42898,-0.090311 l -0.1016,-0.31609 c -0.06773,0.028222 -0.12982,0.045155 -0.19756,0.045155 -0.19191,0 -0.29351,-0.12982 -0.29351,-0.33867 v -3.5052 h -0.45156 v 3.5616 c 0,0.38947 0.24271,0.64347 0.61524,0.64347 z"
id="path12292" />
<path
d="m 26.252,8.4638 c 0.80151,0 1.3434,-0.58138 1.3434,-1.4506 0,-0.84102 -0.50236,-1.3829 -1.2756,-1.3829 -0.80151,0 -1.3377,0.57573 -1.3377,1.445 0,0.84102 0.49671,1.3885 1.27,1.3885 z m 0.06209,-0.39511 c -0.52493,0 -0.88053,-0.42333 -0.88053,-1.0499 0,-0.60396 0.32173,-0.99342 0.82409,-0.99342 0.52493,0 0.88618,0.42898 0.88618,1.0499 0,0.59831 -0.32738,0.99342 -0.82973,0.99342 z"
id="path12294" />
<path
d="m 30.04,8.4074 h 0.31609 V 6.6407 c 0,-0.64911 -0.38382,-1.0104 -1.095,-1.0104 -0.3556,0 -0.73942,0.095955 -1.0329,0.25964 l 0.11289,0.33302 c 0.28222,-0.12418 0.56444,-0.18627 0.82973,-0.18627 0.48542,0 0.73378,0.2032 0.73378,0.60396 v 0.18062 c -1.2192,0.011289 -1.7498,0.26529 -1.7498,0.84667 0,0.48542 0.36124,0.79587 0.92004,0.79587 0.34431,0 0.63782,-0.11289 0.85796,-0.31044 z M 29.90453,7.7978 c -0.16933,0.16933 -0.41769,0.27093 -0.69991,0.27093 -0.36124,0 -0.59831,-0.18062 -0.59831,-0.45156 0,-0.33867 0.38382,-0.47978 1.2982,-0.48542 z"
id="path12296" />
<path
d="m 32.286,8.4638 c 0.32738,0 0.60396,-0.11853 0.8128,-0.32173 l 0.11289,0.26529 h 0.31609 v -4.1712 h -0.45156 v 1.6369 C 32.88431,5.71502 32.63595,5.63035 32.34809,5.63035 c -0.76764,0 -1.2756,0.57573 -1.2756,1.4393 0,0.83538 0.48542,1.3942 1.2136,1.3942 z m 0.79022,-0.70556 c -0.1524,0.19756 -0.38382,0.31044 -0.6604,0.31044 -0.54187,0 -0.89182,-0.42333 -0.89182,-1.0499 0,-0.59831 0.31609,-0.99342 0.84102,-0.99342 0.3048,0 0.54751,0.12418 0.7112,0.33867 z"
id="path12298" />
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 4.6 KiB

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 516 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 576 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash #! /usr/bin/env bash
# WARNING: Please make this shell not working-directory dependent, for example # WARNING: Please make this shell not working-directory dependant, for example
# instead of using 'ls blabla', use 'ls "${REPO_DIR}/blabla"' # instead of using 'ls blabla', use 'ls "${REPO_DIR}/blabla"'
# #
# WARNING: Don't use "cd" in this shell, use it in a subshell instead, # WARNING: Don't use "cd" in this shell, use it in a subshell instead,
@ -20,8 +20,8 @@ colors=("${COLOR_VARIANTS[@]}")
opacities=("${OPACITY_VARIANTS[@]}") opacities=("${OPACITY_VARIANTS[@]}")
usage() { usage() {
# Please specify their default value manually, some of them come from _variables.scss # Please specify their default value manually, some of them are come from _variables.scss
# You also have to check and update them regularly # You also have to check and update them regurally
helpify_title helpify_title
helpify "-d, --dest" "DIR" "Set destination directory" "Default is '${THEME_DIR}'" helpify "-d, --dest" "DIR" "Set destination directory" "Default is '${THEME_DIR}'"
helpify "-n, --name" "NAME" "Set theme name" "Default is '${THEME_NAME}'" helpify "-n, --name" "NAME" "Set theme name" "Default is '${THEME_NAME}'"
@ -38,10 +38,9 @@ usage() {
helpify "-N, --nautilus-style" "[$(IFS='|'; echo "${NAUTILUS_STYLE_VARIANTS[*]}")]" "Set Nautilus style" "Default is BigSur-like style (stabled sidebar)" helpify "-N, --nautilus-style" "[$(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 "-HD, --highdefinition" "" "Set to High Definition size" "Default is laptop size" helpify "-HD, --highdefinition" "" "Set to High Definition size" "Default is laptop size"
helpify "--normal, --normalshowapps" "" "Set gnome-shell show apps button style to normal" "Default is BigSur" helpify "--normal, --normalshowapps" "" "Set gnome-shell show apps button style to normal" "Default is bigsur"
helpify "--default, --defaultactivities" "" "Set gnome-shell panel activities button style to system default" "Default is Apple icon"
helpify "--round, --roundedmaxwindow" "" "Set maximized window to rounded" "Default is square" helpify "--round, --roundedmaxwindow" "" "Set maximized window to rounded" "Default is square"
helpify "--right, --rightplacement" "" "Set Nautilus title button placement to right" "Default is left" helpify "--right, --rightplacement" "" "Set Nautilus titlebutton placement to right" "Default is left"
helpify "--black, --blackfont" "" "Set panel font color to black" "Default is white" helpify "--black, --blackfont" "" "Set panel font color to black" "Default is white"
helpify "--darker, --darkercolor" "" "Install darker '${THEME_NAME}' dark themes" "" helpify "--darker, --darkercolor" "" "Install darker '${THEME_NAME}' dark themes" ""
helpify "--nord, --nordcolor" "" "Install '${THEME_NAME}' Nord ColorScheme themes" "" helpify "--nord, --nordcolor" "" "Install '${THEME_NAME}' Nord ColorScheme themes" ""
@ -64,13 +63,13 @@ while [[ $# -gt 0 ]]; do
# We can only show dialogs when there's no error and no -r parameter # We can only show dialogs when there's no error and no -r parameter
# #
# * shift for parameters that have no value # * shift for parameters that have no value
# * shift 2 for parameter that has a value # * shift 2 for parameter that have a value
# #
# Please don't exit any error here if possible. Let it show all error warnings # Please don't exit any error here if possible. Let it show all error warnings
# at once # at once
case "${1}" in case "${1}" in
# Parameters that don't require a value # Parameters that don't require value
-r|--remove|-u|-uninstall) -r|--remove|-u|-uninstall)
uninstall='true'; shift ;; uninstall='true'; shift ;;
--silent-mode) --silent-mode)
@ -79,8 +78,6 @@ while [[ $# -gt 0 ]]; do
interactive='true'; shift ;; interactive='true'; shift ;;
--normal|--normalshowapps) --normal|--normalshowapps)
showapps_normal="true"; shift ;; showapps_normal="true"; shift ;;
--default|--defaultactivities)
default_activities="true"; shift ;;
--right|--rightplacement) --right|--rightplacement)
right_placement="true"; shift ;; right_placement="true"; shift ;;
--round|--roundedmaxwindow) --round|--roundedmaxwindow)
@ -97,7 +94,7 @@ while [[ $# -gt 0 ]]; do
monterey="true"; shift ;; monterey="true"; shift ;;
-l|--libadwaita) -l|--libadwaita)
libadwaita="true"; shift ;; libadwaita="true"; shift ;;
# Parameters that require a value, single use # Parameters that require value, single use
-b|--background) -b|--background)
check_param "${1}" "${1}" "${2}" "must" "must" "must" "false" && shift 2 || shift ;; check_param "${1}" "${1}" "${2}" "must" "must" "must" "false" && shift 2 || shift ;;
-d|--dest) -d|--dest)
@ -114,7 +111,7 @@ while [[ $# -gt 0 ]]; do
check_param "${1}" "${1}" "${2}" "optional" "optional" "optional" && shift 2 || shift ;; check_param "${1}" "${1}" "${2}" "optional" "optional" "optional" && shift 2 || shift ;;
-N|--nautilus-style) -N|--nautilus-style)
check_param "${1}" "${1}" "${2}" "optional" "optional" "optional" && shift 2 || shift ;; check_param "${1}" "${1}" "${2}" "optional" "optional" "optional" && shift 2 || shift ;;
# Parameters that require a value, multiple use # Parameters that require value, multiple use
-a|--alt) -a|--alt)
check_param "${1}" "${1}" "${2}" "not-at-all" "must" "must" && shift 2 || shift ;; check_param "${1}" "${1}" "${2}" "not-at-all" "must" "must" && shift 2 || shift ;;
-o|--opacity) -o|--opacity)
@ -139,15 +136,15 @@ if [[ "${uninstall}" == 'true' ]]; then
if [[ "${libadwaita}" == 'true' ]]; then if [[ "${libadwaita}" == 'true' ]]; then
if [[ "$UID" != '0' ]]; then if [[ "$UID" != '0' ]]; then
remove_libadwaita remove_libadwaita
prompt -s "Removed gtk-4.0 theme files in '${HOME}/.config/gtk-4.0/'!" prompt -s "Removed gtk-4.0 theme files in '${HOME}/.config/gtk-4.0/' !"; echo
else else
prompt -e "Do not run '--libadwaita' option with sudo!"; echo prompt -e "Do not run '--libadwaita' option with sudo!"; echo
fi fi
else else
prompt -i "Removing '${name}' gtk themes in '${dest}'... \n" prompt -i "Removing '${name}' gtk themes in '${dest}'... \n"
prompt -w "REMOVAL: Non-file-related parameters will be ignored. \n" prompt -w "REMOVAL: Non file-related parameters will be ignored. \n"
remove_themes; remove_libadwaita remove_themes; remove_libadwaita
prompt -s "Done! All '${name}' gtk themes have been removed." prompt -s "Done! All '${name}' gtk themes in has been removed."
fi fi
if [[ -f "${MISC_GR_FILE}.bak" ]]; then if [[ -f "${MISC_GR_FILE}.bak" ]]; then
@ -186,8 +183,12 @@ else
fi fi
fi fi
if (is_my_distro "solus") && (is_running "gnome-session"); then if (is_running "xfce4-session"); then
msg="XFCE: you may need to run 'xfce4-panel -r' after changing your theme to fix your panel opacity."
elif (is_my_distro "solus") && (is_running "gnome-session"); then
msg="GNOME: you may need to disable 'User Themes' extension to fix your dock." msg="GNOME: you may need to disable 'User Themes' extension to fix your dock."
# elif (is_running "gnome-session") && [[ "${GNOME_VERSION}" == "3-28" ]]; then
# msg="GNOME: you may need to disable 'User Themes' extension to fix your logout and authentication dialog."
fi fi
if [[ "${msg}" ]]; then if [[ "${msg}" ]]; then
@ -198,6 +199,10 @@ else
fi fi
echo; prompt -w "${final_msg}" echo; prompt -w "${final_msg}"
# if has_command notify-send && [[ "$UID" != '0' ]]; then
# notify-send "'${name}' theme has been installed. Enjoy!" "${notif_msg}" -i "dialog-information-symbolic"
# fi
fi fi
echo echo

View File

@ -19,7 +19,7 @@ install() {
compress() { compress() {
for color in "${C_VARIANTS[@]}"; do for color in "${C_VARIANTS[@]}"; do
for solid in "${S_VARIANTS[@]}"; do for solid in "${S_VARIANTS[@]}"; do
rm -rf ${RELEASE_DIR}/${THEME_NAME}${color}${solid}.tar.xz rm -rf ${RELEASE_DIR}/${THEME_NAME}${color}${solid}${RELEASE_VERSION}.tar.xz
done done
done done
@ -27,7 +27,7 @@ compress() {
for color in "${C_VARIANTS[@]}"; do for color in "${C_VARIANTS[@]}"; do
for solid in "${S_VARIANTS[@]}"; do for solid in "${S_VARIANTS[@]}"; do
tar -Jcf ${RELEASE_DIR}/${THEME_NAME}${color}${solid}.tar.xz ${THEME_NAME}${color}${solid} tar -Jcf ${RELEASE_DIR}/${THEME_NAME}${color}${solid}${RELEASE_VERSION}.tar.xz ${THEME_NAME}${color}${solid}
done done
done done
} }
@ -37,8 +37,8 @@ compress() {
#install && compress #install && compress
#prompt -s "Compress Gnome${RELEASE_VERSION} version finished!"; echo #prompt -s "Compress Gnome${RELEASE_VERSION} version finished!"; echo
GNOME_VERSION="46-0" GNOME_VERSION="44-0"
RELEASE_VERSION="-last" RELEASE_VERSION="-44-0"
install && compress install && compress
prompt -s "Compress Gnome${RELEASE_VERSION} version finished!"; echo prompt -s "Compress Gnome${RELEASE_VERSION} version finished!"; echo

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -26,9 +26,7 @@ MY_HOME=$(getent passwd "${MY_USERNAME}" | cut -d: -f6)
if command -v gnome-shell &> /dev/null; then if command -v gnome-shell &> /dev/null; then
SHELL_VERSION="$(gnome-shell --version | cut -d ' ' -f 3 | cut -d . -f -1)" SHELL_VERSION="$(gnome-shell --version | cut -d ' ' -f 3 | cut -d . -f -1)"
if [[ "${SHELL_VERSION:-}" -ge "46" ]]; then if [[ "${SHELL_VERSION:-}" -ge "44" ]]; then
GNOME_VERSION="46-0"
elif [[ "${SHELL_VERSION:-}" -ge "44" ]]; then
GNOME_VERSION="44-0" GNOME_VERSION="44-0"
elif [[ "${SHELL_VERSION:-}" -ge "42" ]]; then elif [[ "${SHELL_VERSION:-}" -ge "42" ]]; then
GNOME_VERSION="42-0" GNOME_VERSION="42-0"
@ -38,7 +36,7 @@ if command -v gnome-shell &> /dev/null; then
GNOME_VERSION="3-28" GNOME_VERSION="3-28"
fi fi
else else
GNOME_VERSION="46-0" GNOME_VERSION="none"
fi fi
#----------Program options-------------# #----------Program options-------------#
@ -318,11 +316,7 @@ signal_error() {
prompt -e "\n =========== SYSTEM INFO =========" prompt -e "\n =========== SYSTEM INFO ========="
prompt -e "DISTRO : $(IFS=';'; echo "${dist_ids[*]}")" prompt -e "DISTRO : $(IFS=';'; echo "${dist_ids[*]}")"
prompt -e "SUDO : $([[ -w "/root" ]] && echo "yes" || echo "no")" prompt -e "SUDO : $([[ -w "/root" ]] && echo "yes" || echo "no")"
if command -v gnome-shell &> /dev/null; then prompt -e "GNOME : ${GNOME_VERSION}"
prompt -e "DESKTOP : $(gnome-shell --version)"
else
prompt -e "DESKTOP : ${DESKTOP_SESSION}"
fi
prompt -e "REPO : ${repo_ver}\n" prompt -e "REPO : ${repo_ver}\n"
if [[ "$(grep -ril "Release" "${WHITESUR_TMP_DIR}/error_log.txt")" == "${WHITESUR_TMP_DIR}/error_log.txt" ]]; then if [[ "$(grep -ril "Release" "${WHITESUR_TMP_DIR}/error_log.txt")" == "${WHITESUR_TMP_DIR}/error_log.txt" ]]; then
@ -727,7 +721,7 @@ udo() {
full_sudo() { full_sudo() {
if [[ ! -w "/root" ]]; then if [[ ! -w "/root" ]]; then
prompt -e "ERROR: '${1}' needs a root privilege. Please run this '${0}' as root" prompt -e "ERROR: '${1}' needs a root priviledge. Please run this '${0}' as root"
has_any_error="true" has_any_error="true"
fi fi
} }

View File

@ -381,6 +381,10 @@ install_shelly() {
TARGET_DIR="${6}" TARGET_DIR="${6}"
fi fi
if [[ "${GNOME_VERSION}" == 'none' ]]; then
local GNOME_VERSION='44-0'
fi
mkdir -p "${TARGET_DIR}" mkdir -p "${TARGET_DIR}"
mkdir -p "${TARGET_DIR}/assets" mkdir -p "${TARGET_DIR}/assets"
cp -r "${THEME_SRC_DIR}/assets/gnome-shell/icons" "${TARGET_DIR}" cp -r "${THEME_SRC_DIR}/assets/gnome-shell/icons" "${TARGET_DIR}"
@ -526,11 +530,9 @@ config_gtk4() {
# Install gtk4.0 into config for libadwaita # Install gtk4.0 into config for libadwaita
mkdir -p "${TARGET_DIR}" mkdir -p "${TARGET_DIR}"
# backup_file "${TARGET_DIR}/gtk.css" "udo" rm -rf "${TARGET_DIR}/"{gtk.css,gtk-dark.css,assets,windows-assets}
rm -rf "${TARGET_DIR}/"{gtk.css,gtk-Light.css,gtk-Dark.css,assets,windows-assets} sassc ${SASSC_OPT} "${THEME_SRC_DIR}/main/gtk-4.0/gtk${color}.scss" "${TARGET_DIR}/gtk.css"
sassc ${SASSC_OPT} "${THEME_SRC_DIR}/main/gtk-4.0/gtk-Light.scss" "${TARGET_DIR}/gtk-Light.css" sassc ${SASSC_OPT} "${THEME_SRC_DIR}/main/gtk-4.0/gtk-Dark.scss" "${TARGET_DIR}/gtk-dark.css"
sassc ${SASSC_OPT} "${THEME_SRC_DIR}/main/gtk-4.0/gtk-Dark.scss" "${TARGET_DIR}/gtk-Dark.css"
ln -sf "${TARGET_DIR}/gtk-${colors}.css" "${TARGET_DIR}/gtk.css"
cp -r "${THEME_SRC_DIR}/assets/gtk/common-assets/assets" "${TARGET_DIR}" cp -r "${THEME_SRC_DIR}/assets/gtk/common-assets/assets" "${TARGET_DIR}"
cp -r "${THEME_SRC_DIR}/assets/gtk/common-assets/sidebar-assets/"*".png" "${TARGET_DIR}/assets" cp -r "${THEME_SRC_DIR}/assets/gtk/common-assets/sidebar-assets/"*".png" "${TARGET_DIR}/assets"
cp -r "${THEME_SRC_DIR}/assets/gtk/scalable" "${TARGET_DIR}/assets" cp -r "${THEME_SRC_DIR}/assets/gtk/scalable" "${TARGET_DIR}/assets"
@ -546,24 +548,13 @@ install_libadwaita() {
} }
remove_libadwaita() { remove_libadwaita() {
# restore_file "${TARGET_DIR}/gtk.css" rm -rf "${HOME}/.config/gtk-4.0/"{gtk.css,gtk-dark.css,assets,windows-assets}
rm -rf "${HOME}/.config/gtk-4.0/"{gtk.css,gtk-Light.css,gtk-Dark.css,assets,windows-assets}
} }
############################################################################### ###############################################################################
# THEMES # # THEMES #
############################################################################### ###############################################################################
fix_whiskermenu() {
if (command -v xfce4-popup-whiskermenu &> /dev/null) && $(sed -i "s|.*menu-opacity=.*|menu-opacity=95|" "$HOME/.config/xfce4/panel/whiskermenu"*".rc" &> /dev/null); then
sed -i "s|.*menu-opacity=.*|menu-opacity=95|" "$HOME/.config/xfce4/panel/whiskermenu"*".rc"
fi
if pgrep xfce4-session &> /dev/null && [ "$(id -u)" -ne 0 ]; then
xfce4-panel -r
fi
}
install_themes() { install_themes() {
# "install_theemy" and "install_shelly" require "gtk_base", so multithreading # "install_theemy" and "install_shelly" require "gtk_base", so multithreading
# isn't possible # isn't possible
@ -583,7 +574,7 @@ install_themes() {
done done
done done
stop_animation; fix_whiskermenu stop_animation
} }
remove_themes() { remove_themes() {
@ -735,7 +726,6 @@ config_firefox() {
echo "user_pref(\"browser.uidensity\", 0);" >> "${d}/prefs.js" echo "user_pref(\"browser.uidensity\", 0);" >> "${d}/prefs.js"
echo "user_pref(\"layers.acceleration.force-enabled\", true);" >> "${d}/prefs.js" echo "user_pref(\"layers.acceleration.force-enabled\", true);" >> "${d}/prefs.js"
echo "user_pref(\"mozilla.widget.use-argb-visuals\", true);" >> "${d}/prefs.js" echo "user_pref(\"mozilla.widget.use-argb-visuals\", true);" >> "${d}/prefs.js"
echo "user_pref(\"widget.gtk.rounded-bottom-corners.enabled\", true);" >> "${d}/prefs.js"
fi fi
done done
} }
@ -777,13 +767,14 @@ remove_firefox_theme() {
# DASH TO DOCK # # DASH TO DOCK #
############################################################################### ###############################################################################
fix_dash_to_dock() { install_dash_to_dock() {
if [[ -d "${DASH_TO_DOCK_DIR_HOME}" ]]; then if [[ -d "${DASH_TO_DOCK_DIR_HOME}" ]]; then
backup_file "${DASH_TO_DOCK_DIR_HOME}/stylesheet.css" "udo" backup_file "${DASH_TO_DOCK_DIR_HOME}" "udo"
elif [[ -d "${DASH_TO_DOCK_DIR_ROOT}" ]]; then rm -rf "${DASH_TO_DOCK_DIR_HOME}"
backup_file "${DASH_TO_DOCK_DIR_ROOT}/stylesheet.css" "sudo"
fi fi
udo cp -rf "${DASH_TO_DOCK_SRC_DIR}/dash-to-dock@micxgx.gmail.com" "${GNOME_SHELL_EXTENSION_DIR}"
if has_command dbus-launch; then if has_command dbus-launch; then
udo dbus-launch dconf write /org/gnome/shell/extensions/dash-to-dock/apply-custom-theme true udo dbus-launch dconf write /org/gnome/shell/extensions/dash-to-dock/apply-custom-theme true
fi fi
@ -954,12 +945,6 @@ customize_theme() {
sed $SED_OPT "/\$showapps_button/s/bigsur/normal/" "${THEME_SRC_DIR}/sass/_theme-options-temp.scss" sed $SED_OPT "/\$showapps_button/s/bigsur/normal/" "${THEME_SRC_DIR}/sass/_theme-options-temp.scss"
fi fi
# Change gnome-shell panel activities button style
if [[ "${default_activities}" == 'true' ]]; then
prompt -s "Changing gnome-shell panel activities button style ...\n"
sed $SED_OPT "/\$activities/s/apple/normal/" "${THEME_SRC_DIR}/sass/_theme-options-temp.scss"
fi
# Change panel font color # Change panel font color
if [[ "${monterey}" == 'true' ]]; then if [[ "${monterey}" == 'true' ]]; then
black_font="true" black_font="true"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 377 B

After

Width:  |  Height:  |  Size: 377 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 377 B

After

Width:  |  Height:  |  Size: 377 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 364 B

After

Width:  |  Height:  |  Size: 364 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 363 B

After

Width:  |  Height:  |  Size: 363 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 349 B

After

Width:  |  Height:  |  Size: 349 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 277 B

After

Width:  |  Height:  |  Size: 277 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 283 B

After

Width:  |  Height:  |  Size: 283 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 303 B

After

Width:  |  Height:  |  Size: 303 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 312 B

After

Width:  |  Height:  |  Size: 312 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 399 B

After

Width:  |  Height:  |  Size: 399 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 501 B

After

Width:  |  Height:  |  Size: 501 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 155 B

After

Width:  |  Height:  |  Size: 150 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 155 B

After

Width:  |  Height:  |  Size: 150 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 252 B

After

Width:  |  Height:  |  Size: 252 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 249 B

After

Width:  |  Height:  |  Size: 249 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 468 B

After

Width:  |  Height:  |  Size: 468 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 237 B

After

Width:  |  Height:  |  Size: 237 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 242 B

After

Width:  |  Height:  |  Size: 242 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 377 B

After

Width:  |  Height:  |  Size: 377 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 377 B

After

Width:  |  Height:  |  Size: 377 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 364 B

After

Width:  |  Height:  |  Size: 364 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 368 B

After

Width:  |  Height:  |  Size: 368 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 349 B

After

Width:  |  Height:  |  Size: 349 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 277 B

After

Width:  |  Height:  |  Size: 277 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 283 B

After

Width:  |  Height:  |  Size: 283 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 308 B

After

Width:  |  Height:  |  Size: 308 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 315 B

After

Width:  |  Height:  |  Size: 315 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 399 B

After

Width:  |  Height:  |  Size: 399 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 506 B

After

Width:  |  Height:  |  Size: 506 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 155 B

After

Width:  |  Height:  |  Size: 150 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 155 B

After

Width:  |  Height:  |  Size: 150 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 252 B

After

Width:  |  Height:  |  Size: 252 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 249 B

After

Width:  |  Height:  |  Size: 249 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 473 B

After

Width:  |  Height:  |  Size: 473 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 237 B

After

Width:  |  Height:  |  Size: 237 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 242 B

After

Width:  |  Height:  |  Size: 242 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 377 B

After

Width:  |  Height:  |  Size: 377 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 377 B

After

Width:  |  Height:  |  Size: 377 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 364 B

After

Width:  |  Height:  |  Size: 364 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 364 B

After

Width:  |  Height:  |  Size: 364 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 349 B

After

Width:  |  Height:  |  Size: 349 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 275 B

After

Width:  |  Height:  |  Size: 275 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 283 B

After

Width:  |  Height:  |  Size: 283 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 308 B

After

Width:  |  Height:  |  Size: 308 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 315 B

After

Width:  |  Height:  |  Size: 315 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 399 B

After

Width:  |  Height:  |  Size: 399 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 511 B

After

Width:  |  Height:  |  Size: 511 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 155 B

After

Width:  |  Height:  |  Size: 150 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 155 B

After

Width:  |  Height:  |  Size: 150 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 252 B

After

Width:  |  Height:  |  Size: 252 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 249 B

After

Width:  |  Height:  |  Size: 249 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 463 B

After

Width:  |  Height:  |  Size: 463 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 237 B

After

Width:  |  Height:  |  Size: 237 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 242 B

After

Width:  |  Height:  |  Size: 242 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 377 B

After

Width:  |  Height:  |  Size: 377 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 377 B

After

Width:  |  Height:  |  Size: 377 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 360 B

After

Width:  |  Height:  |  Size: 360 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 368 B

After

Width:  |  Height:  |  Size: 368 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 349 B

After

Width:  |  Height:  |  Size: 349 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 280 B

After

Width:  |  Height:  |  Size: 280 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 283 B

After

Width:  |  Height:  |  Size: 283 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 308 B

After

Width:  |  Height:  |  Size: 308 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 315 B

After

Width:  |  Height:  |  Size: 315 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 387 B

After

Width:  |  Height:  |  Size: 387 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 503 B

After

Width:  |  Height:  |  Size: 503 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 155 B

After

Width:  |  Height:  |  Size: 150 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 155 B

After

Width:  |  Height:  |  Size: 150 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 252 B

After

Width:  |  Height:  |  Size: 252 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 249 B

After

Width:  |  Height:  |  Size: 249 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 470 B

After

Width:  |  Height:  |  Size: 470 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 237 B

After

Width:  |  Height:  |  Size: 237 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 242 B

After

Width:  |  Height:  |  Size: 242 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 366 B

After

Width:  |  Height:  |  Size: 366 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 366 B

After

Width:  |  Height:  |  Size: 366 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 361 B

After

Width:  |  Height:  |  Size: 361 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 359 B

After

Width:  |  Height:  |  Size: 359 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 349 B

After

Width:  |  Height:  |  Size: 349 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 280 B

After

Width:  |  Height:  |  Size: 280 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 283 B

After

Width:  |  Height:  |  Size: 283 B

Some files were not shown because too many files have changed in this diff Show More