update
This commit is contained in:
parent
0460d0aea0
commit
ceed403d40
2
.gitignore
vendored
2
.gitignore
vendored
@ -10,3 +10,5 @@ src/main/gnome-shell/gdm3*.css
|
|||||||
src/other/dash-to-dock/stylesheet.css
|
src/other/dash-to-dock/stylesheet.css
|
||||||
src/other/dash-to-dock/stylesheet-dark.css
|
src/other/dash-to-dock/stylesheet-dark.css
|
||||||
parse-sass.sh
|
parse-sass.sh
|
||||||
|
lib-release.sh
|
||||||
|
make-release.sh
|
||||||
|
@ -25,6 +25,11 @@ Don't worry, WhiteSur installer already provides all of those dependencies.
|
|||||||
</details>
|
</details>
|
||||||
|
|
||||||
## Quick install
|
## Quick install
|
||||||
|
|
||||||
|
### Use the stable package
|
||||||
|
You can choose the compressed file (compiled in the stable version) and unzip it to the theme folder `~/.themes` under the user folder.
|
||||||
|
|
||||||
|
### compile from source
|
||||||
You can run `./install.sh` to install the default WhiteSur GTK theme pack which includes
|
You can run `./install.sh` to install the default WhiteSur GTK theme pack which includes
|
||||||
GNOME Shell (Pantheon), Cinnamon, XFWM (XFCE), Metacity, and Plank themes.
|
GNOME Shell (Pantheon), Cinnamon, XFWM (XFCE), Metacity, and Plank themes.
|
||||||
|
|
||||||
|
@ -24,20 +24,19 @@ source "${REPO_DIR}/lib-core.sh"
|
|||||||
|
|
||||||
install_theme_deps() {
|
install_theme_deps() {
|
||||||
if [[ ! "$(which glib-compile-resources 2> /dev/null)" || ! "$(which sassc 2> /dev/null)" || \
|
if [[ ! "$(which glib-compile-resources 2> /dev/null)" || ! "$(which sassc 2> /dev/null)" || \
|
||||||
! "$(which convert 2> /dev/null)" || ! -r "/usr/share/gtk-engines/murrine.xml" || \
|
! -r "/usr/share/gtk-engines/murrine.xml" || ! "$(which xmllint 2> /dev/null)" ]]; then
|
||||||
! "$(which xmllint 2> /dev/null)" || ! "$(which dialog 2> /dev/null)" ]]; then
|
echo; prompt -w "'glib2.0', 'sassc', 'xmllint', 'libmurrine' are required for theme installation."
|
||||||
echo; prompt -w "'glib2.0', 'sassc', 'imagemagick', 'xmllint', 'libmurrine', and 'dialog' are required for this shell."
|
|
||||||
|
|
||||||
if has_command zypper; then
|
if has_command zypper; then
|
||||||
rootify zypper in -y sassc glib2-devel ImageMagick gtk2-engine-murrine libxml2-tools dialog
|
rootify zypper in -y sassc glib2-devel gtk2-engine-murrine libxml2-tools
|
||||||
elif has_command apt; then
|
elif has_command apt; then
|
||||||
rootify apt install -y sassc libglib2.0-dev-bin imagemagick gtk2-engines-murrine libxml2-utils dialog
|
rootify apt install -y sassc libglib2.0-dev-bin gtk2-engines-murrine libxml2-utils
|
||||||
elif has_command dnf; then
|
elif has_command dnf; then
|
||||||
rootify dnf install -y sassc glib2-devel ImageMagick gtk-murrine-engine libxml2 dialog
|
rootify dnf install -y sassc glib2-devel gtk-murrine-engine libxml2
|
||||||
elif has_command yum; then
|
elif has_command yum; then
|
||||||
rootify yum install -y sassc glib2-devel ImageMagick gtk-murrine-engine libxml2 dialog
|
rootify yum install -y sassc glib2-devel gtk-murrine-engine libxml2
|
||||||
elif has_command pacman; then
|
elif has_command pacman; then
|
||||||
rootify pacman -S --noconfirm --needed sassc glib2 imagemagick gtk-engine-murrine libxml2 dialog
|
rootify pacman -S --noconfirm --needed sassc glib2 gtk-engine-murrine libxml2
|
||||||
else
|
else
|
||||||
prompt -w "WARNING: We're sorry, your distro isn't officially supported yet."
|
prompt -w "WARNING: We're sorry, your distro isn't officially supported yet."
|
||||||
prompt -w "INSTRUCTION: Please make sure you have installed all of the required dependencies. We'll continue the installation in 15 seconds"
|
prompt -w "INSTRUCTION: Please make sure you have installed all of the required dependencies. We'll continue the installation in 15 seconds"
|
||||||
@ -47,6 +46,46 @@ install_theme_deps() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
install_beggy_deps() {
|
||||||
|
if [[ ! "$(which convert 2> /dev/null)" ]]; then
|
||||||
|
echo; prompt -w "'imagemagick' are required for this option."
|
||||||
|
|
||||||
|
if has_command zypper; then
|
||||||
|
rootify zypper in -y ImageMagick
|
||||||
|
elif has_command apt; then
|
||||||
|
rootify apt install -y sassc imagemagick
|
||||||
|
elif has_command dnf; then
|
||||||
|
rootify dnf install -y sassc ImageMagick
|
||||||
|
elif has_command yum; then
|
||||||
|
rootify yum install -y sassc ImageMagick
|
||||||
|
elif has_command pacman; then
|
||||||
|
rootify pacman -S --noconfirm --needed sassc imagemagick
|
||||||
|
else
|
||||||
|
prompt -w "INSTRUCTION: Please make sure you have installed all of the required dependencies!"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
install_dialog_deps() {
|
||||||
|
if [[ ! "$(which dialog 2> /dev/null)" ]]; then
|
||||||
|
echo; prompt -w "'dialog' are required for this option."
|
||||||
|
|
||||||
|
if has_command zypper; then
|
||||||
|
rootify zypper in -y dialog
|
||||||
|
elif has_command apt; then
|
||||||
|
rootify apt install -y dialog
|
||||||
|
elif has_command dnf; then
|
||||||
|
rootify dnf install -y dialog
|
||||||
|
elif has_command yum; then
|
||||||
|
rootify yum install -y dialog
|
||||||
|
elif has_command pacman; then
|
||||||
|
rootify pacman -S --noconfirm --needed dialog
|
||||||
|
else
|
||||||
|
prompt -w "INSTRUCTION: Please make sure you have installed all of the required dependencies!"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# THEME MODULES #
|
# THEME MODULES #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
@ -61,9 +100,9 @@ install_beggy() {
|
|||||||
blank)
|
blank)
|
||||||
cp -r "${THEME_SRC_DIR}/assets/gnome-shell/common-assets/background-blank.png" "${WHITESUR_TMP_DIR}/beggy.png" ;;
|
cp -r "${THEME_SRC_DIR}/assets/gnome-shell/common-assets/background-blank.png" "${WHITESUR_TMP_DIR}/beggy.png" ;;
|
||||||
default)
|
default)
|
||||||
convert "${THEME_SRC_DIR}/assets/gnome-shell/common-assets/background-default.png" ${CONVERT_OPT} "${WHITESUR_TMP_DIR}/beggy.png" ;;
|
install_beggy_deps && convert "${THEME_SRC_DIR}/assets/gnome-shell/common-assets/background-default.png" ${CONVERT_OPT} "${WHITESUR_TMP_DIR}/beggy.png" ;;
|
||||||
*)
|
*)
|
||||||
convert "${background}" ${CONVERT_OPT} "${WHITESUR_TMP_DIR}/beggy.png" ;;
|
install_beggy_deps && convert "${background}" ${CONVERT_OPT} "${WHITESUR_TMP_DIR}/beggy.png" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -106,7 +145,8 @@ install_shelly() {
|
|||||||
|
|
||||||
cp -r "${THEME_SRC_DIR}/assets/gnome-shell/assets${color}/"*".svg" "${TARGET_DIR}/assets"
|
cp -r "${THEME_SRC_DIR}/assets/gnome-shell/assets${color}/"*".svg" "${TARGET_DIR}/assets"
|
||||||
cp -r "${THEME_SRC_DIR}/assets/gnome-shell/activities/activities${icon}.svg" "${TARGET_DIR}/assets/activities.svg"
|
cp -r "${THEME_SRC_DIR}/assets/gnome-shell/activities/activities${icon}.svg" "${TARGET_DIR}/assets/activities.svg"
|
||||||
cp -r "${WHITESUR_TMP_DIR}/beggy.png" "${TARGET_DIR}/assets/background.png"
|
cp -r "${THEME_SRC_DIR}/assets/gnome-shell/common-assets/background-default.png" "${TARGET_DIR}/assets/background.png"
|
||||||
|
# cp -r "${WHITESUR_TMP_DIR}/beggy.png" "${TARGET_DIR}/assets/background.png"
|
||||||
|
|
||||||
(
|
(
|
||||||
cd "${TARGET_DIR}"
|
cd "${TARGET_DIR}"
|
||||||
@ -245,8 +285,6 @@ install_themes() {
|
|||||||
start_animation
|
start_animation
|
||||||
process_ids=()
|
process_ids=()
|
||||||
|
|
||||||
install_beggy
|
|
||||||
|
|
||||||
for opacity in "${opacities[@]}"; do
|
for opacity in "${opacities[@]}"; do
|
||||||
for alt in "${alts[@]}"; do
|
for alt in "${alts[@]}"; do
|
||||||
for theme in "${themes[@]}"; do
|
for theme in "${themes[@]}"; do
|
||||||
@ -535,7 +573,7 @@ show_nautilus_style_dialog() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
show_needed_dialogs() {
|
show_needed_dialogs() {
|
||||||
[[ "${need_dialog["-p"]}" == "true" ]] && show_panel_opacity_dialog
|
[[ "${need_dialog["-p"]}" == "true" ]] && install_dialog_deps && show_panel_opacity_dialog
|
||||||
[[ "${need_dialog["-s"]}" == "true" ]] && show_sidebar_size_dialog
|
[[ "${need_dialog["-s"]}" == "true" ]] && install_dialog_deps && show_sidebar_size_dialog
|
||||||
[[ "${need_dialog["-N"]}" == "true" ]] && show_nautilus_style_dialog
|
[[ "${need_dialog["-N"]}" == "true" ]] && install_dialog_deps && show_nautilus_style_dialog
|
||||||
}
|
}
|
||||||
|
@ -1846,7 +1846,9 @@ headerbar, .titlebar {
|
|||||||
transition-duration: 300ms;
|
transition-duration: 300ms;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:active:hover, &:checked { color: $header_fg; }
|
&:not(.suggested-action):not(.destructive-action) {
|
||||||
|
&:active:hover, &:checked { color: $header_fg; }
|
||||||
|
}
|
||||||
|
|
||||||
&:checked {
|
&:checked {
|
||||||
@include button(header-checked);
|
@include button(header-checked);
|
||||||
|
@ -1876,7 +1876,9 @@ headerbar {
|
|||||||
transition-duration: 300ms;
|
transition-duration: 300ms;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:active:hover, &:checked { color: $header_fg; }
|
&:not(.suggested-action):not(.destructive-action) {
|
||||||
|
&:active:hover, &:checked { color: $header_fg; }
|
||||||
|
}
|
||||||
|
|
||||||
&:checked {
|
&:checked {
|
||||||
@include button(header-checked);
|
@include button(header-checked);
|
||||||
|
BIN
stable-release/Gnome-3-28/WhiteSur-dark-solid.tar.xz
Normal file
BIN
stable-release/Gnome-3-28/WhiteSur-dark-solid.tar.xz
Normal file
Binary file not shown.
BIN
stable-release/Gnome-3-28/WhiteSur-dark.tar.xz
Normal file
BIN
stable-release/Gnome-3-28/WhiteSur-dark.tar.xz
Normal file
Binary file not shown.
BIN
stable-release/Gnome-3-28/WhiteSur-light-solid.tar.xz
Normal file
BIN
stable-release/Gnome-3-28/WhiteSur-light-solid.tar.xz
Normal file
Binary file not shown.
BIN
stable-release/Gnome-3-28/WhiteSur-light.tar.xz
Normal file
BIN
stable-release/Gnome-3-28/WhiteSur-light.tar.xz
Normal file
Binary file not shown.
BIN
stable-release/Gnome-40-0/WhiteSur-dark-solid.tar.xz
Normal file
BIN
stable-release/Gnome-40-0/WhiteSur-dark-solid.tar.xz
Normal file
Binary file not shown.
BIN
stable-release/Gnome-40-0/WhiteSur-dark.tar.xz
Normal file
BIN
stable-release/Gnome-40-0/WhiteSur-dark.tar.xz
Normal file
Binary file not shown.
BIN
stable-release/Gnome-40-0/WhiteSur-light-solid.tar.xz
Normal file
BIN
stable-release/Gnome-40-0/WhiteSur-light-solid.tar.xz
Normal file
Binary file not shown.
BIN
stable-release/Gnome-40-0/WhiteSur-light.tar.xz
Normal file
BIN
stable-release/Gnome-40-0/WhiteSur-light.tar.xz
Normal file
Binary file not shown.
4
test.py
4
test.py
@ -1,4 +0,0 @@
|
|||||||
#! /bin/python3
|
|
||||||
|
|
||||||
print("Sorry, the automated WhiteSur test isn't yet developed")
|
|
||||||
print("Anyways, we don't use bash to do that cuz it closes when the test command exits")
|
|
@ -166,7 +166,7 @@ if [[ "${uninstall}" == 'true' ]]; then
|
|||||||
echo; prompt -s "Done! '${name}' theme has been disconnected from your Flatpak."
|
echo; prompt -s "Done! '${name}' theme has been disconnected from your Flatpak."
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
install_theme_deps; show_needed_dialogs; customize_theme
|
show_needed_dialogs; customize_theme
|
||||||
|
|
||||||
if [[ "${gdm}" == 'true' ]]; then
|
if [[ "${gdm}" == 'true' ]]; then
|
||||||
echo; prompt -i "Installing '${name}' GDM theme..."
|
echo; prompt -i "Installing '${name}' GDM theme..."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user