12 Commits

Author SHA1 Message Date
vinceliuice
2c674203ab Fixed #55 2022-05-15 01:41:43 +08:00
vinceliuice
f618c8e8ec Fixed #53 2022-04-24 11:19:11 +08:00
vinceliuice
329e8efaec Fixed #51 2022-04-23 17:58:25 +08:00
vinceliuice
980fbf80e4 Fixed libadwaita issues 2022-04-23 15:07:41 +08:00
vinceliuice
b88487dc78 update 2022-04-23 00:37:58 +08:00
vinceliuice
54d3356aaf Fixed gnome-shell 42 issues #49 #39 2022-04-22 20:19:01 +08:00
Vince
519c2c9d2a Fixed #47 2022-04-12 20:11:53 +08:00
Vince
1bce38c8ce Fixed #45 2022-04-02 15:16:39 +08:00
vinceliuice
30efb63f3b update 2022-03-20 12:58:41 +08:00
vinceliuice
b646d62f32 update 2022-03-18 20:55:19 +08:00
vinceliuice
0d949baee2 update 2022-03-18 11:18:24 +08:00
vinceliuice
b9c524a586 Update assets.svg 2022-03-17 22:48:54 +08:00
5558 changed files with 3262 additions and 28605 deletions

11
.gitignore vendored
View File

@@ -1 +1,12 @@
*-temp.scss *-temp.scss
src/main/cinnamon/cinnamon-light.css
src/main/cinnamon/cinnamon-dark.css
src/main/gnome-shell/gnome-shell-dark.css
src/main/gnome-shell/gnome-shell-light.css
src/main/gnome-shell/gnome-shell.css
src/main/gtk-3.0/gtk-dark.css
src/main/gtk-3.0/gtk.css
src/main/gtk-4.0/gtk-light.css
src/main/gtk-4.0/gtk.css
src/main/gtk-4.0/gtk-dark.css
src/main/gtk-3.0/gtk-light.css

View File

@@ -22,22 +22,21 @@ fi
SASSC_OPT="-M -t expanded" SASSC_OPT="-M -t expanded"
_COLOR_VARIANTS=('' '-light' '-dark') _COLOR_VARIANTS=('' '-Light' '-Dark')
if [ ! -z "${COLOR_VARIANTS:-}" ]; then if [ ! -z "${COLOR_VARIANTS:-}" ]; then
IFS=', ' read -r -a _COLOR_VARIANTS <<< "${COLOR_VARIANTS:-}" IFS=', ' read -r -a _COLOR_VARIANTS <<< "${COLOR_VARIANTS:-}"
fi fi
cp -rf src/sass/_tweaks.scss src/sass/_tweaks-temp.scss cp -rf src/sass/_tweaks.scss src/sass/_tweaks-temp.scss
cp -rf src/sass/gnome-shell/_common.scss src/sass/gnome-shell/_common-temp.scss
for color in "${_COLOR_VARIANTS[@]}"; do for color in "${_COLOR_VARIANTS[@]}"; do
sassc $SASSC_OPT src/main/gtk-3.0/gtk${color}.{scss,css} sassc $SASSC_OPT src/main/gtk-3.0/gtk${color}.{scss,css}
echo "==> Generating the 3.0 gtk${color}.css..." echo "==> Generating the 3.0 gtk${color}.css..."
sassc $SASSC_OPT src/main/gtk-4.0/gtk${color}.{scss,css} sassc $SASSC_OPT src/main/gtk-4.0/gtk${color}.{scss,css}
echo "==> Generating the 4.0 gtk${color}.css..." echo "==> Generating the 4.0 gtk${color}.css..."
sassc $SASSC_OPT src/main/gnome-shell/shell-3-28/gnome-shell${color}.{scss,css} sassc $SASSC_OPT src/main/gnome-shell/gnome-shell${color}.{scss,css}
echo "==> Generating the 3.28 gnome-shell${color}.css..." echo "==> Generating the gnome-shell${color}.css..."
sassc $SASSC_OPT src/main/gnome-shell/shell-40-0/gnome-shell${color}.{scss,css}
echo "==> Generating the 40.0 gnome-shell${color}.css..."
sassc $SASSC_OPT src/main/cinnamon/cinnamon${color}.{scss,css} sassc $SASSC_OPT src/main/cinnamon/cinnamon${color}.{scss,css}
echo "==> Generating the cinnamon${color}.css..." echo "==> Generating the cinnamon${color}.css..."
done done

55
clean-old-theme.sh Executable file
View File

@@ -0,0 +1,55 @@
#! /usr/bin/env bash
ROOT_UID=0
DEST_DIR=
# Destination directory
if [ "$UID" -eq "$ROOT_UID" ]; then
DEST_DIR="/usr/share/themes"
else
DEST_DIR="$HOME/.themes"
fi
THEME_NAME=Colloid
THEME_VARIANTS=('' '-purple' '-pink' '-red' '-orange' '-yellow' '-green' '-teal' '-grey')
COLOR_VARIANTS=('' '-light' '-dark')
SIZE_VARIANTS=('' '-compact')
TYPE_VARIANTS=('' '-nord' '-dracula')
SCREEN_VARIANTS=('' '-hdpi' '-xhdpi')
clean() {
local dest=${1}
local name=${2}
local theme=${3}
local color=${4}
local size=${5}
local type=${6}
local screen=${7}
local THEME_DIR=${dest}/${name}${theme}${color}${size}${type}${screen}
if [[ ${theme} == '' && ${color} == '' && ${size} == '' && ${type} == '' ]]; then
cleantheme='none'
elif [[ -d ${THEME_DIR} ]]; then
rm -rf ${THEME_DIR}
echo -e "Find: ${THEME_DIR} ! removing it ..."
fi
}
clean_theme() {
for theme in "${themes[@]-${THEME_VARIANTS[@]}}"; do
for color in "${colors[@]-${COLOR_VARIANTS[@]}}"; do
for size in "${sizes[@]-${SIZE_VARIANTS[@]}}"; do
for type in "${types[@]-${TYPE_VARIANTS[@]}}"; do
for screen in "${screens[@]-${SCREEN_VARIANTS[@]}}"; do
clean "${dest:-${DEST_DIR}}" "${name:-${THEME_NAME}}" "${theme}" "${color}" "${size}" "${type}" "${screen}"
done
done
done
done
done
}
clean_theme
exit 0

120
gtkrc.sh
View File

@@ -7,102 +7,102 @@ make_gtkrc() {
local ctype="${6}" local ctype="${6}"
local window="${7}" local window="${7}"
[[ "${color}" == '-light' ]] && local ELSE_LIGHT="${color}" [[ "${color}" == '-Light' ]] && local ELSE_LIGHT="${color}"
[[ "${color}" == '-dark' ]] && local ELSE_DARK="${color}" [[ "${color}" == '-Dark' ]] && local ELSE_DARK="${color}"
local GTKRC_DIR="${SRC_DIR}/main/gtk-2.0" local GTKRC_DIR="${SRC_DIR}/main/gtk-2.0"
local THEME_DIR="${1}/${2}${3}${4}${5}${6}" local THEME_DIR="${1}/${2}${3}${4}${5}${6}"
if [[ "${color}" != '-dark' ]]; then if [[ "${color}" != '-Dark' ]]; then
case "$theme" in case "$theme" in
'') '')
theme_color='#3c84f7' theme_color='#3c84f7'
;; ;;
-purple) -Purple)
theme_color='#AB47BC' theme_color='#AB47BC'
;; ;;
-pink) -Pink)
theme_color='#EC407A' theme_color='#EC407A'
;; ;;
-red) -Red)
theme_color='#E53935' theme_color='#E53935'
;; ;;
-orange) -Orange)
theme_color='#F57C00' theme_color='#F57C00'
;; ;;
-yellow) -Yellow)
theme_color='#FBC02D' theme_color='#FBC02D'
;; ;;
-green) -Green)
theme_color='#4CAF50' theme_color='#4CAF50'
;; ;;
-teal) -Teal)
theme_color='#009688' theme_color='#009688'
;; ;;
-grey) -Grey)
theme_color='#464646' theme_color='#464646'
;; ;;
esac esac
if [[ "$ctype" == '-nord' ]]; then if [[ "$ctype" == '-Nord' ]]; then
case "$theme" in case "$theme" in
'') '')
theme_color='#5e81ac' theme_color='#5e81ac'
;; ;;
-purple) -Purple)
theme_color='#b57daa' theme_color='#b57daa'
;; ;;
-pink) -Pink)
theme_color='#cd7092' theme_color='#cd7092'
;; ;;
-red) -Red)
theme_color='#c35b65' theme_color='#c35b65'
;; ;;
-orange) -Orange)
theme_color='#d0846c' theme_color='#d0846c'
;; ;;
-yellow) -Yellow)
theme_color='#e4b558' theme_color='#e4b558'
;; ;;
-green) -Green)
theme_color='#82ac5d' theme_color='#82ac5d'
;; ;;
-teal) -Teal)
theme_color='#83b9b8' theme_color='#83b9b8'
;; ;;
-grey) -Grey)
theme_color='#3a4150' theme_color='#3a4150'
;; ;;
esac esac
fi fi
if [[ "$ctype" == '-dracula' ]]; then if [[ "$ctype" == '-Dracula' ]]; then
case "$theme" in case "$theme" in
'') '')
theme_color='#a679ec' theme_color='#a679ec'
;; ;;
-purple) -Purple)
theme_color='#a679ec' theme_color='#a679ec'
;; ;;
-pink) -Pink)
theme_color='#f04cab' theme_color='#f04cab'
;; ;;
-red) -Red)
theme_color='#f44d4d' theme_color='#f44d4d'
;; ;;
-orange) -Orange)
theme_color='#f8a854' theme_color='#f8a854'
;; ;;
-yellow) -Yellow)
theme_color='#e8f467' theme_color='#e8f467'
;; ;;
-green) -Green)
theme_color='#4be772' theme_color='#4be772'
;; ;;
-teal) -Teal)
theme_color='#20eed9' theme_color='#20eed9'
;; ;;
-grey) -Grey)
theme_color='#3c3f51' theme_color='#3c3f51'
;; ;;
esac esac
@@ -112,91 +112,91 @@ make_gtkrc() {
'') '')
theme_color='#5b9bf8' theme_color='#5b9bf8'
;; ;;
-purple) -Purple)
theme_color='#BA68C8' theme_color='#BA68C8'
;; ;;
-pink) -Pink)
theme_color='#F06292' theme_color='#F06292'
;; ;;
-red) -Red)
theme_color='#F44336' theme_color='#F44336'
;; ;;
-orange) -Orange)
theme_color='#FB8C00' theme_color='#FB8C00'
;; ;;
-yellow) -Yellow)
theme_color='#FFD600' theme_color='#FFD600'
;; ;;
-green) -Green)
theme_color='#66BB6A' theme_color='#66BB6A'
;; ;;
-teal) -Teal)
theme_color='#4DB6AC' theme_color='#4DB6AC'
;; ;;
-grey) -Grey)
theme_color='#DDDDDD' theme_color='#DDDDDD'
;; ;;
esac esac
if [[ "$ctype" == '-nord' ]]; then if [[ "$ctype" == '-Nord' ]]; then
case "$theme" in case "$theme" in
'') '')
theme_color='#89a3c2' theme_color='#89a3c2'
;; ;;
-purple) -Purple)
theme_color='#c89dbf' theme_color='#c89dbf'
;; ;;
-pink) -Pink)
theme_color='#dc98b1' theme_color='#dc98b1'
;; ;;
-red) -Red)
theme_color='#d4878f' theme_color='#d4878f'
;; ;;
-orange) -Orange)
theme_color='#dca493' theme_color='#dca493'
;; ;;
-yellow) -Yellow)
theme_color='#eac985' theme_color='#eac985'
;; ;;
-green) -Green)
theme_color='#a0c082' theme_color='#a0c082'
;; ;;
-teal) -Teal)
theme_color='#83b9b8' theme_color='#83b9b8'
;; ;;
-grey) -Grey)
theme_color='#d9dce3' theme_color='#d9dce3'
;; ;;
esac esac
fi fi
if [[ "$ctype" == '-dracula' ]]; then if [[ "$ctype" == '-Dracula' ]]; then
case "$theme" in case "$theme" in
'') '')
theme_color='#bd93f9' theme_color='#bd93f9'
;; ;;
-purple) -Purple)
theme_color='#bd93f9' theme_color='#bd93f9'
;; ;;
-pink) -Pink)
theme_color='#ff79c6' theme_color='#ff79c6'
;; ;;
-red) -Red)
theme_color='#ff5555' theme_color='#ff5555'
;; ;;
-orange) -Orange)
theme_color='#ffb86c' theme_color='#ffb86c'
;; ;;
-yellow) -Yellow)
theme_color='#f1fa8c' theme_color='#f1fa8c'
;; ;;
-green) -Green)
theme_color='#50fa7b' theme_color='#50fa7b'
;; ;;
-teal) -Teal)
theme_color='#50fae9' theme_color='#50fae9'
;; ;;
-grey) -Grey)
theme_color='#d9dae3' theme_color='#d9dae3'
;; ;;
esac esac
@@ -213,7 +213,7 @@ make_gtkrc() {
titlebar_light='#F2F2F2' titlebar_light='#F2F2F2'
titlebar_dark='#030303' titlebar_dark='#030303'
;; ;;
-nord) -Nord)
background_light='#f8fafc' background_light='#f8fafc'
background_dark='#0d0e11' background_dark='#0d0e11'
background_darker='#0f1115' background_darker='#0f1115'
@@ -221,7 +221,7 @@ make_gtkrc() {
titlebar_light='#f0f1f4' titlebar_light='#f0f1f4'
titlebar_dark='#020203' titlebar_dark='#020203'
;; ;;
-dracula) -Dracula)
background_light='#f9f9fb' background_light='#f9f9fb'
background_dark='#0d0d11' background_dark='#0d0d11'
background_darker='#0f1015' background_darker='#0f1015'
@@ -240,7 +240,7 @@ make_gtkrc() {
titlebar_light='#F2F2F2' titlebar_light='#F2F2F2'
titlebar_dark='#242424' titlebar_dark='#242424'
;; ;;
-nord) -Nord)
background_light='#f8fafc' background_light='#f8fafc'
background_dark='#242932' background_dark='#242932'
background_darker='#333a47' background_darker='#333a47'
@@ -248,7 +248,7 @@ make_gtkrc() {
titlebar_light='#f0f1f4' titlebar_light='#f0f1f4'
titlebar_dark='#1e222a' titlebar_dark='#1e222a'
;; ;;
-dracula) -Dracula)
background_light='#f9f9fb' background_light='#f9f9fb'
background_dark='#242632' background_dark='#242632'
background_darker='#343746' background_darker='#343746'
@@ -264,7 +264,7 @@ make_gtkrc() {
sed -i "s/#2C2C2C/${background_dark}/g" "${THEME_DIR}/gtk-2.0/gtkrc" sed -i "s/#2C2C2C/${background_dark}/g" "${THEME_DIR}/gtk-2.0/gtkrc"
sed -i "s/#464646/${background_alt}/g" "${THEME_DIR}/gtk-2.0/gtkrc" sed -i "s/#464646/${background_alt}/g" "${THEME_DIR}/gtk-2.0/gtkrc"
if [[ "${color}" == '-dark' ]]; then if [[ "${color}" == '-Dark' ]]; then
sed -i "s/#5b9bf8/${theme_color}/g" "${THEME_DIR}/gtk-2.0/gtkrc" sed -i "s/#5b9bf8/${theme_color}/g" "${THEME_DIR}/gtk-2.0/gtkrc"
sed -i "s/#3C3C3C/${background_darker}/g" "${THEME_DIR}/gtk-2.0/gtkrc" sed -i "s/#3C3C3C/${background_darker}/g" "${THEME_DIR}/gtk-2.0/gtkrc"
sed -i "s/#242424/${titlebar_dark}/g" "${THEME_DIR}/gtk-2.0/gtkrc" sed -i "s/#242424/${titlebar_dark}/g" "${THEME_DIR}/gtk-2.0/gtkrc"

View File

@@ -23,20 +23,23 @@ fi
SASSC_OPT="-M -t expanded" SASSC_OPT="-M -t expanded"
THEME_NAME=Colloid THEME_NAME=Colloid
THEME_VARIANTS=('' '-purple' '-pink' '-red' '-orange' '-yellow' '-green' '-teal' '-grey') THEME_VARIANTS=('' '-Purple' '-Pink' '-Red' '-Orange' '-Yellow' '-Green' '-Teal' '-Grey')
COLOR_VARIANTS=('' '-light' '-dark') 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 "40" ]]; then if [[ "${SHELL_VERSION:-}" -ge "42" ]]; then
GS_VERSION="new" GS_VERSION="42-0"
elif [[ "${SHELL_VERSION:-}" -ge "40" ]]; then
GS_VERSION="40-0"
else else
GS_VERSION="old" GS_VERSION="3-28"
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="new" GS_VERSION="42-0"
fi fi
usage() { usage() {
@@ -50,9 +53,9 @@ OPTIONS:
-t, --theme VARIANT Specify theme color variant(s) [default|purple|pink|red|orange|yellow|green|teal|grey|all] (Default: blue) -t, --theme VARIANT Specify theme color variant(s) [default|purple|pink|red|orange|yellow|green|teal|grey|all] (Default: blue)
-c, --color VARIANT Specify color variant(s) [standard|light|dark] (Default: All variants)s) -c, --color VARIANT Specify color variant(s) [standard|light|dark] (Default: All variants))
-s, --size VARIANT Specify size variant [standard|compact] (Default: standard variants) -s, --size VARIANT Specify size variant [standard|compact] (Default: standard variant)
--tweaks Specify versions for tweaks [nord|dracula|black|rimless|normal] (only nord and dracula can not mix use with!) --tweaks Specify versions for tweaks [nord|dracula|black|rimless|normal] (only nord and dracula can not mix use with!)
1. nord: Nord ColorScheme version 1. nord: Nord ColorScheme version
@@ -74,8 +77,8 @@ install() {
local ctype="${6}" local ctype="${6}"
local window="${7}" local window="${7}"
[[ "${color}" == '-light' ]] && local ELSE_LIGHT="${color}" [[ "${color}" == '-Light' ]] && local ELSE_LIGHT="${color}"
[[ "${color}" == '-dark' ]] && local ELSE_DARK="${color}" [[ "${color}" == '-Dark' ]] && local ELSE_DARK="${color}"
local THEME_DIR="${1}/${2}${3}${4}${5}${6}" local THEME_DIR="${1}/${2}${3}${4}${5}${6}"
@@ -102,20 +105,7 @@ install() {
mkdir -p "${THEME_DIR}/gnome-shell" mkdir -p "${THEME_DIR}/gnome-shell"
cp -r "${SRC_DIR}/main/gnome-shell/pad-osd.css" "${THEME_DIR}/gnome-shell" cp -r "${SRC_DIR}/main/gnome-shell/pad-osd.css" "${THEME_DIR}/gnome-shell"
sassc $SASSC_OPT "${SRC_DIR}/main/gnome-shell/gnome-shell${color}.scss" "${THEME_DIR}/gnome-shell/gnome-shell.css"
if [[ "$tweaks" == 'true' ]]; then
if [[ "${GS_VERSION:-}" == 'new' ]]; then
sassc $SASSC_OPT "${SRC_DIR}/main/gnome-shell/shell-40-0/gnome-shell${color}.scss" "${THEME_DIR}/gnome-shell/gnome-shell.css"
else
sassc $SASSC_OPT "${SRC_DIR}/main/gnome-shell/shell-3-28/gnome-shell${color}.scss" "${THEME_DIR}/gnome-shell/gnome-shell.css"
fi
else
if [[ "${GS_VERSION:-}" == 'new' ]]; then
cp -r "${SRC_DIR}/main/gnome-shell/shell-40-0/gnome-shell${color}.css" "${THEME_DIR}/gnome-shell/gnome-shell.css"
else
cp -r "${SRC_DIR}/main/gnome-shell/shell-3-28/gnome-shell${color}.css" "${THEME_DIR}/gnome-shell/gnome-shell.css"
fi
fi
cp -r "${SRC_DIR}/assets/gnome-shell/common-assets" "${THEME_DIR}/gnome-shell/assets" cp -r "${SRC_DIR}/assets/gnome-shell/common-assets" "${THEME_DIR}/gnome-shell/assets"
cp -r "${SRC_DIR}/assets/gnome-shell/assets${ELSE_DARK:-}/"*.svg "${THEME_DIR}/gnome-shell/assets" cp -r "${SRC_DIR}/assets/gnome-shell/assets${ELSE_DARK:-}/"*.svg "${THEME_DIR}/gnome-shell/assets"
@@ -136,39 +126,28 @@ install() {
cp -r "${SRC_DIR}/assets/gtk/assets${theme}${ctype}" "${THEME_DIR}/gtk-3.0/assets" cp -r "${SRC_DIR}/assets/gtk/assets${theme}${ctype}" "${THEME_DIR}/gtk-3.0/assets"
cp -r "${SRC_DIR}/assets/gtk/scalable" "${THEME_DIR}/gtk-3.0/assets" cp -r "${SRC_DIR}/assets/gtk/scalable" "${THEME_DIR}/gtk-3.0/assets"
cp -r "${SRC_DIR}/assets/gtk/thumbnails/thumbnail${theme}${ctype}${ELSE_DARK:-}.png" "${THEME_DIR}/gtk-3.0/thumbnail.png" cp -r "${SRC_DIR}/assets/gtk/thumbnails/thumbnail${theme}${ctype}${ELSE_DARK:-}.png" "${THEME_DIR}/gtk-3.0/thumbnail.png"
sassc $SASSC_OPT "${SRC_DIR}/main/gtk-3.0/gtk${color}.scss" "${THEME_DIR}/gtk-3.0/gtk.css"
if [[ "$tweaks" == 'true' ]]; then sassc $SASSC_OPT "${SRC_DIR}/main/gtk-3.0/gtk-Dark.scss" "${THEME_DIR}/gtk-3.0/gtk-dark.css"
sassc $SASSC_OPT "${SRC_DIR}/main/gtk-3.0/gtk${color}.scss" "${THEME_DIR}/gtk-3.0/gtk.css"
sassc $SASSC_OPT "${SRC_DIR}/main/gtk-3.0/gtk-dark.scss" "${THEME_DIR}/gtk-3.0/gtk-dark.css"
else
cp -r "${SRC_DIR}/main/gtk-3.0/gtk${color}.css" "${THEME_DIR}/gtk-3.0/gtk.css"
cp -r "${SRC_DIR}/main/gtk-3.0/gtk-dark.css" "${THEME_DIR}/gtk-3.0"
fi
mkdir -p "${THEME_DIR}/gtk-4.0" mkdir -p "${THEME_DIR}/gtk-4.0"
cp -r "${SRC_DIR}/assets/gtk/assets${theme}${ctype}" "${THEME_DIR}/gtk-4.0/assets" cp -r "${SRC_DIR}/assets/gtk/assets${theme}${ctype}" "${THEME_DIR}/gtk-4.0/assets"
cp -r "${SRC_DIR}/assets/gtk/scalable" "${THEME_DIR}/gtk-4.0/assets" cp -r "${SRC_DIR}/assets/gtk/scalable" "${THEME_DIR}/gtk-4.0/assets"
cp -r "${SRC_DIR}/assets/gtk/thumbnails/thumbnail${theme}${ctype}${ELSE_DARK:-}.png" "${THEME_DIR}/gtk-4.0/thumbnail.png" cp -r "${SRC_DIR}/assets/gtk/thumbnails/thumbnail${theme}${ctype}${ELSE_DARK:-}.png" "${THEME_DIR}/gtk-4.0/thumbnail.png"
sassc $SASSC_OPT "${SRC_DIR}/main/gtk-4.0/gtk${color}.scss" "${THEME_DIR}/gtk-4.0/gtk.css"
sassc $SASSC_OPT "${SRC_DIR}/main/gtk-4.0/gtk-Dark.scss" "${THEME_DIR}/gtk-4.0/gtk-dark.css"
if [[ "$tweaks" == 'true' ]]; then # link gtk4.0 for libadwaita
sassc $SASSC_OPT "${SRC_DIR}/main/gtk-4.0/gtk${color}.scss" "${THEME_DIR}/gtk-4.0/gtk.css" mkdir -p "${HOME}/.config/gtk-4.0"
sassc $SASSC_OPT "${SRC_DIR}/main/gtk-4.0/gtk-dark.scss" "${THEME_DIR}/gtk-4.0/gtk-dark.css" rm -rf "${HOME}/.config/gtk-4.0/"{assets,gtk.css,gtk-dark.css}
else ln -sf "${THEME_DIR}/gtk-4.0/assets" "${HOME}/.config/gtk-4.0/assets"
cp -r "${SRC_DIR}/main/gtk-4.0/gtk${color}.css" "${THEME_DIR}/gtk-4.0/gtk.css" ln -sf "${THEME_DIR}/gtk-4.0/gtk.css" "${HOME}/.config/gtk-4.0/gtk.css"
cp -r "${SRC_DIR}/main/gtk-4.0/gtk-dark.css" "${THEME_DIR}/gtk-4.0" ln -sf "${THEME_DIR}/gtk-4.0/gtk-dark.css" "${HOME}/.config/gtk-4.0/gtk-dark.css"
fi
mkdir -p "${THEME_DIR}/cinnamon" mkdir -p "${THEME_DIR}/cinnamon"
cp -r "${SRC_DIR}/assets/cinnamon/common-assets" "${THEME_DIR}/cinnamon/assets" cp -r "${SRC_DIR}/assets/cinnamon/common-assets" "${THEME_DIR}/cinnamon/assets"
cp -r "${SRC_DIR}/assets/cinnamon/assets${ELSE_DARK:-}/"*'.svg' "${THEME_DIR}/cinnamon/assets" cp -r "${SRC_DIR}/assets/cinnamon/assets${ELSE_DARK:-}/"*'.svg' "${THEME_DIR}/cinnamon/assets"
cp -r "${SRC_DIR}/assets/cinnamon/theme${theme}${ctype}/"*'.svg' "${THEME_DIR}/cinnamon/assets" cp -r "${SRC_DIR}/assets/cinnamon/theme${theme}${ctype}/"*'.svg' "${THEME_DIR}/cinnamon/assets"
sassc $SASSC_OPT "${SRC_DIR}/main/cinnamon/cinnamon${color}.scss" "${THEME_DIR}/cinnamon/cinnamon.css"
if [[ "$tweaks" == 'true' ]]; then
sassc $SASSC_OPT "${SRC_DIR}/main/cinnamon/cinnamon${color}.scss" "${THEME_DIR}/cinnamon/cinnamon.css"
else
cp -r "${SRC_DIR}/main/cinnamon/cinnamon${color}.css" "${THEME_DIR}/cinnamon/cinnamon.css"
fi
cp -r "${SRC_DIR}/assets/cinnamon/thumbnails/thumbnail${theme}${ctype}${color}.png" "${THEME_DIR}/cinnamon/thumbnail.png" cp -r "${SRC_DIR}/assets/cinnamon/thumbnails/thumbnail${theme}${ctype}${color}.png" "${THEME_DIR}/cinnamon/thumbnail.png"
mkdir -p "${THEME_DIR}/metacity-1" mkdir -p "${THEME_DIR}/metacity-1"
@@ -190,10 +169,10 @@ install() {
sed -i "s/button_offset=6/button_offset=12/" "${THEME_DIR}-xhdpi/xfwm4/themerc" sed -i "s/button_offset=6/button_offset=12/" "${THEME_DIR}-xhdpi/xfwm4/themerc"
mkdir -p "${THEME_DIR}/plank" mkdir -p "${THEME_DIR}/plank"
if [[ "$color" == '-light' ]]; then if [[ "$color" == '-Light' ]]; then
cp -r "${SRC_DIR}/main/plank/theme-light/"* "${THEME_DIR}/plank" cp -r "${SRC_DIR}/main/plank/theme-Light${ctype}/"* "${THEME_DIR}/plank"
else else
cp -r "${SRC_DIR}/main/plank/theme-dark/"* "${THEME_DIR}/plank" cp -r "${SRC_DIR}/main/plank/theme-Dark${ctype}/"* "${THEME_DIR}/plank"
fi fi
} }
@@ -328,13 +307,13 @@ while [[ $# -gt 0 ]]; do
case "$variant" in case "$variant" in
nord) nord)
nord="true" nord="true"
ctype="-nord" ctype="-Nord"
echo -e "Install Nord ColorScheme version! ..." echo -e "Install Nord ColorScheme version! ..."
shift shift
;; ;;
dracula) dracula)
dracula="true" dracula="true"
ctype="-dracula" ctype="-Dracula"
echo -e "Install Dracula ColorScheme version! ..." echo -e "Install Dracula ColorScheme version! ..."
shift shift
;; ;;
@@ -350,7 +329,7 @@ while [[ $# -gt 0 ]]; do
;; ;;
normal) normal)
normal="true" normal="true"
window="-normal" window="-Normal"
echo -e "Install Normal window button version! ..." echo -e "Install Normal window button version! ..."
shift shift
;; ;;
@@ -442,44 +421,50 @@ normal_winbutton() {
sed -i "/\$window_button:/s/mac/normal/" ${SRC_DIR}/sass/_tweaks-temp.scss sed -i "/\$window_button:/s/mac/normal/" ${SRC_DIR}/sass/_tweaks-temp.scss
} }
gnome_shell_version() {
cp -rf ${SRC_DIR}/sass/gnome-shell/_common.scss ${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}" == '3-28' ]]; then
sed -i "/\extensions/s/40-0/${GS_VERSION}/" ${SRC_DIR}/sass/gnome-shell/_common-temp.scss
fi
}
theme_color() { theme_color() {
if [[ "$theme" != '' ]]; then if [[ "$theme" != '' ]]; then
case "$theme" in case "$theme" in
-purple) -Purple)
theme_color='purple' theme_color='purple'
;; ;;
-pink) -Pink)
theme_color='pink' theme_color='pink'
;; ;;
-red) -Red)
theme_color='red' theme_color='red'
;; ;;
-orange) -Orange)
theme_color='orange' theme_color='orange'
;; ;;
-yellow) -Yellow)
theme_color='yellow' theme_color='yellow'
;; ;;
-green) -Green)
theme_color='green' theme_color='green'
;; ;;
-teal) -Teal)
theme_color='teal' theme_color='teal'
;; ;;
-grey) -Grey)
theme_color='grey' theme_color='grey'
;; ;;
esac esac
tweaks_temp
sed -i "/\$theme:/s/default/${theme_color}/" ${SRC_DIR}/sass/_tweaks-temp.scss sed -i "/\$theme:/s/default/${theme_color}/" ${SRC_DIR}/sass/_tweaks-temp.scss
fi fi
} }
theme_tweaks() { theme_tweaks() {
if [[ "$accent" == 'true' || "$compact" == 'true' || "$nord" == 'true' || "$dracula" == 'true' || "$rimless" == 'true' || "$blackness" == 'true' || "$normal" == 'true' ]]; then
tweaks='true'
install_package; tweaks_temp
fi
if [[ "$accent" = "true" ]] ; then if [[ "$accent" = "true" ]] ; then
theme_color theme_color
fi fi
@@ -524,7 +509,9 @@ install_theme() {
fi fi
} }
install_theme ./clean-old-theme.sh
install_package && tweaks_temp && gnome_shell_version && install_theme
echo echo
echo Done. echo Done.

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 168 B

After

Width:  |  Height:  |  Size: 168 B

View File

Before

Width:  |  Height:  |  Size: 168 B

After

Width:  |  Height:  |  Size: 168 B

View File

Before

Width:  |  Height:  |  Size: 376 B

After

Width:  |  Height:  |  Size: 376 B

View File

Before

Width:  |  Height:  |  Size: 573 B

After

Width:  |  Height:  |  Size: 573 B

View File

@@ -1,122 +1,122 @@
#! /usr/bin/env bash #! /usr/bin/env bash
for theme in '' '-purple' '-pink' '-red' '-orange' '-yellow' '-green' '-teal' '-grey'; do for theme in '' '-Purple' '-Pink' '-Red' '-Orange' '-Yellow' '-Green' '-Teal' '-Grey'; do
for type in '' '-nord' '-dracula'; do for type in '' '-Nord' '-Dracula'; do
case "$theme" in case "$theme" in
'') '')
theme_color_dark='#3c84f7' theme_color_dark='#3c84f7'
theme_color_light='#5b9bf8' theme_color_light='#5b9bf8'
;; ;;
-purple) -Purple)
theme_color_dark='#AB47BC' theme_color_dark='#AB47BC'
theme_color_light='#BA68C8' theme_color_light='#BA68C8'
;; ;;
-pink) -Pink)
theme_color_dark='#EC407A' theme_color_dark='#EC407A'
theme_color_light='#F06292' theme_color_light='#F06292'
;; ;;
-red) -Red)
theme_color_dark='#E53935' theme_color_dark='#E53935'
theme_color_light='#F44336' theme_color_light='#F44336'
;; ;;
-orange) -Orange)
theme_color_dark='#F57C00' theme_color_dark='#F57C00'
theme_color_light='#FB8C00' theme_color_light='#FB8C00'
;; ;;
-yellow) -Yellow)
theme_color_dark='#FBC02D' theme_color_dark='#FBC02D'
theme_color_light='#FFD600' theme_color_light='#FFD600'
;; ;;
-green) -Green)
theme_color_dark='#4CAF50' theme_color_dark='#4CAF50'
theme_color_light='#66BB6A' theme_color_light='#66BB6A'
;; ;;
-teal) -Teal)
theme_color_dark='#009688' theme_color_dark='#009688'
theme_color_light='#4DB6AC' theme_color_light='#4DB6AC'
;; ;;
-grey) -Grey)
theme_color_dark='#464646' theme_color_dark='#464646'
theme_color_light='#DDDDDD' theme_color_light='#DDDDDD'
;; ;;
esac esac
if [[ "$type" == '-nord' ]]; then if [[ "$type" == '-Nord' ]]; then
case "$theme" in case "$theme" in
'') '')
theme_color_dark='#5e81ac' theme_color_dark='#5e81ac'
theme_color_light='#89a3c2' theme_color_light='#89a3c2'
;; ;;
-purple) -Purple)
theme_color_dark='#b57daa' theme_color_dark='#b57daa'
theme_color_light='#c89dbf' theme_color_light='#c89dbf'
;; ;;
-pink) -Pink)
theme_color_dark='#cd7092' theme_color_dark='#cd7092'
theme_color_light='#dc98b1' theme_color_light='#dc98b1'
;; ;;
-red) -Red)
theme_color_dark='#c35b65' theme_color_dark='#c35b65'
theme_color_light='#d4878f' theme_color_light='#d4878f'
;; ;;
-orange) -Orange)
theme_color_dark='#d0846c' theme_color_dark='#d0846c'
theme_color_light='#dca493' theme_color_light='#dca493'
;; ;;
-yellow) -Yellow)
theme_color_dark='#e4b558' theme_color_dark='#e4b558'
theme_color_light='#eac985' theme_color_light='#eac985'
;; ;;
-green) -Green)
theme_color_dark='#82ac5d' theme_color_dark='#82ac5d'
theme_color_light='#a0c082' theme_color_light='#a0c082'
;; ;;
-teal) -Teal)
theme_color_dark='#63a6a5' theme_color_dark='#63a6a5'
theme_color_light='#83b9b8' theme_color_light='#83b9b8'
;; ;;
-grey) -Grey)
theme_color_dark='#3a4150' theme_color_dark='#3a4150'
theme_color_light='#d9dce3' theme_color_light='#d9dce3'
;; ;;
esac esac
fi fi
if [[ "$type" == '-dracula' ]]; then if [[ "$type" == '-Dracula' ]]; then
case "$theme" in case "$theme" in
'') '')
theme_color_dark='#a679ec' theme_color_dark='#a679ec'
theme_color_light='#bd93f9' theme_color_light='#bd93f9'
;; ;;
-purple) -Purple)
theme_color_dark='#a679ec' theme_color_dark='#a679ec'
theme_color_light='#bd93f9' theme_color_light='#bd93f9'
;; ;;
-pink) -Pink)
theme_color_dark='#f04cab' theme_color_dark='#f04cab'
theme_color_light='#ff79c6' theme_color_light='#ff79c6'
;; ;;
-red) -Red)
theme_color_dark='#f44d4d' theme_color_dark='#f44d4d'
theme_color_light='#ff5555' theme_color_light='#ff5555'
;; ;;
-orange) -Orange)
theme_color_dark='#f8a854' theme_color_dark='#f8a854'
theme_color_light='#ffb86c' theme_color_light='#ffb86c'
;; ;;
-yellow) -Yellow)
theme_color_dark='#e8f467' theme_color_dark='#e8f467'
theme_color_light='#f1fa8c' theme_color_light='#f1fa8c'
;; ;;
-green) -Green)
theme_color_dark='#4be772' theme_color_dark='#4be772'
theme_color_light='#50fa7b' theme_color_light='#50fa7b'
;; ;;
-teal) -Teal)
theme_color_dark='#20eed9' theme_color_dark='#20eed9'
theme_color_light='#50fae9' theme_color_light='#50fae9'
;; ;;
-grey) -Grey)
theme_color_dark='#3c3f51' theme_color_dark='#3c3f51'
theme_color_light='#d9dae3' theme_color_light='#d9dae3'
;; ;;

View File

Before

Width:  |  Height:  |  Size: 797 B

After

Width:  |  Height:  |  Size: 797 B

View File

Before

Width:  |  Height:  |  Size: 966 B

After

Width:  |  Height:  |  Size: 966 B

View File

Before

Width:  |  Height:  |  Size: 966 B

After

Width:  |  Height:  |  Size: 966 B

View File

Before

Width:  |  Height:  |  Size: 218 B

After

Width:  |  Height:  |  Size: 218 B

View File

Before

Width:  |  Height:  |  Size: 275 B

After

Width:  |  Height:  |  Size: 275 B

View File

Before

Width:  |  Height:  |  Size: 275 B

After

Width:  |  Height:  |  Size: 275 B

View File

Before

Width:  |  Height:  |  Size: 360 B

After

Width:  |  Height:  |  Size: 360 B

View File

Before

Width:  |  Height:  |  Size: 360 B

After

Width:  |  Height:  |  Size: 360 B

View File

Before

Width:  |  Height:  |  Size: 797 B

After

Width:  |  Height:  |  Size: 797 B

View File

Before

Width:  |  Height:  |  Size: 966 B

After

Width:  |  Height:  |  Size: 966 B

View File

Before

Width:  |  Height:  |  Size: 966 B

After

Width:  |  Height:  |  Size: 966 B

View File

Before

Width:  |  Height:  |  Size: 218 B

After

Width:  |  Height:  |  Size: 218 B

View File

Before

Width:  |  Height:  |  Size: 275 B

After

Width:  |  Height:  |  Size: 275 B

View File

Before

Width:  |  Height:  |  Size: 275 B

After

Width:  |  Height:  |  Size: 275 B

View File

Before

Width:  |  Height:  |  Size: 360 B

After

Width:  |  Height:  |  Size: 360 B

View File

Before

Width:  |  Height:  |  Size: 360 B

After

Width:  |  Height:  |  Size: 360 B

View File

Before

Width:  |  Height:  |  Size: 797 B

After

Width:  |  Height:  |  Size: 797 B

View File

Before

Width:  |  Height:  |  Size: 966 B

After

Width:  |  Height:  |  Size: 966 B

View File

Before

Width:  |  Height:  |  Size: 966 B

After

Width:  |  Height:  |  Size: 966 B

View File

Before

Width:  |  Height:  |  Size: 218 B

After

Width:  |  Height:  |  Size: 218 B

View File

Before

Width:  |  Height:  |  Size: 275 B

After

Width:  |  Height:  |  Size: 275 B

View File

Before

Width:  |  Height:  |  Size: 275 B

After

Width:  |  Height:  |  Size: 275 B

