pop-icon-theme/src/cursors
Adrian Garnier b340d53411 docs(cursors): Fixed the csscursors.html link. 2023-06-23 15:34:00 -06:00
..
bitmaps chore(render): render updated cursors 2022-08-01 19:45:19 -06:00
templates fix(cursors): add cursors to master rendering script and update 2022-08-01 19:45:18 -06:00
test fix: Update cursor theme to current Yaru version (#81) 2021-03-24 10:17:58 -07:00
CURSORNAMES.md fix: Update cursor theme to current Yaru version (#81) 2021-03-24 10:17:58 -07:00
README.md docs(cursors): Fixed the csscursors.html link. 2023-06-23 15:34:00 -06:00
anicursorgen.py fix(cursors): add cursors to master rendering script and update 2022-08-01 19:45:18 -06:00
render-cursors.py fix(cursors): add cursors to master rendering script and update 2022-08-01 19:45:18 -06:00
source-cursors.svg fix(cursors): udpate artwork with Pop theming 2022-08-01 19:45:18 -06:00
thumbnail.png fix(cursors): add cursors to master rendering script and update 2022-08-01 19:45:18 -06:00
w32-make.sh fix(cursors): add cursors to master rendering script and update 2022-08-01 19:45:18 -06:00
x11-make.sh fix(cursors): add cursors to master rendering script and update 2022-08-01 19:45:18 -06:00

README.md

Cursor Theme Source

  • Do not edit cursor assets directly (i.e. those in the "Pop" folder)!
  • To modify the cursors, edit source SVG file found in this directory and render them with the appropriate script.
  • To edit the cursors you will need inkscape installed and to build and the render the cursor set you'll need python-pil and x11-apps installed.

Render Scripts

For simplified development, has various scripts to render and build the cursor set are provided:

  • master-render.py will render any missing assets in the entire theme. To re-render just cursors, use ./master-render.py -cx

  • render-cursors.py will render the cursor PNG assets into bitmaps at the appropriate sizes; run by passing the source filename to it: ./render-cursors.py source-cursors.svg Inside the Bitmaps folder you'll find folders containing the rendered .png files (24x24, 32x32,...). These must be removed, but the .in files are needed for the script to run.

  • x11-make.sh builds the cursor assets into a Xcursor set and renders them to /icons/Yaru/cursors/. These files have no extension.

  • w32-make.sh builds the cursor assets into a Windows cursor set and renders them to /icons/Yaru/cursors/. These files have the .curextension.

Cursor SVG source

The source SVG for the cursors is laid out in such a way to make editing/creating cursors simple, with a variety of layers:

  • hotspots shows the exact point where the cursor is active within the 24x24 region (hidden by default)
  • slices is read by the render script and each 24x24 square had an ID that is the cursor file name (hidden by default)
  • cursors pretty self-explanatory, these are the drawn cursors
  • labels are just labels

Both the busy cursors (the large and pointer versions) require 60 different assets to achieve a 60 FPS animation when compiled (each variant is a 6° rotation of the busy indicator).

CSS Cursors test

The csscursors.html let's you see your browser's cursor style and where the HOTSPOT is simply by hover over the boxes containing the CSS cursor name. In CURSORNAMES.md you'll find the naming specification and a description of the cursors.