Skip to content

Commit 62d6b6d

Browse files
committed
feat: Render bitmaps using JSON config
with cbmp 1.1.1
1 parent 07767c2 commit 62d6b6d

File tree

4 files changed

+962
-190
lines changed

4 files changed

+962
-190
lines changed

LICENSE

+2-2
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ state the exclusion of warranty; and each file should have at least
632632
the "copyright" line and a pointer to where the full notice is found.
633633

634634
Open source macOS Cursors.
635-
Copyright (C) 2022 Abdulkaiz Khatri
635+
Copyright (C) 2024 Abdulkaiz Khatri
636636

637637
This program is free software: you can redistribute it and/or modify
638638
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.
652652
If the program does terminal interaction, make it output a short
653653
notice like this when it starts in an interactive mode:
654654

655-
apple_cursor Copyright (C) 2022 Abdulkaiz Khatri
655+
apple_cursor Copyright (C) 2024 Abdulkaiz Khatri
656656
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657657
This is free software, and you are welcome to redistribute it
658658
under certain conditions; type `show c' for details.

package.json

+5-11
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
{
22
"dependencies": {
3-
"cbmp": "ful1e5/cbmp"
3+
"cbmp": "^1.1.1"
44
},
55
"scripts": {
6-
"render:bigsur": "npx cbmp -d 'svg/bigsur' -n 'macOS-BigSur' -bc '#000000' -oc '#FFFFFF'",
7-
"render:bigsur-white": "npx cbmp -d 'svg/bigsur' -n 'macOS-BigSur-White' -bc '#FFFFFF' -oc '#000000'",
8-
"render:monterey": "npx cbmp -d 'svg/monterey' -n 'macOS-Monterey' -bc '#000000' -oc '#FFFFFF'",
9-
"render:monterey-white": "npx cbmp -d 'svg/monterey' -n 'macOS-Monterey-White' -bc '#FFFFFF' -oc '#000000'",
10-
"render": "yarn render:bigsur && yarn render:bigsur-white && yarn render:monterey && yarn render:monterey-white ",
11-
"build:bigsur": "ctgen build.toml -d 'bitmaps/macOS-BigSur' -n 'macOS-BigSur' -c 'macOS Big Sur Cursors'",
12-
"build:bigsur-white": "ctgen build.toml -d 'bitmaps/macOS-BigSur-White' -n 'macOS-BigSur-White' -c 'macOS Big Sur White Cursors'",
13-
"build:monterey": "ctgen build.toml -d 'bitmaps/macOS-Monterey' -n 'macOS-Monterey' -c 'macOS Monterey Cursors'",
14-
"build:monterey-white": "ctgen build.toml -d 'bitmaps/macOS-Monterey-White' -n 'macOS-Monterey-White' -c 'macOS Monterey White Cursors'",
15-
"build": "yarn build:bigsur && yarn build:bigsur-white && yarn build:monterey && yarn build:monterey-white"
6+
"clean": "rm -rf bin bitmaps themes",
7+
"render": "npx cbmp render.json",
8+
"build": "bash build.sh",
9+
"generate": "npx cbmp render.json && bash build.sh"
1610
}
1711
}

render.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"Bibata-Modern-Amber": {
3+
"dir": "svg",
4+
"out": "bitmaps/macOS",
5+
"colors": [
6+
{ "match": "#00FF00", "replace": "#000000" },
7+
{ "match": "#0000FF", "replace": "#FFFFFF" }
8+
]
9+
},
10+
"Bibata-Modern-Amber-Right": {
11+
"dir": "svg",
12+
"out": "bitmaps/macOS-White",
13+
"colors": [
14+
{ "match": "#00FF00", "replace": "#FFFFFF" },
15+
{ "match": "#0000FF", "replace": "#000000" }
16+
]
17+
}
18+
}

0 commit comments

Comments
 (0)