feat: Render bitmaps using JSON config

with cbmp 1.1.1
This commit is contained in:
Abdulkaiz Khatri 2024-03-02 16:25:52 +05:30
parent 07767c24b0
commit 62d6b6dc75
4 changed files with 959 additions and 187 deletions

View file

@ -632,7 +632,7 @@ state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
Open source macOS Cursors.
Copyright (C) 2022 Abdulkaiz Khatri
Copyright (C) 2024 Abdulkaiz Khatri
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -652,7 +652,7 @@ Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
apple_cursor Copyright (C) 2022 Abdulkaiz Khatri
apple_cursor Copyright (C) 2024 Abdulkaiz Khatri
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.

View file

@ -1,17 +1,11 @@
{
"dependencies": {
"cbmp": "ful1e5/cbmp"
"cbmp": "^1.1.1"
},
"scripts": {
"render:bigsur": "npx cbmp -d 'svg/bigsur' -n 'macOS-BigSur' -bc '#000000' -oc '#FFFFFF'",
"render:bigsur-white": "npx cbmp -d 'svg/bigsur' -n 'macOS-BigSur-White' -bc '#FFFFFF' -oc '#000000'",
"render:monterey": "npx cbmp -d 'svg/monterey' -n 'macOS-Monterey' -bc '#000000' -oc '#FFFFFF'",
"render:monterey-white": "npx cbmp -d 'svg/monterey' -n 'macOS-Monterey-White' -bc '#FFFFFF' -oc '#000000'",
"render": "yarn render:bigsur && yarn render:bigsur-white && yarn render:monterey && yarn render:monterey-white ",
"build:bigsur": "ctgen build.toml -d 'bitmaps/macOS-BigSur' -n 'macOS-BigSur' -c 'macOS Big Sur Cursors'",
"build:bigsur-white": "ctgen build.toml -d 'bitmaps/macOS-BigSur-White' -n 'macOS-BigSur-White' -c 'macOS Big Sur White Cursors'",
"build:monterey": "ctgen build.toml -d 'bitmaps/macOS-Monterey' -n 'macOS-Monterey' -c 'macOS Monterey Cursors'",
"build:monterey-white": "ctgen build.toml -d 'bitmaps/macOS-Monterey-White' -n 'macOS-Monterey-White' -c 'macOS Monterey White Cursors'",
"build": "yarn build:bigsur && yarn build:bigsur-white && yarn build:monterey && yarn build:monterey-white"
"clean": "rm -rf bin bitmaps themes",
"render": "npx cbmp render.json",
"build": "bash build.sh",
"generate": "npx cbmp render.json && bash build.sh"
}
}

18
render.json Normal file
View file

@ -0,0 +1,18 @@
{
"Bibata-Modern-Amber": {
"dir": "svg",
"out": "bitmaps/macOS",
"colors": [
{ "match": "#00FF00", "replace": "#000000" },
{ "match": "#0000FF", "replace": "#FFFFFF" }
]
},
"Bibata-Modern-Amber-Right": {
"dir": "svg",
"out": "bitmaps/macOS-White",
"colors": [
{ "match": "#00FF00", "replace": "#FFFFFF" },
{ "match": "#0000FF", "replace": "#000000" }
]
}
}

1108
yarn.lock

File diff suppressed because it is too large Load diff