diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..841b9f1 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,27 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.1-beta] - 2 August 2020 + +### Changed + +- `hand1 hand2 move` cursors finger gap & border in center +- Drop shadow & FPS(**62**) imporovments in `wait, left_ptr_watch` cursors. +- Build size fix **65x65** to **64x64**. ([b6a8529](https://github.com/KaizIqbal/apple_cursor/commit/1120d176636baff2aac1838ba316b4f420be7ca7)) +- [Pling](https://www.pling.com/p/1408466/) product page Docs at `PLING.bbcode`. + +## [1.0.0-alpha1] - 31 July 2020 + +### Added + +- Initial release 🎊 +- Logo and badges +- CI/CD Pipelines + +[unreleased]: https://github.com/KaizIqbal/apple_cursor/compare/1.0.1-beta...master +[1.0.1-beta]: https://github.com/KaizIqbal/apple_cursor/compare/1.0.1-beta...1.0.0-alpha1 +[1.0.0-alpha1]: https://github.com/KaizIqbal/apple_cursor/tree/1.0.0-alpha1 diff --git a/PLING.bbcode b/PLING.bbcode new file mode 100644 index 0000000..3864114 --- /dev/null +++ b/PLING.bbcode @@ -0,0 +1,28 @@ + +[b]macOS Big Sur[/b] Cursor Theme with [b]HiDPi[/b] Display support. This Cursor is built with [b][url=https://github.com/KaizIqbal/clickgen]clickgen[/url][/b] and render with the [b][url=https://github.com/puppeteer/puppeteer/]puppeteer[/url][/b]. +[i]Available Sizes[/i] [b]24, 28, 32, 40, 48, 56, 64, 72, 80, 88, 96 +[/b][i]Current Version[/i] [b]1.0.1 (beta) +[/b][i]Get latest build[/i] @[b][url=https://github.com/KaizIqbal/apple_cursor/actions]GitHub Actions[/url][/b] +[i]Release Notification[/i] at [b][url=https://twitter.com/ful1e5_]Twitter[/url][/b](@ful1e5_) + +[b][size=150]Linux/X11 installation[/size][/b] +Get the latest stable/dev-version Linux release from the on the [b][url=https://github.com/KaizIqbal/apple_cursor/releases]GitHub Releases[/url][/b]. [size=85]Unpack [b].tar[/b] file and follow these [b]commands[/b].[/size] +[b]Install[/b] +[b]For all user:[/b] +[code]sudo mv macOSBigSur /usr/share/icons[/code] +[b]For local user: +[/b][code]mv macOSBigSur ~/.icons[/code] +[b][size=100]Uninstall[/size][/b] +[b]From all user:[/b] +[code]sudo rm -r /usr/share/icons/macOSBigSur[/code] +[b]From local user:[/b] +[code]rm -r ~/.icons/macOSBigSur +[/code] +[size=150][b]Window installation[/b][/size] +[list=1][*]Get the latest stable/dev-version Windows release from the on the GitHub Releases.[/*][*]Open the [b][i]Settings[/i][/b] app[/*][*]Go to [b][i]Devices[/i][/b] -> [b][i]Mouse[/i][/b] -> [b][i]Additional Mouse Options[/i][/b][/*][*]Go to the [b][i]pointers[/i][/b] tab[/*][*]Replace each cursor in the currently applied cursor set with the corresponding cursor in the Windows folder.[/*][*]Click "[b][i]save as[/i][/b]" and type in the desired name[/*][*]Click "[b][i]apply[/i][/b]" and "[b][i]ok[/i][/b]"[/*][/list] + +[b]How I help the Creator?[/b] +[list=2][*][size=85]Give a [b]Star[/b] or [b]Follow[/b] on [b][url=https://github.com/KaizIqbal/apple_cursor]GitHub[/url][/b] (issues & PullRequest are welcome).[/size][/*][*][size=85]By giving a [b]Pling[/b] or [b][url=https://www.paypal.me/kaizkhatri]Donation[/url][/b].[/size][/*][*][size=85][b]Download[/b] from[url=https://www.pling.com/p/1408466/] Pling.com[/url] Product page that helps to [b]increases[/b] my [b]monthly payout[/b].[/size][/*][*][size=85][b][url=https://www.pling.com/support]Become Support of Pling.com[/url][/b], So we become [b]Full-Time [/b]Libre & FOSS content creator [b];)[/b][/size][/*][/list] + +[size=150][b]License & Terms[/b][/size] +'[b]macOS Big Sur[/b]' Cursor Theme is available under the terms of the [b]GPL-3.0[/b] license. \ No newline at end of file diff --git a/config.py b/config.py index 5c52ed6..7069bdb 100644 --- a/config.py +++ b/config.py @@ -3,7 +3,7 @@ import tempfile # Build Config delay = 50 name = "MacOSBigSur" -sizes = [24, 28, 32, 40, 48, 56, 65, 72, 80, 88, 96] +sizes = [24, 28, 32, 40, 48, 56, 64, 72, 80, 88, 96] bitmaps_dir = "./bitmaps" temp_folder = tempfile.mkdtemp() diff --git a/helper.py b/helper.py index 3ad7bec..5a4dc5c 100644 --- a/helper.py +++ b/helper.py @@ -1,4 +1,5 @@ import shutil +import json import sys from config import name, temp_folder, bitmaps_dir, win_out, x11_out @@ -12,10 +13,19 @@ win_out_dir = path.join(package_dir, win_out) def init_build() -> None: """ + Print build version. Remove previously built packages && Check Bitmaps. """ + with open("./package.json", "r") as package_file: + data = json.loads(package_file.read()) + version = data['version'] + print("⚡ Build Version %s" % version) + + # cleanup old packages if path.exists(package_dir): shutil.rmtree(package_dir) + + # Checking Bitmaps directory if not path.exists(bitmaps_dir): print( "⚠ BITMAPS NOT FOUND.\n\n`yarn install && yarn render` to Generates Bitmaps") diff --git a/hotspots.json b/hotspots.json index 5ee3912..4e969af 100644 --- a/hotspots.json +++ b/hotspots.json @@ -1,61 +1,102 @@ { "all_scroll": { "xhot": 100, "yhot": 100 }, - "bd_double_arrow": { "xhot": 100, "yhot": 100 }, + "bottom_left_corner": { "xhot": 100, "yhot": 100 }, - "bottom_right_corner": { "xhot": 100, "yhot": 100 }, - "bottom_side": { "xhot": 100, "yhot": 100 }, - "bottom_tee": { "xhot": 141, "yhot": 99 }, - "center_ptr": { "xhot": 61, "yhot": 100 }, - "circle": { "xhot": 61, "yhot": 58 }, - "context_menu": { "xhot": 61, "yhot": 58 }, - "copy": { "xhot": 61, "yhot": 58 }, - "cross": { "xhot": 100, "yhot": 100 }, - "crossed_circle": { "xhot": 61, "yhot": 58 }, - "crosshair": { "xhot": 100, "yhot": 100 }, - "dnd_ask": { "xhot": 105, "yhot": 105 }, - "dnd_copy": { "xhot": 61, "yhot": 58 }, - "dnd_link": { "xhot": 61, "yhot": 105 }, - "dnd_move": { "xhot": 99, "yhot": 70 }, - "dnd_no_drop": { "xhot": 61, "yhot": 58 }, - "dnd_none": { "xhot": 99, "yhot": 70 }, - "dotbox": { "xhot": 100, "yhot": 100 }, "fd_double_arrow": { "xhot": 100, "yhot": 100 }, - "grabbing": { "xhot": 99, "yhot": 70 }, - "hand1": { "xhot": 100, "yhot": 100 }, - "hand2": { "xhot": 43, "yhot": 68 }, - "left_ptr": { "xhot": 61, "yhot": 58 }, - "left_ptr_watch": { "xhot": 103, "yhot": 105 }, - "left_side": { "xhot": 100, "yhot": 100 }, - "left_tee": { "xhot": 100, "yhot": 58 }, - "link": { "xhot": 61, "yhot": 105 }, - "ll_angle": { "xhot": 141, "yhot": 58 }, - "lr_angle": { "xhot": 141, "yhot": 138 }, - "move": { "xhot": 99, "yhot": 70 }, - "pencil": { "xhot": 141, "yhot": 58 }, - "plus": { "xhot": 100, "yhot": 100 }, - "pointer_move": { "xhot": 99, "yhot": 70 }, - "question_arrow": { "xhot": 105, "yhot": 105 }, - "right_ptr": { "xhot": 61, "yhot": 138 }, - "right_side": { "xhot": 100, "yhot": 100 }, - "right_tee": { "xhot": 100, "yhot": 138 }, - "sb_down_arrow": { "xhot": 133, "yhot": 99 }, - "sb_h_double_arrow": { "xhot": 100, "yhot": 100 }, - "sb_left_arrow": { "xhot": 100, "yhot": 68 }, - "sb_right_arrow": { "xhot": 100, "yhot": 138 }, - "sb_up_arrow": { "xhot": 68, "yhot": 99 }, - "sb_v_double_arrow": { "xhot": 100, "yhot": 100 }, - "tcross": { "xhot": 100, "yhot": 100 }, - "top_left_corner": { "xhot": 100, "yhot": 100 }, "top_right_corner": { "xhot": 100, "yhot": 100 }, + + "bottom_right_corner": { "xhot": 100, "yhot": 100 }, + "bd_double_arrow": { "xhot": 100, "yhot": 100 }, + "top_left_corner": { "xhot": 100, "yhot": 100 }, + + "bottom_tee": { "xhot": 141, "yhot": 99 }, + + "center_ptr": { "xhot": 61, "yhot": 100 }, + + "circle": { "xhot": 61, "yhot": 58 }, + "crossed_circle": { "xhot": 61, "yhot": 58 }, + "dnd_no_drop": { "xhot": 61, "yhot": 58 }, + + "context_menu": { "xhot": 61, "yhot": 58 }, + + "copy": { "xhot": 61, "yhot": 58 }, + "dnd_copy": { "xhot": 61, "yhot": 58 }, + + "cross": { "xhot": 100, "yhot": 100 }, + "tcross": { "xhot": 100, "yhot": 100 }, + + "crosshair": { "xhot": 100, "yhot": 100 }, + + "dotbox": { "xhot": 100, "yhot": 100 }, + + "hand1": { "xhot": 94, "yhot": 105 }, + + "hand2": { "xhot": 44, "yhot": 68 }, + + "left_ptr": { "xhot": 61, "yhot": 58 }, + + "left_side": { "xhot": 100, "yhot": 100 }, + "right_side": { "xhot": 100, "yhot": 100 }, + + "left_tee": { "xhot": 100, "yhot": 58 }, + + "link": { "xhot": 61, "yhot": 105 }, + "dnd_link": { "xhot": 61, "yhot": 105 }, + + "ll_angle": { "xhot": 141, "yhot": 58 }, + + "lr_angle": { "xhot": 141, "yhot": 138 }, + + "move": { "xhot": 80, "yhot": 106 }, + "dnd_move": { "xhot": 80, "yhot": 106 }, + "dnd_none": { "xhot": 80, "yhot": 106 }, + "grabbing": { "xhot": 80, "yhot": 106 }, + "pointer_move": { "xhot": 80, "yhot": 106 }, + + "pencil": { "xhot": 141, "yhot": 58 }, + + "plus": { "xhot": 100, "yhot": 100 }, + + "question_arrow": { "xhot": 105, "yhot": 105 }, + "dnd_ask": { "xhot": 105, "yhot": 105 }, + + "right_ptr": { "xhot": 61, "yhot": 138 }, + + "right_tee": { "xhot": 100, "yhot": 138 }, + + "sb_down_arrow": { "xhot": 133, "yhot": 99 }, + + "sb_h_double_arrow": { "xhot": 100, "yhot": 100 }, + + "sb_left_arrow": { "xhot": 100, "yhot": 68 }, + + "sb_right_arrow": { "xhot": 100, "yhot": 138 }, + + "sb_up_arrow": { "xhot": 68, "yhot": 99 }, + + "sb_v_double_arrow": { "xhot": 100, "yhot": 100 }, + "top_side": { "xhot": 100, "yhot": 100 }, + "bottom_side": { "xhot": 100, "yhot": 100 }, + "top_tee": { "xhot": 61, "yhot": 99 }, + "ul_angle": { "xhot": 61, "yhot": 65 }, + "ur_angle": { "xhot": 61, "yhot": 138 }, + "vertical_text": { "xhot": 100, "yhot": 102 }, - "wait": { "xhot": 103, "yhot": 105 }, + + "wait": { "xhot": 104, "yhot": 105 }, + "left_ptr_watch": { "xhot": 104, "yhot": 105 }, + "wayland_cursor": { "xhot": 100, "yhot": 100 }, + "x_cursor": { "xhot": 100, "yhot": 100 }, + "xterm": { "xhot": 97, "yhot": 97 }, + "zoom_in": { "xhot": 76, "yhot": 78 }, + "zoom_out": { "xhot": 76, "yhot": 78 } } diff --git a/package.json b/package.json index 6ceacb9..26aeba2 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,12 @@ { "name": "render", - "version": "1.0.0", + "version": "1.0.1", "description": "Rendering cursor to .png", "main": "index.js", "scripts": { + "make": "yarn clean && yarn render && yarn build", + "clean": "rm -rf packages bitmaps", + "build": "python build.py", "render": "npx ts-node src/index.ts", "dev": "nodemon src/index.ts", "dev:debug": "nodemon --inspect src/index.ts", diff --git a/src/cursors.json b/src/cursors.json index 6ba94af..d173e5a 100644 --- a/src/cursors.json +++ b/src/cursors.json @@ -60,10 +60,10 @@ ], "animatedCursors": { "left_ptr_watch.svg": { - "frames": 53 + "frames": 62 }, "wait.svg": { - "frames": 53 + "frames": 62 } }, "animatedClip": { diff --git a/src/svg/hand1.svg b/src/svg/hand1.svg index 313019c..f699d5e 100644 --- a/src/svg/hand1.svg +++ b/src/svg/hand1.svg @@ -1,10 +1,9 @@ - + - + - - - - - + + + + diff --git a/src/svg/hand2.svg b/src/svg/hand2.svg index 6636074..c65a0c0 100644 --- a/src/svg/hand2.svg +++ b/src/svg/hand2.svg @@ -1,10 +1,9 @@ - + - - - - - + + + + diff --git a/src/svg/move.svg b/src/svg/move.svg index 5a65efe..a2d1bc1 100644 --- a/src/svg/move.svg +++ b/src/svg/move.svg @@ -1,10 +1,9 @@ - + - - - - - + + + + diff --git a/src/svg/wait.svg b/src/svg/wait.svg index e27ba0c..4c2f3ba 100644 --- a/src/svg/wait.svg +++ b/src/svg/wait.svg @@ -1,58 +1,78 @@ - - - + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + \ No newline at end of file