Skip to content

Commit a979a21

Browse files
committed
prepare v2.2.3
1 parent 5b10f5d commit a979a21

File tree

5 files changed

+22
-13
lines changed

5 files changed

+22
-13
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [unreleased]
99

10+
## [v2.2.3] - 25 May 2024
11+
1012
### What's New?
1113

1214
- Clickgen now allows cursor bitmap re-canvasing by specifying size using the `cursor_size:canvas_size` format. See [changelog-05212024](https://github.com/ful1e5/clickgen/discussions/59#discussioncomment-9511166)
@@ -348,7 +350,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
348350
- auto-generated **symlinks** based on input configs
349351
- `.tar` archive & `directory` as out **package**.
350352

351-
[unreleased]: https://github.com/ful1e5/clickgen/compare/v2.2.2...main
353+
[unreleased]: https://github.com/ful1e5/clickgen/compare/v2.2.3...main
354+
[v2.2.3]: https://github.com/ful1e5/clickgen/compare/v2.2.2...v2.2.3
352355
[v2.2.2]: https://github.com/ful1e5/clickgen/compare/v2.2.1...v2.2.2
353356
[v2.2.1]: https://github.com/ful1e5/clickgen/compare/v2.2.0...v2.2.1
354357
[v2.2.0]: https://github.com/ful1e5/clickgen/compare/v2.1.9...v2.2.0

README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ pip3 install clickgen
5757
For example, if you have to build [ponter.png](https://github.com/ful1e5/clickgen/blob/main/samples/pngs/pointer.png)
5858
file to Linux Format:
5959

60-
```
60+
```bash
6161
clickgen samples/pngs/pointer.png -x 10 -y 10 -s 22 24 32 -p x11
6262
```
6363

6464
You also **build animated Xcursor** by providing multiple png files to argument and animation delay with `-d`:
6565

66-
```
66+
```bash
6767
clickgen samples/pngs/wait-001.png samples/pngs/wait-001.png -d 3 -x 10 -y 10 -s 22 24 32 -p x11
6868
```
6969

@@ -72,15 +72,21 @@ clickgen samples/pngs/wait-001.png samples/pngs/wait-001.png -d 3 -x 10 -y 10 -s
7272
To build [ponter.png](https://github.com/ful1e5/clickgen/blob/main/samples/pngs/pointer.png)
7373
file to Windows Format (`.cur`):
7474

75-
> **Warning: Windows Cursor only support single size.**
75+
> **Warning: Windows Animated Cursor only support single size.**
7676
77-
```
77+
```bash
7878
clickgen samples/pngs/pointer.png -x 10 -y 10 -s 32 -p windows
7979
```
8080

81-
For **animated Windows Cursor** (`.ani`):
81+
You can also specify the size in the `size:canvas_size` format to enable canvasing:
8282

83+
```bash
84+
clickgen samples/pngs/pointer.png -x 10 -y 10 -s 20:32 -p windows
8385
```
86+
87+
For **animated Windows Cursor** (`.ani`):
88+
89+
```bash
8490
clickgen samples/pngs/wait-001.png samples/pngs/wait-001.png -d 3 -x 10 -y 10 -s 32 -p windows
8591
```
8692

@@ -98,13 +104,13 @@ ctgen sample/sample.yaml
98104

99105
You also provide multiple theme configuration file once as following:
100106

101-
```
107+
```bash
102108
ctgen sample/sample.toml sample/sample.json
103109
```
104110

105111
Override theme's `name` of theme with `-n` option:
106112

107-
```
113+
```bash
108114
ctgen sample/sample.toml -n "New Theme"
109115
```
110116

src/clickgen/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4-
__version__ = "2.2.2"
4+
__version__ = "2.2.3"

src/clickgen/scripts/clickgen.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ def main() -> None:
6363
nargs="+",
6464
default=SIZES,
6565
type=str,
66-
help="Set pixel-size for cursor.",
66+
help="""Specify the cursor size(s) either as a single integer value or
67+
in the 'size:canvas_size' format to resize the cursor to a specific canvas size.""",
6768
)
6869
parser.add_argument(
6970
"-d",

src/clickgen/scripts/ctgen.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,8 @@ def main() -> None: # noqa: C901
123123
nargs="+",
124124
default=None,
125125
type=str,
126-
help=""" Change cursor size.
127-
Multiple sizes are assigned to XCursor
128-
while one size will be assigned to Windows.""",
126+
help="""Specify the cursor size(s) either as a single integer value or
127+
in the 'size:canvas_size' format to resize the cursor to a specific canvas size.""",
129128
)
130129

131130
parser.add_argument(

0 commit comments

Comments
 (0)