A Multi-platform Cursor Theme Building Program
Project description
CursorCreate
A Multi-platform Cursor Theme Building Program.
CursorCreate allows you to build cursor themes for Windows, MacOS, and Linux. It supports reading cursors from svg, xcur, cur, ani, and all image formats supported by the Pillow imaging library. Also includes a GUI for easily modifying cursor projects.
Installing
Packaged Binaries:
If you would like to avoid going through the process of installing from source, pre-built binaries have been provided on the releases page. Just download the one for your platform, extract the zip file, and run the executable inside the extracted folder.
Releases Page: https://github.com/isaacrobinson2000/CursorCreate/releases
From PyPI:
CursorCreate is also avaibable on PyPI. To install it, exectute one of the commands below:
# For only command line support:
pip install CursorCreate
# For additional GUI support:
pip install CursorCreate[gui]
Once it is installed, it can be executed using the CursorCreate
command in the shell:
# Launch the GUI:
CursorCreate
# List all command line options:
CursorCreate --help
From Source:
To install CursorCreate from source, you will need the following dependencies:
- CairoSVG
- Pillow
- numpy
- PySide2
Once all of these dependencies are installed in your python environment (using a virtual environment is recommended) you can pull down this repository using a git clone as below:
git clone https://github.com/isaacrobinson2000/CursorCreate.git
If you are attempting to package CursorCreate for your platform, you will need PyInstaller installed to the virtual environment, and staticx installed on the global python environment if you plan on building on linux. Use the build scripts provided with this project, as the binary will not have all of the required files and dependencies packaged with it otherwise.
Example Theme
This program also comes with a template theme, but due to separate licensing the template theme is kept in a separate repository. Follow the link below to get the template theme:
https://github.com/isaacrobinson2000/CursorCreateTemplateTheme
How to Use
To launch the GUI, simply execute the CursorCreate entry file, as below:
# If you installed via prepackaged binary (Have to be in the same directory as the executable):
./CursorCreate
# If you installed via PyPI (pip install):
CursorCreate
# If you are running it from source:
python CursorCreate/cursorcreate.py
In the GUI, images can simply be dragged and dropped onto the cursor selection widgets in order to load them in. The hotspots and delays of animation frames can be modified by simply clicking on the cursor, as shown below:
To save a project, click the "Save Project" button, which will copy the source image files over to the user selected directory and generate a 'build.json' which tells CursorCreate how to turn the image source files into cursor themes for each platform.
For static images and SVGs, the animation frames are expected to be stored horizontally as squares side by side.
Note that CursorCreate is also capable of doing several actions from the command line, including building cursor themes. To see all the supported command line operations, execute the command below:
# If you installed via prepackaged binary (Have to be in the same directory as the executable):
./CursorCreate --help
# If you installed via PyPI (pip install):
CursorCreate --help
# If you are running it from source:
python CursorCreate/cursorcreate.py --help
Bugs/Issues
This software is currently in beta, and therefore may have some bugs. If you run into any issues, feel free to open an issue on the GitHub issues page.
Future Goals
- Create a setup.py for CursorCreate
- Add progress indicators when building cursors or performing any other action.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file CursorCreate-1.3.1.tar.gz
.
File metadata
- Download URL: CursorCreate-1.3.1.tar.gz
- Upload date:
- Size: 36.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c62d4715e9bb3fe666633dd696353ff788104a72ba561d2ccf3bc11903a155ef |
|
MD5 | 1aa2a2c9c438f8342b98bfdfd9c50d60 |
|
BLAKE2b-256 | 8f8c83293301e822569123eeee708ae10eb9ba963885d36aabc7f83f178837f9 |
File details
Details for the file CursorCreate-1.3.1-py3-none-any.whl
.
File metadata
- Download URL: CursorCreate-1.3.1-py3-none-any.whl
- Upload date:
- Size: 56.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c91b1e8f8e694443d950d9fc624767ae3aa598463f8dccf892e08ddbe4f78bf1 |
|
MD5 | c381f089b615fbf65acfd80b0e73c331 |
|
BLAKE2b-256 | ad4b24f64856a910e27a736ba725794d062fb42c8c6110c3ab011f8a116dab3d |