Features, Breaking Changes & Deprecation #59
Replies: 2 comments
-
Changelog-08172023Date: August 17, 2023 In the configuration file, the Alternatively, you can assign them to Here's the updated configuration: # Deprecated - Avoid using these settings
[config]
# ...
- x11_sizes = [21, 24, 28, 32, 40, 48, 56, 64, 72, 80, 88, 96]
- win_size = 32
[cursors]
# Use this as the fallback for cursor sizes
[cursors.fallback_settings]
# ...
+ x11_sizes = [21, 24, 28, 32, 40, 48, 56, 64, 72, 80, 88, 96]
+ win_sizes = [32, 48]
[cursors.fake_pointer]
# ...
+ x11_sizes = [28, 32, 88, 96] # Adjust sizes for XCursors and...
+ win_sizes = [20] # ...Windows Cursors for this specific cursor |
Beta Was this translation helpful? Give feedback.
0 replies
-
Changelog-05212024Date: May 21, 2024 Clickgen now allows cursor bitmap re-canvasing by specifying sizes using the Caveats
Using the library:#!/usr/bin/env python
# -*- coding: utf-8 -*-
from clickgen.parser import open_blob
if __name__ == "__main__":
# ...
open_blob(pngs, hotspot=(100, 100), sizes=["24:32", "32"]) # ✅ Correct [CANVASING]
open_blob(pngs, hotspot=(100, 100), sizes=["24", "32"]) # ✅ Correct [NORMAL]
open_blob(pngs, hotspot=(100, 100), sizes=[24, 32]) # ✅ Correct [NORMAL]
open_blob(pngs, hotspot=(100, 100), sizes=["24", 32]) # ❌ Error [NORMAL]
open_blob(pngs, hotspot=(100, 100), sizes=["24:32", 32]) # ❌ Error [CANVASING] Using the clickgen CLI:clickgen samples/pngs/pointer.png -x 10 -y 10 -s "22:32" "24" "32" -p x11 # ✅ Correct [CANVASING]
clickgen samples/pngs/pointer.png -x 10 -y 10 -s "22" "24" "32" -p x11 # ✅ Correct [NORMAL]
clickgen samples/pngs/pointer.png -x 10 -y 10 -s 22 24 32 -p x11 # ✅ Correct [NORMAL]
clickgen samples/pngs/pointer.png -x 10 -y 10 -s "22" 24 32 -p x11 # ✅ Correct [NORMAL]
clickgen samples/pngs/pointer.png -x 10 -y 10 -s "22:32" 24 32 -p x11 # ✅ Correct [CANVASING] Using the ctgen CLI:ctgen samples/sample.toml -s "22:32" "24" "32" -p x11 # ✅ Correct [CANVASING]
ctgen samples/sample.toml -s "22" "24" "32" -p x11 # ✅ Correct [NORMAL]
ctgen samples/sample.toml -s 22 24 32 -p x11 # ✅ Correct [NORMAL]
ctgen samples/sample.toml -s "22" 24 32 -p x11 # ✅ Correct [NORMAL]
ctgen samples/sample.toml -s "22:32" 24 32 -p x11 # ✅ Correct [CANVASING] Using the config filesTOML config# ...
[cursors]
[cursors.fallback_settings]
x11_sizes = [16, 20, 24, 28, 32, 40, 48, 56, 64, 72, 80, 88, 96]
win_sizes = ['24:32', '32', '48', '64', '96'] # ✅ Correct [CANVASING]
win_sizes = ['24', '32', '48', '64', '96'] # ✅ Correct [NORMAL]
win_sizes = [24, 32, 48, 64, 96] # ✅ Correct [NORMAL]
win_sizes = ['24', 32, 48, 64, 96] # ❌ Error [NORMAL]
win_sizes = ['24:32', 32, 48, 64, 96] # ❌ Error [CANVASING]
[cursors.pointer1]
png = 'pointer.png'
win_name = 'Default'
x11_name = 'pointer1'
x11_symlinks = ['link1']
x11_sizes = [24, 32]
# ... JSON config{
// ...
"cursors": {
"fallback_settings": {
"x11_sizes": [16, 20, 24, 28, 32, 40, 48, 56, 64, 72, 80, 88, 96],
"win_sizes": ["24:32", "32", "48", "64", "96"] // ✅ Correct [CANVASING]
"win_sizes": ["24", "32", "48", "64", "96"], // ✅ Correct [NORMAL]
"win_sizes": [24, 32, 48, 64, 96], // ✅ Correct [NORMAL]
"win_sizes": ["24", 32, 48, 64, 96], // ❌ Error [NORMAL]
"win_sizes": ["24:32", 32, 48, 64, 96] // ❌ Error [CANVASING]
},
"pointer1": {
"png": "pointer.png",
"win_name": "Default",
"x11_name": "pointer1",
"x11_symlinks": ["link1"],
"x11_sizes": [24, 32]
}
// ...
},
} YAML config# ...
cursors:
fallback_settings:
x11_sizes: [16, 20, 24, 28, 32, 40, 48, 56, 64, 72, 80, 88, 96]
win_sizes: ['24:32', '32', '48', '64', '96'] # ✅ Correct [CANVASING]
win_sizes: ['24', '32', '48', '64', '96'] # ✅ Correct [NORMAL]
win_sizes: [24, 32, 48, 64, 96] # ✅ Correct [NORMAL]
win_sizes: ['24', 32, 48, 64, 96] # ❌ Error [NORMAL]
win_sizes: ['24:32', 32, 48, 64, 96] # ❌ Error [CANVASING]
pointer1:
png: 'pointer.png'
win_name: 'Default'
x11_name: 'pointer1'
x11_symlinks: ['link1']
x11_sizes: [24, 32]
# ... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Subscribe to this discussion to receive updates on breaking changes and deprecations.
Beta Was this translation helpful? Give feedback.
All reactions