This commit is contained in:
vinceliuice
2023-01-13 21:34:14 +08:00
parent 257ccd4549
commit 13a36f30a5
6 changed files with 47 additions and 54 deletions

View File

@@ -62,12 +62,11 @@ OPTIONS:
-r, --remove,
-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!)
1. nord: Nord ColorScheme version
2. dracula Dracula ColorScheme version
3. black: Blackness color version
4. rimless: Remove the 1px border about windows and menus
5. normal: Normal windows button style (titlebuttons: max/min/close)
--tweaks Specify versions for tweaks [(nord/dracula)|black|rimless|normal] (only nord and dracula can not mix use with!)
1. [nord/dracula]: Nord/Dracula ColorScheme version
2. black: Blackness color version
3. rimless: Remove the 1px border about windows and menus
4. normal: Normal windows button style (titlebuttons: max/min/close)
-h, --help Show help
EOF

View File

@@ -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/#f2f2f2/${panel_light}/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
rm -rf "thumbnail${theme}.svg"
cp -rf "thumbnail.svg" "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/thumbnail/thumbnail${theme}/g" "thumbnail${theme}.svg"
fi
done
done

View File

@@ -11,11 +11,11 @@ for theme in '' '-Purple' '-Pink' '-Red' '-Orange' '-Yellow' '-Green' '-Teal' '-
for color in '' '-Light' '-Dark'; do
echo
echo Rendering thumbnail${theme}${type}${color}.png
$INKSCAPE --export-id=thumbnail${theme}${type}${color} \
$INKSCAPE --export-id=thumbnail${color} \
--export-id-only \
--export-dpi=96 \
--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

View File

@@ -203,13 +203,10 @@ for theme in '' '-Purple' '-Pink' '-Red' '-Orange' '-Yellow' '-Green' '-Teal' '-
if [[ "$type" != '' ]]; then
cp -r "assets${color}.svg" "assets${theme}${color}${type}.svg"
# cp -r "assets-common${color}.svg" "assets-common${color}${type}.svg"
if [[ "$color" == '' ]]; then
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
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
elif [[ "$theme" != '' ]]; then
cp -r "assets${color}.svg" "assets${theme}${color}.svg"

View File

@@ -10,7 +10,6 @@ INDEX="assets.txt"
for theme in '' '-Purple' '-Pink' '-Red' '-Orange' '-Yellow' '-Green' '-Teal' '-Grey'; do
for type in '' '-Nord' '-Dracula'; do
ASSETS_DIR="assets${theme}${type}"
SRC_FILE="assets${theme}${type}.svg"

View File

@@ -1,5 +1,5 @@
// Theme ColorScheme palette: default/nord
// Theme ColorScheme palette: default/nord/dracula
@import 'color-palette-default';
$colorscheme: 'default';