chore: Adjusted cursor animation delay and migrated build configuration

This commit is contained in:
Abdulkaiz Khatri 2023-09-12 12:12:58 +05:30
parent 5806615897
commit 832ccc731c
4 changed files with 19 additions and 14 deletions

View file

@ -9,18 +9,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### :warning: Breaking Changes ### :warning: Breaking Changes
- `bitmaps` directory remove from git repository and render with `yarn render` - 3b54187660de06d8b117ecbf191c93826bcc1fc8
The `bitmaps` directory has been removed from the git repository.
You can now generate the PNG files using `yarn render` or download them from the release assets.
(This change applies only to developers and package distributors)
### What's New? ### What's New?
- Using [cbmp v1.0.0](https://github.com/ful1e5/cbmp/tree/v1.0.0) for rendering cursor bitmaps. - The XCursor package size is now approximately `20MB` in its original form and `~2MB` when compressed.
- ci: Added build support with `python 3.11` - Animated cursors now have fewer frames, Fixes #134.
- We are now using [cbmp v1.0.0](https://github.com/ful1e5/cbmp/tree/v1.0.0) for rendering cursor bitmaps.
- Added build support with `python 3.11` in the CI process.
- docs: Added list of websites for testing cursor states in README (fixed #123) - docs: Added list of websites for testing cursor states in README (fixed #123)
### Changed ### Changed
- Use 'xz' for better compression in `release` script #140 - Use 'xz' for better compression in `release` script #140
- correct AUR Package in `README.md` #142 - Corrected the AUR Package information in `README.md`, addressing issue #142.
## [v2.0.3] - 06 December 2022 ## [v2.0.3] - 06 December 2022

View file

@ -7,15 +7,14 @@ website = 'https://www.github.com/ful1e5/Bibata_Cursor'
bitmaps_dir = '' # This config will assigned with `ctgen -d <path>` bitmaps_dir = '' # This config will assigned with `ctgen -d <path>`
out_dir = 'themes' out_dir = 'themes'
platforms = ['x11', 'windows'] platforms = ['x11', 'windows']
x11_sizes = [22, 24, 28, 32, 40, 48, 56, 64, 72, 80, 88, 96]
win_size = 32
[cursors] [cursors]
[cursors.fallback_settings] [cursors.fallback_settings]
x11_sizes = [22, 24, 28, 32, 40, 48, 56, 64, 72, 80, 88, 96]
win_sizes = [24, 28, 32, 48]
x_hotspot = 100 x_hotspot = 100
y_hotspot = 100 y_hotspot = 100
x11_delay = 13 x11_delay = 40
win_delay = 1 win_delay = 1
[cursors.bd_double_arrow] [cursors.bd_double_arrow]

View file

@ -3,6 +3,7 @@
"cbmp": "^1.0.0" "cbmp": "^1.0.0"
}, },
"scripts": { "scripts": {
"clean": "rm -rf bin bitmaps themes",
"render": "npx cbmp render.json", "render": "npx cbmp render.json",
"build": "yarn render && bash build.sh" "build": "yarn render && bash build.sh"
} }

View file

@ -2,7 +2,7 @@
"Bibata-Modern-Amber": { "Bibata-Modern-Amber": {
"dir": "svg/modern", "dir": "svg/modern",
"out": "bitmaps/Bibata-Modern-Amber", "out": "bitmaps/Bibata-Modern-Amber",
"fps": 0.5, "fps": 1.2,
"colors": [ "colors": [
{ "match": "#00FF00", "replace": "#FF8300" }, { "match": "#00FF00", "replace": "#FF8300" },
{ "match": "#0000FF", "replace": "#FFFFFF" }, { "match": "#0000FF", "replace": "#FFFFFF" },
@ -13,7 +13,7 @@
"Bibata-Modern-Classic": { "Bibata-Modern-Classic": {
"dir": "svg/modern", "dir": "svg/modern",
"out": "bitmaps/Bibata-Modern-Classic", "out": "bitmaps/Bibata-Modern-Classic",
"fps": 0.5, "fps": 1.2,
"colors": [ "colors": [
{ "match": "#00FF00", "replace": "#000000" }, { "match": "#00FF00", "replace": "#000000" },
{ "match": "#0000FF", "replace": "#FFFFFF" }, { "match": "#0000FF", "replace": "#FFFFFF" },
@ -24,7 +24,7 @@
"Bibata-Modern-Ice": { "Bibata-Modern-Ice": {
"dir": "svg/modern", "dir": "svg/modern",
"out": "bitmaps/Bibata-Modern-Ice", "out": "bitmaps/Bibata-Modern-Ice",
"fps": 0.5, "fps": 1.2,
"colors": [ "colors": [
{ "match": "#00FF00", "replace": "#FFFFFF" }, { "match": "#00FF00", "replace": "#FFFFFF" },
{ "match": "#0000FF", "replace": "#000000" }, { "match": "#0000FF", "replace": "#000000" },
@ -35,7 +35,7 @@
"Bibata-Original-Amber": { "Bibata-Original-Amber": {
"dir": "svg/original", "dir": "svg/original",
"out": "bitmaps/Bibata-Original-Amber", "out": "bitmaps/Bibata-Original-Amber",
"fps": 0.5, "fps": 1.2,
"colors": [ "colors": [
{ "match": "#00FF00", "replace": "#FF8300" }, { "match": "#00FF00", "replace": "#FF8300" },
{ "match": "#0000FF", "replace": "#FFFFFF" }, { "match": "#0000FF", "replace": "#FFFFFF" },
@ -46,7 +46,7 @@
"Bibata-Original-Classic": { "Bibata-Original-Classic": {
"dir": "svg/original", "dir": "svg/original",
"out": "bitmaps/Bibata-Original-Classic", "out": "bitmaps/Bibata-Original-Classic",
"fps": 0.5, "fps": 1.2,
"colors": [ "colors": [
{ "match": "#00FF00", "replace": "#000000" }, { "match": "#00FF00", "replace": "#000000" },
{ "match": "#0000FF", "replace": "#FFFFFF" }, { "match": "#0000FF", "replace": "#FFFFFF" },
@ -57,7 +57,7 @@
"Bibata-Original-Ice": { "Bibata-Original-Ice": {
"dir": "svg/original", "dir": "svg/original",
"out": "bitmaps/Bibata-Original-Ice", "out": "bitmaps/Bibata-Original-Ice",
"fps": 0.5, "fps": 1.2,
"colors": [ "colors": [
{ "match": "#00FF00", "replace": "#FFFFFF" }, { "match": "#00FF00", "replace": "#FFFFFF" },
{ "match": "#0000FF", "replace": "#000000" }, { "match": "#0000FF", "replace": "#000000" },