Skip to content
singularityos-labPublic

About

The icon format of Sinty OS: layered SVG sources compiled to bitmaps

Resources

Contributing

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

Iride

The icon format of Sinty OS. An icon is written as flat SVG layers with a manifest for shadows, rims and small-size retouches, and compiled into a .iride file of bitmaps for each size in pixels. An icon can also carry a short motion of its own pieces that ends on the still icon.

Drawing happens at build time with GtkSvg, the renderer of the toolkit, so a device does not need to support SVG filters to show an icon.

Status

In development, the format can change without notice. SIT, the toolkit, shows an .iride file installed next to the SVG of the same name and libsingularity plays its motion. Light, dark and accent variants are not implemented yet.

Components

  • cmd/iride/: the compiler, build, check and export to a freedesktop icon theme
  • libiride/: C ABI reader and motion compositor with header and Vala binding, no dependencies, also builds for wasm32
  • pixbuf/: gdk-pixbuf loader and MIME type, for thumbnails and previews of .iride files
  • testdata/: a source icon for trying the compiler

Usage

iride build testdata/ring ring.iride
iride check ring.iride
iride export ring.iride icons/hicolor apps

The source and file layouts are in SPEC.md.

Build

Zig 0.16. The compiler also needs GTK 4.22 or later and Cairo, -Dtool=false builds the library alone, -Dpixbuf=true adds the gdk-pixbuf loader.

zig build
zig build test
zig build -Dtool=false

License

GPL-3.0-only, see LICENSE. Contributions under the CLA.

Use of Generative AI

Maintainers may use generative AI tools as assistants while working on iride. Non-trivial assisted commits disclose the tool, model, and scope of the work.

AI tools may assist with code comments, documentation, repetitive code, and issue triage. Maintainers make project decisions and review every assisted change before it is merged.

Use these trailers for non-trivial assisted commits:

Assisted-by: <tool>:<model-version>
AI-Scope: <what the tool generated and the prompt or a short prompt summary>

Single-line completions, renames, and formatting changes do not need trailers.

Coding agents must also follow AGENTS.md before changing files, creating commits, or opening pull requests.

About

The icon format of Sinty OS: layered SVG sources compiled to bitmaps

Resources

Contributing

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages