by roundabout, Tuesday, 29 May 2018, 13:54:00 (1527602040), pushed by roundabout, Sunday, 11 May 2025, 13:22:25 (1746969745)
Author identity: nana-4 <hnmaigo@gmail.com>
55ce86fd3933f1b5e9c203d18f1b98deedf56592
install.sh
@@ -73,11 +73,11 @@ install() {
mkdir -p "$THEME_DIR/chrome"
cp -r "$SRC_DIR/chrome/chrome-theme$color.crx" "$THEME_DIR/chrome/chrome-theme.crx"
cp -r "$SRC_DIR/chrome/chrome-scrollbar${ELSE_DARK:-}.crx" "$THEME_DIR/chrome/chrome-scrollbar.crx"
mkdir -p "$THEME_DIR/cinnamon"
cp -r "$SRC_DIR/cinnamon/assets" "$THEME_DIR/cinnamon"
cp -r "$SRC_DIR/cinnamon/thumbnail.png" "$THEME_DIR/cinnamon"
cp -r "$SRC_DIR/cinnamon/cinnamon$color$size.css" "$THEME_DIR/cinnamon/cinnamon.css"
cp -r "$SRC_DIR/cinnamon/thumbnail.png" "$THEME_DIR/cinnamon/thumbnail.png"
cp -r "$SRC_DIR/cinnamon/assets" "$THEME_DIR/cinnamon/assets"
mkdir -p "$THEME_DIR/gnome-shell"
cp -r "$SRC_DIR/gnome-shell/"{*.svg,extensions,noise-texture.png,pad-osd.css} "$THEME_DIR/gnome-shell"
@@ -126,22 +126,19 @@ install_gdm() {
local THEME_DIR=$1/$2$3$4
# bakup and install files related to gdm theme
if [[ ! -f /usr/share/gnome-shell/gnome-shell-theme.gresource.bak ]]; then
mv -f /usr/share/gnome-shell/gnome-shell-theme.gresource \
/usr/share/gnome-shell/gnome-shell-theme.gresource.bak
cp -af /usr/share/gnome-shell/gnome-shell-theme.gresource{,.bak}
fi
if [[ -f /usr/share/gnome-shell/theme/ubuntu.css ]]; then
if [[ ! -f /usr/share/gnome-shell/theme/ubuntu.css.bak ]]; then
mv -f /usr/share/gnome-shell/theme/ubuntu.css \
/usr/share/gnome-shell/theme/ubuntu.css.bak
cp -af /usr/share/gnome-shell/theme/ubuntu.css{,.bak}
fi
cp -af "$THEME_DIR/gnome-shell/gnome-shell.css" \
/usr/share/gnome-shell/theme/ubuntu.css
cp -af "$THEME_DIR/gnome-shell/gnome-shell.css" /usr/share/gnome-shell/theme/ubuntu.css
fi
echo "Installing 'gnome-shell-theme.gresource'..."
glib-compile-resources \
--sourcedir="$THEME_DIR/gnome-shell" \
--target=/usr/share/gnome-shell/gnome-shell-theme.gresource \
"$THEME_DIR/gnome-shell/gnome-shell-theme.gresource.xml"
echo "Installing 'gnome-shell-theme.gresource'..."
}
while [[ "$#" -gt 0 ]]; do
parse-sass.sh
@@ -30,11 +30,11 @@ for color in "${_COLOR_VARIANTS[@]}"; do
for size in "${_SIZE_VARIANTS[@]}"; do
sassc "${SASSC_OPT[@]}" "src/cinnamon/cinnamon$color$size."{scss,css}
for version in "${GTK_VERSIONS[@]:1}"; do
sassc "${SASSC_OPT[@]}" "src/gtk/$version/gtk$color$size."{scss,css}
done
# This gnome-shell theme can skip versions '3.20' & '2.22'
for version in "${GS_VERSIONS[@]}"; do
sassc "${SASSC_OPT[@]}" "src/gnome-shell/$version/gnome-shell$color$size."{scss,css}
done
src/gtk/render-asset.sh
@@ -18,6 +18,7 @@ else
--export-png="$ASSETS_DIR/$i.png" "$SRC_FILE" >/dev/null \
&& "$OPTIPNG" -o7 --quiet "$ASSETS_DIR/$i.png"
fi
if [[ -f "$ASSETS_DIR/$i@2.png" ]]; then
echo "'$ASSETS_DIR/$i@2.png' exists."
else
test.sh
@@ -55,8 +55,13 @@ test() {
mkdir -p "$THEME_DIR"
ln -sT "$SRC_DIR/index$color$size.theme" "$THEME_DIR/index.theme"
mkdir -p "$THEME_DIR/cinnamon"
ln -s "$SRC_DIR/cinnamon/assets" "$THEME_DIR/cinnamon"
ln -s "$SRC_DIR/cinnamon/thumbnail.png" "$THEME_DIR/cinnamon"
ln -sT "$SRC_DIR/cinnamon/cinnamon$color$size.css" "$THEME_DIR/cinnamon/cinnamon.css"
mkdir -p "$THEME_DIR/gnome-shell"
ln -s "$SRC_DIR/gnome-shell/"{extensions,pad-osd.css} "$THEME_DIR/gnome-shell"
ln -s "$SRC_DIR/gnome-shell/"{extensions,pad-osd.css,process-working.svg} "$THEME_DIR/gnome-shell"
ln -sT "$SRC_DIR/gnome-shell/assets${ELSE_DARK:-}" "$THEME_DIR/gnome-shell/assets"
ln -sT "$SRC_DIR/gnome-shell/$GS_VERSION/gnome-shell$color$size.css" "$THEME_DIR/gnome-shell/gnome-shell.css"