View File

Before

Width:  |  Height:  |  Size: 360 B

After

Width:  |  Height:  |  Size: 360 B

View File

Before

Width:  |  Height:  |  Size: 360 B

After

Width:  |  Height:  |  Size: 360 B

View File

Before

Width:  |  Height:  |  Size: 797 B

After

Width:  |  Height:  |  Size: 797 B

View File

Before

Width:  |  Height:  |  Size: 966 B

After

Width:  |  Height:  |  Size: 966 B

View File

Before

Width:  |  Height:  |  Size: 966 B

After

Width:  |  Height:  |  Size: 966 B

View File

Before

Width:  |  Height:  |  Size: 218 B

After

Width:  |  Height:  |  Size: 218 B

View File

Before

Width:  |  Height:  |  Size: 275 B

After

Width:  |  Height:  |  Size: 275 B

View File

Before

Width:  |  Height:  |  Size: 275 B

After

Width:  |  Height:  |  Size: 275 B

View File

Before

Width:  |  Height:  |  Size: 360 B

After

Width:  |  Height:  |  Size: 360 B

View File

Before

Width:  |  Height:  |  Size: 360 B

After

Width:  |  Height:  |  Size: 360 B

View File

Before

Width:  |  Height:  |  Size: 797 B

After

Width:  |  Height:  |  Size: 797 B

