mirror of
https://github.com/vinceliuice/Colloid-gtk-theme.git
synced 2025-09-17 05:47:54 -07:00
Fixed #51
This commit is contained in:
17
install.sh
17
install.sh
@@ -28,20 +28,17 @@ COLOR_VARIANTS=('' '-light' '-dark')
|
|||||||
SIZE_VARIANTS=('' '-compact')
|
SIZE_VARIANTS=('' '-compact')
|
||||||
|
|
||||||
if [[ "$(command -v gnome-shell)" ]]; then
|
if [[ "$(command -v gnome-shell)" ]]; then
|
||||||
|
gnome-shell --version
|
||||||
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 "42" ]]; then
|
if [[ "${SHELL_VERSION:-}" -ge "42" ]]; then
|
||||||
GS_VERSION="42"
|
GS_VERSION="42-0"
|
||||||
echo "gnome-shell 42"
|
|
||||||
elif [[ "${SHELL_VERSION:-}" -ge "40" ]]; then
|
elif [[ "${SHELL_VERSION:-}" -ge "40" ]]; then
|
||||||
GS_VERSION="40"
|
GS_VERSION="40-0"
|
||||||
echo "gnome-shell 40"
|
|
||||||
else
|
else
|
||||||
GS_VERSION="38"
|
GS_VERSION="3-28"
|
||||||
echo "gnome-shell 38"
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "'gnome-shell' not found, using styles for last gnome-shell version available."
|
echo "'gnome-shell' not found, using styles for last gnome-shell version available."
|
||||||
GS_VERSION="42"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
@@ -425,10 +422,10 @@ normal_winbutton() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
gnome_shell_version() {
|
gnome_shell_version() {
|
||||||
sed -i "/\widgets/s/40/${GS_VERSION}/" ${SRC_DIR}/sass/gnome-shell/_common-temp.scss
|
sed -i "/\widgets/s/40-0/${GS_VERSION}/" ${SRC_DIR}/sass/gnome-shell/_common-temp.scss
|
||||||
|
|
||||||
if [[ "${GS_VERSION}" == '38' ]]; then
|
if [[ "${GS_VERSION}" == '3-28' ]]; then
|
||||||
sed -i "/\extensions/s/40-0/3-28/" ${SRC_DIR}/sass/gnome-shell/_common-temp.scss
|
sed -i "/\extensions/s/40-0/${GS_VERSION}/" ${SRC_DIR}/sass/gnome-shell/_common-temp.scss
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user