feat: initial commit

This commit is contained in:
Baptiste Augrain 2023-04-13 01:13:04 +02:00
commit 8f7acfc2bf
535 changed files with 467 additions and 0 deletions

25
.editorconfig Normal file
View File

@ -0,0 +1,25 @@
root = true
[*]
indent_style = space
indent_size = 2
tab_width = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.sh]
indent_style = space
indent_size = 2
[*.{yml,yaml}]
indent_style = space
indent_size = 2
[*.patch]
trim_trailing_whitespace = false
insert_final_newline = false
[*.svg]
insert_final_newline = false

28
CONTRIBUTING.md Normal file
View File

@ -0,0 +1,28 @@
Contributing
============
Dependencies
------------
- icns2png
- imagemagick
- png2icns
- icotool
- librsvg
- bc
- pastel
Color Template
--------------
### `normal.conf`
```bash
COLOR_PRIMARY="#62A0EA"
COLOR_MEDIAN1="#3584E4"
COLOR_MEDIAN2="#1C71D8"
COLOR_FLOOR="#1A5FB4"
```
Currently, the color `COLOR_MEDIAN1` is the color `COLOR_PRIMARY` but darkened 2 times (`pastel darken 0.1 $COLOR_PRIMARY`)

57
README.md Normal file
View File