View File

Before

Width:  |  Height:  |  Size: 966 B

After

Width:  |  Height:  |  Size: 966 B

View File

Before

Width:  |  Height:  |  Size: 966 B

After

Width:  |  Height:  |  Size: 966 B

View File

Before

Width:  |  Height:  |  Size: 218 B

After

Width:  |  Height:  |  Size: 218 B

View File

Before

Width:  |  Height:  |  Size: 275 B

After

Width:  |  Height:  |  Size: 275 B

View File

Before

Width:  |  Height:  |  Size: 275 B

After

Width:  |  Height:  |  Size: 275 B

View File

Before

Width:  |  Height:  |  Size: 360 B

After

Width:  |  Height:  |  Size: 360 B

View File

Before

Width:  |  Height:  |  Size: 360 B

After

Width:  |  Height:  |  Size: 360 B

View File

Before

Width:  |  Height:  |  Size: 797 B

After

Width:  |  Height:  |  Size: 797 B

View File

Before

Width:  |  Height:  |  Size: 966 B

After

Width:  |  Height:  |  Size: 966 B

View File

Before

Width:  |  Height:  |  Size: 966 B

After

Width:  |  Height:  |  Size: 966 B

View File

Before

Width:  |  Height:  |  Size: 218 B

After

Width:  |  Height:  |  Size: 218 B

