cru

Version, currently master branch1 version
  • master branchlatestMar 30, 2023

github.com/watzon/cru

LibUI based GUI framework for Crystal

26 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  cru:
    github: watzon/cru
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
0.34.0
License
MIT
Author
Chris Watzon <cawatson1993@gmail.com>

Dependencies

Runtime Dependencies

  • cute*github: Papierkorb/cute, branch: master
  • libui*path: ../libui.cr

README

# Cru

Cru is a basic UI framework based off of [Fusion/libui](https://github.com/Fusion/libui.cr) and [libui](https://github.com/andlabs/libui). Right now it's pretty barebones, and libui itself is still "mid alpha" software, but I hope it can eventually become a pretty decent GUI framework for Crystal.

<div align="center">
  <img src="./static/control_gallery_screenshot.png" alt="screenshot">
</div>

## Installation

1. Install [libui](https://github.com/andlabs/libui)

2. Add the dependency to your `shard.yml`:

   ```yaml
   dependencies:
     cru:
       github: watzon/cru
   ```

3. Run `shards install`

## Usage

Check the [control_gallery](./examples/control_gallery.cr) example in the /examples folder.

## Contributing

1. Fork it (<https://github.com/watzon/cru/fork>)
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request

## Contributors

- [Chris Watzon](https://github.com/watzon) - creator and maintainer