1
- <!-- If you're interested, you can learn more about "sponsor-spotlight" on
2
- https://dev.to/ful1e5/lets-give-recognition-to-those-supporting-our-work-on-github-sponsors-b00 -->
3
-
4
- ![ shoutout-sponsors] ( https://sponsor-spotlight.vercel.app/sponsor?login=ful1e5 )
5
-
6
1
# Apple Cursor
7
2
8
3
Open source macOS Cursors for ` Windows ` and ` Linux ` with _ HiDPI Support_ .
9
4
10
5
[ ![ Build] ( https://github.com/ful1e5/apple_cursor/workflows/build/badge.svg )] ( https://github.com/ful1e5/apple_cursor/actions?query=workflow%3Abuild )
11
6
12
- ## Join the Community as a Sponsor
7
+ ## Notes
13
8
14
- Until 2021, my cursor projects were funded through [ pling.com] ( https://www.pling.com ) .
15
- However, the funding has since decreased and the projects are now dependent on community
16
- support and sponsorships to continue. If you would like to help me maintain Bibata and my
17
- other open source projects, you can consider sponsoring my work on
18
- [ GitHub Sponsor] ( https://github.com/sponsors/ful1e5 ) or contacting me on
19
- [ Twitter] ( https://twitter.com/ful1e5 ) if your company is interested in supporting my projects.
20
- I would be happy to discuss it and include your avatar in the project's README.
9
+ - All cursor's SVG files are found in [ svg] ( ./svg ) directory or you can also find them on
10
+ [ Figma] ( https://www.figma.com/file/OZw8Ylb9xPFw9h1uZYSMFa/apple_cursor?type=design&node-id=73%3A2&mode=design&t=dLILPgJJrLKeAcTE-1 ) .
21
11
22
- I am grateful to all the kind individuals and companies that support and sponsor my work,
23
- which enables me to continue working on open source projects full-time. Thank you.
12
+ <!-- If you're interested, you can learn more about " sponsor-spotlight" on
13
+ https://dev.to/ful1e5/lets-give-recognition-to-those-supporting-our-work-on-github-sponsors-b00 -->
24
14
25
- ---
15
+ ![ shoutout-sponsors ] ( https://sponsor-spotlight.vercel.app/sponsor?login=ful1e5 )
26
16
27
- ![ macOSMonterey] ( https://imgur.com/bmS0fRT.png )
28
- ![ macOSMonterey White] ( https://imgur.com/s0nqcje.png )
29
- ![ macOSBigSur] ( https://imgur.com/Q022eSp.png )
30
- ![ macOSBigSur White] ( https://imgur.com/SFVR945.png )
17
+ ---
31
18
32
- > ** Note**
33
- > All cursor's ` .svg ` files are found in [ svg] ( ./svg ) directory or you can also find them on
34
- > [ Figma] ( https://www.figma.com/file/OZw8Ylb9xPFw9h1uZYSMFa/Mac-Cursor?node-id=0%3A1 ) .
19
+ ![ macOS] ( https://github.com/ful1e5/apple_cursor/assets/24286590/d97de4d5-83e2-42fc-972c-b95be520ed3b )
20
+ ![ macOS White] ( https://github.com/ful1e5/apple_cursor/assets/24286590/c2cfad32-2b7d-4f52-a5b2-71f42f0d0432 )
35
21
36
22
## Cursor Sizes
37
23
38
24
### Xcursor Sizes:
39
25
26
+ <kbd >16</kbd >
27
+ <kbd >20</kbd >
40
28
<kbd >22</kbd >
41
29
<kbd >24</kbd >
42
30
<kbd >28</kbd >
@@ -52,22 +40,22 @@ which enables me to continue working on open source projects full-time. Thank yo
52
40
53
41
### Windows Cursor Size:
54
42
55
- - <kbd >16x16</kbd > - Small
56
- - <kbd >24x24</kbd > - Regular
57
- - <kbd >32x32</kbd > - Large
58
- - <kbd >48x48</kbd > - Extra Large
43
+ - <kbd >16x16</kbd > - Small
44
+ - <kbd >24x24</kbd > - Regular
45
+ - <kbd >32x32</kbd > - Large
46
+ - <kbd >48x48</kbd > - Extra Large
59
47
60
48
## Colors
61
49
62
50
### Default
63
51
64
- - Base Color - ` #000000 ` (Black)
65
- - Outline Color - ` #FFFFFF ` (White)
52
+ - Base Color - ` #000000 ` (Black)
53
+ - Outline Color - ` #FFFFFF ` (White)
66
54
67
55
### White
68
56
69
- - Base Color - ` #FFFFFF ` (White)
70
- - Outline Color - ` #000000 ` (Black)
57
+ - Base Color - ` #FFFFFF ` (White)
58
+ - Outline Color - ` #000000 ` (Black)
71
59
72
60
## How to get it
73
61
@@ -99,16 +87,16 @@ paru -S apple_cursor
99
87
** Installation:**
100
88
101
89
``` bash
102
- tar -xvf macOS-Bigsur .tar.gz # extract `.tar.gz`
103
- mv macOS- * ~ /.icons/ # Install to local users
104
- sudo mv macOS- * /usr/share/icons/ # Install to all users
90
+ tar -xvf macOS.tar.gz # extract `.tar.gz`
91
+ mv macOS* ~ /.icons/ # Install to local users
92
+ sudo mv macOS* /usr/share/icons/ # Install to all users
105
93
```
106
94
107
95
** Uninstallation:**
108
96
109
97
``` bash
110
- rm ~ /.icons/macOS- * # Remove from local users
111
- sudo rm /usr/share/icons/macOS- * # Remove from all users
98
+ rm ~ /.icons/macOS* # Remove from local users
99
+ sudo rm /usr/share/icons/macOS* # Remove from all users
112
100
```
113
101
114
102
#### Windows
@@ -138,158 +126,142 @@ Run the `uninstall.bat` script packed with the `.zip` archive
138
126
139
127
## Build From Source
140
128
141
- #### Notes
142
-
143
- - Apple Cursor's build configuration and cursor hotspot settings are bundled in the ` build.toml ` file.
144
- - Check out the scripts section in [ package.json] ( ./package.json ) to see how we build the cursor theme,
145
- excluding the render scripts. They are useful for converting ` .svg ` files to ` .png ` files.
146
- - yarn is optional, For building XCursors and Windows cursors from ` .png ` files or resizing them
147
- you don't need that. If you want to develop/modify Apple Cursor's colors, and bitmaps, or generate a png
148
- file from a svg, Then you can use yarn because bitmapper is written in TypeScript.
149
- - Since macOS Bigsur and macOS Monterey are designed similarly, they share the same hotspot settings so a
150
- single configuration file ` build.toml ` is responsible for building all variants. Due to this, you will have
151
- to change the following options in ` ctgen ` to build the appropriate variant:
152
- - ** -d** : bitmaps directory
153
- - ** -n** : The name you want to give to the generated theme.
154
- - ** -c** : Theme comment.
155
- - See ` ctgen --help ` for all available options.
156
-
157
- ### Build prerequisites
129
+ ### Prerequisites
158
130
159
- - Python version 3.7 or higher
160
- - [ clickgen] ( https://github.com/ful1e5/clickgen ) >=2.1.2 (` pip install clickgen ` )
161
- - [ yarn] ( https://github.com/yarnpkg/yarn )
131
+ - Python version 3.7 or higher
132
+ - [ clickgen] ( https://github.com/ful1e5/clickgen ) >=2.1.8 (` pip install clickgen ` )
133
+ - [ yarn] ( https://github.com/yarnpkg/yarn )
162
134
163
135
### Quick start
164
136
165
- 1 . Install [ build prerequisites] ( #build- prerequisites ) on your system
137
+ 1 . Install [ build prerequisites] ( #prerequisites ) on your system
166
138
2 . ` git clone https://github.com/ful1e5/apple_cursor `
167
- 3 . ` cd apple_cursor && yarn build `
168
- 4 . See [ Installing Apple Cursor] ( #installing-apple-cursor ) .
139
+ 3 . ` cd apple_cursor `
140
+ 4 . ` yarn install `
141
+ 5 . ` yarn generate `
142
+ 6 . See [ Installing Apple Cursor] ( #installing-apple-cursor ) .
169
143
170
- ### Building
144
+ ### Getting Started
171
145
172
- > ** Note **
173
- > Bitmaps are already generated in the ` bitmaps ` directory and ** managed by the maintainer **
174
- > (do not edit them directly).
146
+ Once you have the [ build prerequisites ] ( #prerequisites ) installed, You can personalize colors,
147
+ customize sizes, change target platforms, and more. This process involves using external tools,
148
+ as this repository only contains SVG files and configuration for these tools:
175
149
176
- First make sure you installed the [ build prerequisites] ( #build-prerequisites ) .
177
- Now that you have the dependencies, you can try build individual themes from bitmaps and
178
- customize sizes, target platform, and etc. with the ` ctgen ` CLI (packed with ` clickgen ` ).
150
+ - [ cbmp] ( https://github.com/ful1e5/cbmp ) : Used for customizing colors and generating PNG files.
151
+ - [ ctgen] ( https://github.com/ful1e5/clickgen ) : Used for customizing sizes and building XCursor and Windows Cursors.
179
152
180
- #### ` yarn build ` aberration
153
+ You can refer to the README of each tool for more information on their command-line options.
181
154
182
- Here are the default commands we used to build the macOS variants and packed them into ` yarn build ` :
155
+ #### Crafting Your Apple Cursor
183
156
184
- ``` bash
185
- npx cbmp -d ' svg/bigsur' -n ' macOS-BigSur' -bc ' #000000' -oc ' #FFFFFF'
186
- npx cbmp -d ' svg/bigsur' -n ' macOS-BigSur-White' -bc ' #FFFFFF' -oc ' #000000'
157
+ The process of creating custom cursor themes involves two main steps:
158
+
159
+ 1 . Rendering SVG files to PNG files.
160
+ 2 . Building cursor themes from PNG files.
161
+
162
+ #### Customize Colors
163
+
164
+ ` cbmp ` provides three options for changing colors:
165
+
166
+ 1 . ` -bc ` : Base color, which replaces the ` #00FF00 ` color in the SVG.
167
+ 2 . ` -oc ` : Outlined color, which replaces the ` #0000FF ` color in the SVG.
168
+ 3 . ` -wc ` (optional): Watch Background color, which replaces the ` #FF0000 ` color in the SVG.
187
169
188
- npx cbmp -d ' svg/monterey ' -n ' macOS-Monterey ' -bc ' #000000 ' -oc ' #FFFFFF '
189
- npx cbmp -d ' svg/monterey ' -n ' macOS-Monterey-White ' -bc ' #FFFFFF ' -oc ' #000000 '
170
+ ``` bash
171
+ npx cbmp [...] -bc ' <hex> ' -oc ' <hex> ' -wc ' <hex> '
190
172
```
191
173
192
- Afterwards, the themes can be found in the ` themes ` directory.
174
+ Alternatively, you can provide a JSON configuration file to render SVG files, which contains a sequence of ` cbmp ` commands:
193
175
194
- #### Customize Sizes
176
+ ``` bash
177
+ npx cbmp render.json
178
+ ```
195
179
196
- > ** Note**
197
- > You can change the cursor size up to 200 because pngs are rendered with 200x200.
198
- > If the cursor is resized by more than rendered png size, the final cursor will be blurred.
180
+ #### Customize Sizes
199
181
200
182
##### Customize Windows Cursor size
201
183
202
184
To build Windows cursor with size ` 16 ` :
203
185
204
- > ** Warning**
205
- > Windows cursor supports only one size, if multiple sizes are given with ` -s ` the first size will
206
- > be considered in build.
207
-
208
186
``` bash
209
- ctgen build.toml -s 16 -p windows -d ' bitmaps/macOS-BigSur ' -n ' macOS-BigSur ' -c ' macOS Big Sur Windows Cursors with size 16'
187
+ ctgen build.toml -s 16 -p windows -d ' bitmaps/macOS' -n ' macOS' -c ' macOS Cursors with size 16'
210
188
```
211
189
212
190
You can also customize output directory with ` -o ` option:
213
191
214
192
``` bash
215
- ctgen build.toml -s 16 -p windows -d ' bitmaps/macOS-BigSur ' -o ' out' -n ' macOS-BigSur ' -c ' macOS Big Sur Windows Cursors with size 16'
193
+ ctgen build.toml -s 16 -p windows -d ' bitmaps/macOS' -o ' out' -n ' macOS' -c ' macOS Cursors with size 16'
216
194
```
217
195
218
196
##### Customize XCursor size
219
197
220
198
To build XCursor with size ` 16 ` :
221
199
222
200
``` bash
223
- ctgen build.toml -s 16 -p x11 -d ' bitmaps/macOS-BigSur ' -n ' macOS-BigSur ' -c ' macOS Big Sur XCursors with size 16'
201
+ ctgen build.toml -s 16 -p x11 -d ' bitmaps/macOS' -n ' macOS' -c ' macOS XCursors with size 16'
224
202
```
225
203
226
204
You can also assign multiple sizes to ` ctgen ` for XCursors build:
227
205
228
206
``` bash
229
- ctgen build.toml -s 16 24 32 -p x11 -d ' bitmaps/macOS-BigSur' -n ' macOS-BigSur' -c ' Custom Sizes macOS Big Sur XCursors'
230
- ```
231
-
232
- #### Customize Colors
233
-
234
- To customize cursors color you have to install node dependencies with ` yarn install ` command.
235
- After installing dependencies you can customize the colors via ` npx cbmp ` Node CLI App which packed with
236
- [ cbmp] ( https://github.com/ful1e5/cbmp ) node package.
237
-
238
- ##### ` yarn render ` aberration
239
-
240
- Here are the default commands we used for generating the macOS bitmaps and packed them into ` yarn render ` :
241
-
242
- ``` bash
243
- npx cbmp -d ' svg/bigsur' -n ' macOS-BigSur' -bc ' #000000' -oc ' #FFFFFF'
244
- npx cbmp -d ' svg/bigsur' -n ' macOS-BigSur-White' -bc ' #FFFFFF' -oc ' #000000'
245
- npx cbmp -d ' svg/monterey' -n ' macOS-Monterey' -bc ' #000000' -oc ' #FFFFFF'
246
- npx cbmp -d ' svg/monterey' -n ' macOS-Monterey-White' -bc ' #FFFFFF' -oc ' #000000'
207
+ ctgen build.toml -s 16 24 32 -p x11 -d ' bitmaps/macOS' -n ' macOS' -c ' Custom Sizes macOS XCursors'
247
208
```
248
209
249
210
#### Examples
250
211
251
- Lets generate Big Sur cursor with green base color and black outline :
212
+ Lets generate macOS cursor with green and black colors :
252
213
253
214
``` bash
254
- npx cbmp -d ' svg/bigsur ' -n ' macOS-BigSur -Hacker' -bc ' #00FE00' -oc ' #000000'
215
+ npx cbmp -d ' svg' -o ' bitmaps/ macOS-Hacker' -bc ' #00FE00' -oc ' #000000'
255
216
```
256
217
257
218
After rendering custom color you have to build cursor through ` ctgen ` :
258
219
259
220
``` bash
260
- ctgen build.toml -d ' bitmaps/macOS-BigSur- Hacker' -n ' macOS-BigSur- Hacker' -c ' Green and black macOS Big Sur cursors.'
221
+ ctgen build.toml -d ' bitmaps/macOS-Hacker' -n ' macOS-Hacker' -c ' Green and Black macOS cursors.'
261
222
```
262
223
263
224
Afterwards, Generated theme can be found in the ` themes ` directory.
264
225
265
226
###### macOS Gruvbox
266
227
267
228
``` bash
268
- npx cbmp -d ' svg/monterey ' -n ' macOS-Gruvbox' -bc ' #282828' -oc ' #EBDBB2'
229
+ npx cbmp -d ' svg' -o ' bitmaps/ macOS-Gruvbox' -bc ' #282828' -oc ' #EBDBB2' -wc ' #000000 '
269
230
ctgen build.toml -d ' bitmaps/macOS-Gruvbox' -n ' macOS-Gruvbox' -c ' Groovy macOS cursors.'
270
231
```
271
232
272
233
###### macOS Solarized Dark
273
234
274
235
``` bash
275
- npx cbmp -d ' svg/monterey ' -n ' macOS-Solarized-Dark' -bc ' #002b36' -oc ' #839496'
236
+ npx cbmp -d ' svg' -o ' bitmaps/ macOS-Solarized-Dark' -bc ' #002b36' -oc ' #839496' -wc ' #000000 '
276
237
ctgen build.toml -d ' bitmaps/macOS-Solarized-Dark' -n ' macOS-Solarized-Dark' -c ' Solarized Dark macOS cursors.'
277
238
```
278
239
279
240
###### macOS Solarized Light
280
241
281
242
``` bash
282
- npx cbmp -d ' svg/bigsur ' -n ' macOS-Solarized-Light' -bc ' #839496' -oc ' #002b36'
243
+ npx cbmp -d ' svg' -o ' bitmaps/ macOS-Solarized-Light' -bc ' #839496' -oc ' #002b36'
283
244
ctgen build.toml -d ' bitmaps/macOS-Solarized-Light' -n ' macOS-Solarized-Light' -c ' Solarized Light macOS cursors.'
284
245
```
285
246
286
247
###### macOS Dracula
287
248
288
249
``` bash
289
- npx cbmp -d ' svg/bigsur ' -n ' macOS-Dracula' -bc ' #282a36' -oc ' #f8f8f2'
250
+ npx cbmp -d ' svg' -o ' bitmaas/ macOS-Dracula' -bc ' #282a36' -oc ' #f8f8f2'
290
251
ctgen build.toml -d ' bitmaps/macOS-Dracula' -n ' macOS-Dracula' -c ' Dracula macOS cursors.'
291
252
```
292
253
293
- # Contributing
254
+ ## Testing Cursor
255
+
256
+ There are several websites that allow you to test your cursor states by hovering over buttons. This can be very useful when developing or verifying the behavior of a cursor. The following websites cover many of the most commonly used cursors, although they may not include all available options.
257
+
258
+ - [ Cursor-Test] ( https://vibhorjaiswal.github.io/Cursor-Test/ )
259
+ - [ Mozilla CSS Cursor] ( https://developer.mozilla.org/en-US/docs/Web/CSS/cursor )
260
+
261
+ For a blueprint for creating XCursors, you may also want to refer to [ Cursor-demo] ( https://wiki.tcl-lang.org/page/Cursor+demo ) .
262
+
263
+ ## Credit
294
264
295
- Check [ CONTRIBUTING.md] ( CONTRIBUTING.md ) , any suggestions for features and contributions to the continuing code masterelopment can be made via the issue tracker or code contributions via a ` Fork ` & ` Pull requests ` .
265
+ [ Adwaita] ( https://github.com/GNOME/adwaita-icon-theme ) ·
266
+ [ Dmz] ( https://github.com/GalliumOS/dmz-cursor-theme ) ·
267
+ [ Yaru] ( https://github.com/ubuntu/yaru )
0 commit comments