View File

Before

Width:  |  Height:  |  Size: 275 B

After

Width:  |  Height:  |  Size: 275 B

View File

Before

Width:  |  Height:  |  Size: 275 B

After

Width:  |  Height:  |  Size: 275 B

View File

Before

Width:  |  Height:  |  Size: 360 B

After

Width:  |  Height:  |  Size: 360 B

View File

Before

Width:  |  Height:  |  Size: 360 B

After

Width:  |  Height:  |  Size: 360 B

View File

Before

Width:  |  Height:  |  Size: 797 B

After

Width:  |  Height:  |  Size: 797 B

View File

Before

Width:  |  Height:  |  Size: 966 B

After

Width:  |  Height:  |  Size: 966 B

View File

Before

Width:  |  Height:  |  Size: 966 B

After

Width:  |  Height:  |  Size: 966 B

View File

Before

Width:  |  Height:  |  Size: 218 B

After

Width:  |  Height:  |  Size: 218 B

View File

Before

Width:  |  Height:  |  Size: 275 B

After

Width:  |  Height:  |  Size: 275 B

View File

Before

Width:  |  Height:  |  Size: 275 B

After

Width:  |  Height:  |  Size: 275 B

View File

Before

Width:  |  Height:  |  Size: 360 B

After

Width:  |  Height:  |  Size: 360 B

