From d822fbe05a224e495e376e77dc240badca9b7b14 Mon Sep 17 00:00:00 2001
From: Abdulkaiz Khatri <24286590+ful1e5@users.noreply.github.com>
Date: Mon, 1 Jul 2024 09:48:31 +0530
Subject: [PATCH] fix: Support `pin` and `person` windows cursors
Related to #24
---
CHANGELOG.md | 11 +++++++++--
configs/win_lg.build.toml | 12 ++++++++++++
configs/win_rg.build.toml | 12 ++++++++++++
configs/win_xl.build.toml | 12 ++++++++++++
svg/person.svg | 31 +++++++++++++++++++++++++++++++
svg/pin.svg | 31 +++++++++++++++++++++++++++++++
6 files changed, 107 insertions(+), 2 deletions(-)
create mode 100644 svg/person.svg
create mode 100644 svg/pin.svg
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e75b36c..6d9c1cd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -20,11 +20,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### What's New?
- Support `256px` cursors
+- Support `256px` cursors
+- feat: Added `Person` and `Pin` cursors for Windows
+- Official Distributing `16` and `20` XCursors #24
+- Multi Resolution Windows Cursors
+- Attach version meta-data inside cursor packages
+- Using [cbmp v1.1.1](https://github.com/ful1e5/cbmp/tree/v1.1.1) for rendering cursor bitmaps.
### Changes
-- De-framed animated cursors
-- Resigned the wait cursor with round background #23
+- build script renamed (`release.sh` -> `build.sh`)
+- Use 'xz' for better compression in `build.sh` script
+- De-framed animated cursors to static SVG files
## [v2.0.0] - 14 October 2021
diff --git a/configs/win_lg.build.toml b/configs/win_lg.build.toml
index c36798b..76184ac 100644
--- a/configs/win_lg.build.toml
+++ b/configs/win_lg.build.toml
@@ -122,3 +122,15 @@ png = 'zoom-out.png'
x_hotspot = 109
y_hotspot = 103
win_name = 'Zoom-out'
+
+[cursors.person]
+png = 'person.png'
+x_hotspot = 69
+y_hotspot = 30
+win_name = 'Person'
+
+[cursors.pin]
+png = 'pin.png'
+x_hotspot = 69
+y_hotspot = 30
+win_name = 'Pin'
diff --git a/configs/win_rg.build.toml b/configs/win_rg.build.toml
index 13e2596..6828050 100644
--- a/configs/win_rg.build.toml
+++ b/configs/win_rg.build.toml
@@ -122,3 +122,15 @@ png = 'zoom-out.png'
x_hotspot = 109
y_hotspot = 103
win_name = 'Zoom-out'
+
+[cursors.person]
+png = 'person.png'
+x_hotspot = 69
+y_hotspot = 30
+win_name = 'Person'
+
+[cursors.pin]
+png = 'pin.png'
+x_hotspot = 69
+y_hotspot = 30
+win_name = 'Pin'
diff --git a/configs/win_xl.build.toml b/configs/win_xl.build.toml
index e74a4fb..1c368c9 100644
--- a/configs/win_xl.build.toml
+++ b/configs/win_xl.build.toml
@@ -122,3 +122,15 @@ png = 'zoom-out.png'
x_hotspot = 109
y_hotspot = 103
win_name = 'Zoom-out'
+
+[cursors.person]
+png = 'person.png'
+x_hotspot = 69
+y_hotspot = 30
+win_name = 'Person'
+
+[cursors.pin]
+png = 'pin.png'
+x_hotspot = 69
+y_hotspot = 30
+win_name = 'Pin'
diff --git a/svg/person.svg b/svg/person.svg
new file mode 100644
index 0000000..18955f8
--- /dev/null
+++ b/svg/person.svg
@@ -0,0 +1,31 @@
+
diff --git a/svg/pin.svg b/svg/pin.svg
new file mode 100644
index 0000000..705f63c
--- /dev/null
+++ b/svg/pin.svg
@@ -0,0 +1,31 @@
+