mirror of
https://github.com/vinceliuice/Colloid-gtk-theme.git
synced 2025-09-16 05:18:38 -07:00
Merge branch 'main' of github.com:vinceliuice/Colloid-gtk-theme into main
This commit is contained in:
11
install.sh
11
install.sh
@@ -62,12 +62,11 @@ OPTIONS:
|
|||||||
-r, --remove,
|
-r, --remove,
|
||||||
-u, --uninstall Uninstall/Remove installed themes or links
|
-u, --uninstall Uninstall/Remove installed themes or links
|
||||||
|
|
||||||
--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/dracula]: Nord/Dracula ColorScheme version
|
||||||
2. dracula Dracula ColorScheme version
|
2. black: Blackness color version
|
||||||
3. black: Blackness color version
|
3. rimless: Remove the 1px border about windows and menus
|
||||||
4. rimless: Remove the 1px border about windows and menus
|
4. normal: Normal windows button style (titlebuttons: max/min/close)
|
||||||
5. normal: Normal windows button style (titlebuttons: max/min/close)
|
|
||||||
|
|
||||||
-h, --help Show help
|
-h, --help Show help
|
||||||
EOF
|
EOF
|
||||||
|
@@ -134,13 +134,11 @@ for theme in '' '-Purple' '-Pink' '-Red' '-Orange' '-Yellow' '-Green' '-Teal' '-
|
|||||||
sed -i "s/#5b9bf8/${theme_color_light}/g" "thumbnail${theme}${type}.svg"
|
sed -i "s/#5b9bf8/${theme_color_light}/g" "thumbnail${theme}${type}.svg"
|
||||||
sed -i "s/#f2f2f2/${panel_light}/g" "thumbnail${theme}${type}.svg"
|
sed -i "s/#f2f2f2/${panel_light}/g" "thumbnail${theme}${type}.svg"
|
||||||
sed -i "s/#212121/${panel_dark}/g" "thumbnail${theme}${type}.svg"
|
sed -i "s/#212121/${panel_dark}/g" "thumbnail${theme}${type}.svg"
|
||||||
sed -i "s/thumbnail/thumbnail${theme}${type}/g" "thumbnail${theme}${type}.svg"
|
|
||||||
elif [[ "$theme" != '' ]]; then
|
elif [[ "$theme" != '' ]]; then
|
||||||
rm -rf "thumbnail${theme}.svg"
|
rm -rf "thumbnail${theme}.svg"
|
||||||
cp -rf "thumbnail.svg" "thumbnail${theme}.svg"
|
cp -rf "thumbnail.svg" "thumbnail${theme}.svg"
|
||||||
sed -i "s/#3c84f7/${theme_color_dark}/g" "thumbnail${theme}.svg"
|
sed -i "s/#3c84f7/${theme_color_dark}/g" "thumbnail${theme}.svg"
|
||||||
sed -i "s/#5b9bf8/${theme_color_light}/g" "thumbnail${theme}.svg"
|
sed -i "s/#5b9bf8/${theme_color_light}/g" "thumbnail${theme}.svg"
|
||||||
sed -i "s/thumbnail/thumbnail${theme}/g" "thumbnail${theme}.svg"
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
@@ -11,11 +11,11 @@ for theme in '' '-Purple' '-Pink' '-Red' '-Orange' '-Yellow' '-Green' '-Teal' '-
|
|||||||
for color in '' '-Light' '-Dark'; do
|
for color in '' '-Light' '-Dark'; do
|
||||||
echo
|
echo
|
||||||
echo Rendering thumbnail${theme}${type}${color}.png
|
echo Rendering thumbnail${theme}${type}${color}.png
|
||||||
$INKSCAPE --export-id=thumbnail${theme}${type}${color} \
|
$INKSCAPE --export-id=thumbnail${color} \
|
||||||
--export-id-only \
|
--export-id-only \
|
||||||
--export-dpi=96 \
|
--export-dpi=96 \
|
||||||
--export-filename=thumbnail${theme}${type}${color}.png $SRC_FILE >/dev/null \
|
--export-filename=thumbnail${theme}${type}${color}.png $SRC_FILE >/dev/null \
|
||||||
&& $OPTIPNG -o7 --quiet thumbnail${theme}${type}.png
|
&& $OPTIPNG -o7 --quiet thumbnail${theme}${type}${color}.png
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
@@ -203,13 +203,10 @@ for theme in '' '-Purple' '-Pink' '-Red' '-Orange' '-Yellow' '-Green' '-Teal' '-
|
|||||||
|
|
||||||
if [[ "$type" != '' ]]; then
|
if [[ "$type" != '' ]]; then
|
||||||
cp -r "assets${color}.svg" "assets${theme}${color}${type}.svg"
|
cp -r "assets${color}.svg" "assets${theme}${color}${type}.svg"
|
||||||
# cp -r "assets-common${color}.svg" "assets-common${color}${type}.svg"
|
|
||||||
if [[ "$color" == '' ]]; then
|
if [[ "$color" == '' ]]; then
|
||||||
sed -i "s/#3c84f7/${theme_color}/g" "assets${theme}${color}${type}.svg"
|
sed -i "s/#3c84f7/${theme_color}/g" "assets${theme}${color}${type}.svg"
|
||||||
# sed -i "s/#FAFAFA/${background_color}/g" "assets-common${color}${type}.svg"
|
|
||||||
else
|
else
|
||||||
sed -i "s/#5b9bf8/${theme_color}/g" "assets${theme}${color}${type}.svg"
|
sed -i "s/#5b9bf8/${theme_color}/g" "assets${theme}${color}${type}.svg"
|
||||||
# sed -i "s/#2C2C2C/${background_color}/g" "assets-common${color}${type}.svg"
|
|
||||||
fi
|
fi
|
||||||
elif [[ "$theme" != '' ]]; then
|
elif [[ "$theme" != '' ]]; then
|
||||||
cp -r "assets${color}.svg" "assets${theme}${color}.svg"
|
cp -r "assets${color}.svg" "assets${theme}${color}.svg"
|
||||||
|
@@ -9,41 +9,40 @@ INDEX="assets.txt"
|
|||||||
./make-assets.sh
|
./make-assets.sh
|
||||||
|
|
||||||
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
|
||||||
|
ASSETS_DIR="assets${theme}${type}"
|
||||||
|
SRC_FILE="assets${theme}${type}.svg"
|
||||||
|
|
||||||
ASSETS_DIR="assets${theme}${type}"
|
#[[ -d $ASSETS_DIR ]] && rm -rf $ASSETS_DIR
|
||||||
SRC_FILE="assets${theme}${type}.svg"
|
mkdir -p $ASSETS_DIR
|
||||||
|
|
||||||
#[[ -d $ASSETS_DIR ]] && rm -rf $ASSETS_DIR
|
for i in `cat $INDEX`; do
|
||||||
mkdir -p $ASSETS_DIR
|
echo "Rendering '$ASSETS_DIR/$i.png'"
|
||||||
|
|
||||||
for i in `cat $INDEX`; do
|
if [[ -f "$ASSETS_DIR/$i.png" ]]; then
|
||||||
echo "Rendering '$ASSETS_DIR/$i.png'"
|
|
||||||
|
|
||||||
if [[ -f "$ASSETS_DIR/$i.png" ]]; then
|
|
||||||
echo "'$ASSETS_DIR/$i.png' exists."
|
echo "'$ASSETS_DIR/$i.png' exists."
|
||||||
elif [[ -n "${RENDER_SVG}" ]]; then
|
elif [[ -n "${RENDER_SVG}" ]]; then
|
||||||
"$RENDER_SVG" --export-id "$i" \
|
"$RENDER_SVG" --export-id "$i" \
|
||||||
"$SRC_FILE" "$ASSETS_DIR/$i.png"
|
"$SRC_FILE" "$ASSETS_DIR/$i.png"
|
||||||
else
|
else
|
||||||
"$INKSCAPE" --export-id="$i" \
|
"$INKSCAPE" --export-id="$i" \
|
||||||
--export-id-only \
|
--export-id-only \
|
||||||
--export-filename="$ASSETS_DIR/$i.png" "$SRC_FILE" >/dev/null
|
--export-filename="$ASSETS_DIR/$i.png" "$SRC_FILE" >/dev/null
|
||||||
if [[ -n "${OPTIPNG}" ]]; then
|
if [[ -n "${OPTIPNG}" ]]; then
|
||||||
"$OPTIPNG" -o7 --quiet "$ASSETS_DIR/$i.png"
|
"$OPTIPNG" -o7 --quiet "$ASSETS_DIR/$i.png"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Rendering '$ASSETS_DIR/$i@2.png'"
|
echo "Rendering '$ASSETS_DIR/$i@2.png'"
|
||||||
|
|
||||||
if [[ -f "$ASSETS_DIR/$i@2.png" ]]; then
|
if [[ -f "$ASSETS_DIR/$i@2.png" ]]; then
|
||||||
echo "'$ASSETS_DIR/$i@2.png' exists."
|
echo "'$ASSETS_DIR/$i@2.png' exists."
|
||||||
elif [[ -n "${RENDER_SVG}" ]]; then
|
elif [[ -n "${RENDER_SVG}" ]]; then
|
||||||
"$RENDER_SVG" --export-id "$i" \
|
"$RENDER_SVG" --export-id "$i" \
|
||||||
--dpi 192 \
|
--dpi 192 \
|
||||||
--zoom 2 \
|
--zoom 2 \
|
||||||
"$SRC_FILE" "$ASSETS_DIR/$i@2.png"
|
"$SRC_FILE" "$ASSETS_DIR/$i@2.png"
|
||||||
else
|
else
|
||||||
"$INKSCAPE" --export-id="$i" \
|
"$INKSCAPE" --export-id="$i" \
|
||||||
--export-id-only \
|
--export-id-only \
|
||||||
--export-dpi=192 \
|
--export-dpi=192 \
|
||||||
@@ -51,10 +50,10 @@ else
|
|||||||
if [[ -n "${OPTIPNG}" ]]; then
|
if [[ -n "${OPTIPNG}" ]]; then
|
||||||
"$OPTIPNG" -o7 --quiet "$ASSETS_DIR/$i@2.png"
|
"$OPTIPNG" -o7 --quiet "$ASSETS_DIR/$i@2.png"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
for theme in '' '-Purple' '-Pink' '-Red' '-Orange' '-Yellow' '-Green' '-Teal' '-Grey'; do
|
for theme in '' '-Purple' '-Pink' '-Red' '-Orange' '-Yellow' '-Green' '-Teal' '-Grey'; do
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
// Theme ColorScheme palette: default/nord
|
// Theme ColorScheme palette: default/nord/dracula
|
||||||
@import 'color-palette-default';
|
@import 'color-palette-default';
|
||||||
|
|
||||||
$colorscheme: 'default';
|
$colorscheme: 'default';
|
||||||
|
Reference in New Issue
Block a user