Giter Site home page Giter Site logo

egui-aesthetix's Introduction

Egui-Aesthetix


Crates.io Crates.io docs.rs Crates.io

A Uniform and Programmatic approach to theming Egui Applications

Table of Contents

About

This library is my answer to theming egui. There are other libraries, and approaches. I like this method because it is trait based, so many themes could be added to this crate for everyone to use.

Default themes

The library ships with the following themes if default features are left on. These should look great on Mac, Windows and Linux alike.

  1. Standard Dark

  2. Standard Light

Other themes

There are plenty of other themes that can be specified through features

  1. Carl Dark

  2. Gruvbox (Light and Dark)

    • TODO
  3. Nord (Light and Dark)

    • TODO
  4. Catppuccin (All versions)

    • TODO

Checkout the results

Screen Shots

Standard Dark theme on Kde Plasma

Standard Dark

Standard Light theme on Kde Plasma

Standard Light

Carl Dark theme Kde on Plasma

Standard Light

Install

The library is very flexible and doesn't force you to include themes you don't want.

This includes default features which is the Aesthetix trait, and the StandardDark and StandardLight themes

egui-aesthetix = "0.2.2"

Only includes the Aesthetix trait, no themes will be included

egui-aesthetix = { version = "0.2.2", default-features = false }

Include all the themes

egui-aesthetix = { version = "0.2.2", features = ["all_themes"] }

Only include standard themes and a specified theme (here carl is used as the specified theme)

egui-aesthetix = { version = "0.2.2", features = ["standard", "carl" ] }

Usage

Here is the dashboard template from the above screenshots using this crate for its themes. The code is straight forward to read. Reading the egui-aesthetix source code and the dashboard code should give you more than enough information and context to use it in your own applications as well as implement your own custom themes using the Aesthetix trait. Happy Theming!!

Maintainers

@thebashpotato

PRs accepted.

Small note: If editing the README, please conform to the standard-readme specification.

License

MIT © 2023 Matt Williams

egui-aesthetix's People

Contributors

christopherrabotin avatar thebashpotato avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.