@ -0,0 +1,57 @@
VSCodium Icons
==============
Icons
-----
| name | author | preview | license | origin |
| :-----------: | :----------------: | :-------------------------------------------: | :----------: | :--------------------------------------------------------------------: |
| `cristiano20` | @cristianovitorino | ![](./icons/linux/nobg/blue1/cristiano20.png) | | https://github.com/VSCodium/vscodium/pull/413 |
| `daiyam22` | @daiyam | ![](./icons/linux/nobg/blue1/daiyam22.png) | CC-by-sa 4.0 | https://github.com/VSCodium/vscodium/discussions/1218 |
| `jared18` | @jaredreich | ![](./icons/linux/nobg/blue1/jared18.png) | | https://github.com/VSCodium/vscodium/issues/4#issuecomment-427070331 |
| `paulo22d` | @psergiojr | ![](./icons/linux/nobg/blue1/paulo22d.png) | CC-by-sa 4.0 | https://github.com/psergiojr/vscodium-logo-ideas |
| `paulo22s` | @psergiojr | ![](./icons/linux/nobg/blue1/paulo22s.png) | CC-by-sa 4.0 | https://github.com/psergiojr/vscodium-logo-ideas |
| `zolt20` | @setanarut | ![](./icons/linux/nobg/blue1/zolt20.png) | | https://github.com/VSCodium/vscodium/issues/491#issuecomment-729040072 |
Backgrounds
-----------
| name | preview |
| :-----: | :------------------------------------------------------------: |
| `circle1` | <img src="./icons/linux/circle1/blue1/paulo22s.png" width="128"/> |
| `macos1` | <img src="./icons/linux/macos1/blue1/paulo22s.png" width="128"/> |
| `nobg` | <img src="./icons/linux/nobg/blue1/paulo22s.png" width="128"/> |
| `rect1` | <img src="./icons/linux/rect1/blue1/paulo22s.png" width="128"/> |
Colors
------
| name | preview |
| :-------: | :--------------------------------------------------------------: |
| `blue1` | <img src="./icons/linux/nobg/blue1/paulo22s.png" width="128"/> |
| `brown1` | <img src="./icons/linux/nobg/brown1/paulo22s.png" width="128"/> |
| `green1` | <img src="./icons/linux/nobg/green1/paulo22s.png" width="128"/> |
| `orange1` | <img src="./icons/linux/nobg/orange1/paulo22s.png" width="128"/> |
| `purple1` | <img src="./icons/linux/nobg/purple1/paulo22s.png" width="128"/> |
| `red1` | <img src="./icons/linux/nobg/red1/paulo22s.png" width="128"/> |
| `yellow1` | <img src="./icons/linux/nobg/yellow1/paulo22s.png" width="128"/> |
How to use them?
----------------
You can build the app with any icon you want or change directly the icon in the exe.
- Windows: https://www.howtogeek.com/75983/stupid-geek-tricks-how-to-modify-the-icon-of-an-.exe-file/
- macOS: https://appleinsider.com/articles/21/01/06/how-to-change-app-icons-on-macos
- Linux: https://www.maketecheasier.com/change-application-icon-from-terminal-linux/
License
-------
### Code
[MIT](http://www.opensource.org/licenses/mit-license.php) &copy; VSCodium Team
### Graphical Elements
<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" /></a>

127
build.sh Executable file
View File

@ -0,0 +1,127 @@
#!/usr/bin/env bash
set -e
# include common functions
. ./utils.sh
# DEBUG
# set -o xtrace
check_programs "icns2png" "composite" "convert" "png2icns" "icotool" "rsvg-convert" "bc" "pastel"
build_icon() { # {{{
convert -size 2048x2048 canvas:transparent PNG32:"icon.png"
if [ ! -z "${BG_FILENAME}" ]; then
BG_KIND="${BG_FILENAME##*.}"
if [ "${BG_KIND}" == "png" ]; then
convert "${BG_PATH}/${BG_FILENAME}" -resize 2048x2048 "icon_bg.png"
elif [ "${BG_KIND}" == "svg" ]; then
rsvg-convert -w 2048 -h 2048 "${BG_PATH}/${BG_FILENAME}" -o "icon_bg.png"
fi
composite "icon_bg.png" -gravity center -background none -colorspace sRGB "icon.png" "icon.png"
fi
cp "${ICON_PATH}/main.svg" "icon_head.svg"
replace "s|@@PRIMARY@@|${COLOR_PRIMARY}|g" "icon_head.svg"
replace "s|@@MEDIAN1@@|${COLOR_MEDIAN1}|g" "icon_head.svg"
replace "s|@@MEDIAN2@@|${COLOR_MEDIAN2}|g" "icon_head.svg"
replace "s|@@FLOOR@@|${COLOR_FLOOR}|g" "icon_head.svg"
rsvg-convert -w "${BG_ICON_SIZE}" -h "${BG_ICON_SIZE}" "icon_head.svg" -o "icon_head.png"
# echo "${BG_ICON_TOP};${BG_SHIFT_ICON};${ICON_SHIFT_LEFT}"
if [ ! -z "${BG_ICON_TOP}" ]; then
if [ "${BG_SHIFT_ICON}" == "on" ] && [ ! -z "${ICON_SHIFT_LEFT}" ]; then
LEFT="$( bc <<< "${ICON_SHIFT_LEFT} + ${BG_ICON_LEFT}" )"
# echo "${LEFT}"
composite "icon_head.png" -geometry "+${LEFT}+${BG_ICON_TOP}" -background none -colorspace sRGB "icon.png" "icon.png"
else
composite "icon_head.png" -geometry "+${BG_ICON_LEFT}+${BG_ICON_TOP}" -background none -colorspace sRGB "icon.png" "icon.png"
fi
else
composite "icon_head.png" -gravity center -background none -colorspace sRGB "icon.png" "icon.png"
fi
} # }}}
build_darwin() { # {{{
mkdir -p "./icons/darwin/${BG_NAME}/${COLOR_NAME}/"
composite \( "icon.png" -resize 884x884 \) -gravity center -background none \( -size 1024x1024 canvas:transparent \) "icon_1024.png"
convert "icon_1024.png" -resize 512x512 icon_512.png
convert "icon_1024.png" -resize 256x256 icon_256.png
convert "icon_1024.png" -resize 128x128 icon_128.png
png2icns "./icons/darwin/${BG_NAME}/${COLOR_NAME}/${ICON_NAME}.icns" icon_512.png icon_256.png icon_128.png > /dev/null
} # }}}
build_linux() { # {{{
mkdir -p "./icons/linux/${BG_NAME}/${COLOR_NAME}/"
composite \( "icon.png" -resize 846x846 \) -gravity center -background none \( -size 1024x1024 canvas:transparent \) "./icons/linux/${BG_NAME}/${COLOR_NAME}/${ICON_NAME}.png"
} # }}}
build_win32() { # {{{
mkdir -p "./icons/win32/${BG_NAME}/${COLOR_NAME}/"
convert "icon.png" -define icon:auto-resize=256,128,96,64,48,32,24,20,16 "./icons/win32/${BG_NAME}/${COLOR_NAME}/${ICON_NAME}.ico"
} # }}}
for ICON_PATH in "./templates/icons/"*
do
ICON_NAME="${ICON_PATH/*\//}"
ICON_NAME="${ICON_NAME%.*}"
source "${ICON_PATH}/main.conf"
# if [ "${ICON_NAME}" == "cristiano20" ]; then
for BG_PATH in "./templates/backgrounds/"*
do
BG_NAME="${BG_PATH/*\//}"
BG_NAME="${BG_NAME%.*}"
source "${BG_PATH}/main.conf"
# if [ "${BG_NAME}" == "circle1" ]; then
for COLOR_PATH in "./templates/colors/"*
do
COLOR_NAME="${COLOR_PATH/*\//}"
COLOR_NAME="${COLOR_NAME%.*}"
echo "- ${ICON_NAME}/${BG_NAME}/${COLOR_NAME}: ${BG_COLOR_SET}"
if [ "${BG_COLOR_SET}" == "light" ]; then
source "${COLOR_PATH}/normal.conf"
COLOR_PRIMARY=$( pastel lighten 0.05 "${COLOR_PRIMARY}" )
COLOR_MEDIAN1=$( pastel lighten 0.05 "${COLOR_MEDIAN1}" )
COLOR_MEDIAN2=$( pastel lighten 0.05 "${COLOR_MEDIAN2}" )
COLOR_FLOOR=$( pastel lighten 0.05 "${COLOR_FLOOR}" )
else
source "${COLOR_PATH}/${BG_COLOR_SET}.conf"
fi
# echo "COLOR_PRIMARY: ${COLOR_PRIMARY}"
# echo "COLOR_MEDIAN1: ${COLOR_MEDIAN1}"
# echo "COLOR_MEDIAN2: ${COLOR_MEDIAN2}"
# echo "COLOR_FLOOR: ${COLOR_FLOOR}"
build_icon
build_darwin
build_linux
build_win32
done
# fi
done
# fi
done
rm -f icon.png icon_bg.png icon_head.svg icon_head.png icon_1024.png icon_512.png icon_256.png icon_128.png

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

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