View File

Before

Width:  |  Height:  |  Size: 360 B

After

Width:  |  Height:  |  Size: 360 B

View File

Before

Width:  |  Height:  |  Size: 797 B

After

Width:  |  Height:  |  Size: 797 B

View File

Before

Width:  |  Height:  |  Size: 966 B

After

Width:  |  Height:  |  Size: 966 B

View File

Before

Width:  |  Height:  |  Size: 966 B

After

Width:  |  Height:  |  Size: 966 B

View File

Before

Width:  |  Height:  |  Size: 218 B

After

Width:  |  Height:  |  Size: 218 B

View File

Before

Width:  |  Height:  |  Size: 275 B

After

Width:  |  Height:  |  Size: 275 B

View File

Before

Width:  |  Height:  |  Size: 275 B

After

Width:  |  Height:  |  Size: 275 B

View File

Before

Width:  |  Height:  |  Size: 360 B

After

Width:  |  Height:  |  Size: 360 B

View File

Before

Width:  |  Height:  |  Size: 360 B

After

Width:  |  Height:  |  Size: 360 B

View File

Before

Width:  |  Height:  |  Size: 797 B

After

Width:  |  Height:  |  Size: 797 B

View File

Before

Width:  |  Height:  |  Size: 966 B

After

Width:  |  Height:  |  Size: 966 B

View File

Before

Width:  |  Height:  |  Size: 966 B

After

Width:  |  Height:  |  Size: 966 B

View File

Before

Width:  |  Height:  |  Size: 218 B

After

Width:  |  Height:  |  Size: 218 B

View File

Before

Width:  |  Height:  |  Size: 275 B

After

Width:  |  Height:  |  Size: 275 B

View File

Before

Width:  |  Height:  |  Size: 275 B

After

Width:  |  Height:  |  Size: 275 B

View File

Before

Width:  |  Height:  |  Size: 360 B

After

Width:  |  Height:  |  Size: 360 B

View File

Before

Width:  |  Height:  |  Size: 360 B

After

Width:  |  Height:  |  Size: 360 B

View File

Before

Width:  |  Height:  |  Size: 797 B

After

Width:  |  Height:  |  Size: 797 B

View File

Before

Width:  |  Height:  |  Size: 966 B

After

Width:  |  Height:  |  Size: 966 B

View File

Before

Width:  |  Height:  |  Size: 966 B

After

Width:  |  Height:  |  Size: 966 B

View File

Before

Width:  |  Height:  |  Size: 218 B

After

Width:  |  Height:  |  Size: 218 B

View File

Before

Width:  |  Height:  |  Size: 275 B

After

Width:  |  Height:  |  Size: 275 B

View File

Before

Width:  |  Height:  |  Size: 275 B

After

Width:  |  Height:  |  Size: 275 B

View File

Before

Width:  |  Height:  |  Size: 360 B

After

Width:  |  Height:  |  Size: 360 B

View File

Before

Width:  |  Height:  |  Size: 360 B

After

Width:  |  Height:  |  Size: 360 B

View File

Before

Width:  |  Height:  |  Size: 797 B

After

Width:  |  Height:  |  Size: 797 B

View File

Before

Width:  |  Height:  |  Size: 966 B

After

Width:  |  Height:  |  Size: 966 B

View File

Before

Width:  |  Height:  |  Size: 966 B

After

Width:  |  Height:  |  Size: 966 B

View File

Before

Width:  |  Height:  |  Size: 218 B

After

Width:  |  Height:  |  Size: 218 B

View File

Before

Width:  |  Height:  |  Size: 275 B

After

Width:  |  Height:  |  Size: 275 B

View File

Before

Width:  |  Height:  |  Size: 275 B

After

Width:  |  Height:  |  Size: 275 B

View File

Before

Width:  |  Height:  |  Size: 360 B

After

Width:  |  Height:  |  Size: 360 B

View File

Before

Width:  |  Height:  |  Size: 360 B

After

Width:  |  Height:  |  Size: 360 B

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