#egui #theming #themes #applications #uniform #programmatic #traits

egui-aesthetix

A Uniform and programmatic approach to theming Egui applications

4 releases

new 0.2.3 Apr 24, 2024
0.2.2 Feb 22, 2024
0.2.1 Feb 22, 2024
0.2.0 Oct 22, 2023
0.1.0 Oct 21, 2023

#239 in GUI

Download history 143/week @ 2024-02-16 138/week @ 2024-02-23 18/week @ 2024-03-01 15/week @ 2024-03-08 7/week @ 2024-03-15 115/week @ 2024-03-29 79/week @ 2024-04-05 22/week @ 2024-04-12 146/week @ 2024-04-19

362 downloads per month

Custom license

190KB
712 lines

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. Nord (Light and Dark)

  3. Tokyo Night (Dark and Storm)

  4. Catpuccin

    • 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

Nord Dark

Nord Dark

Nord Light

Nord Light

Tokyo Night

Tokyo Night

Tokyo Night Sorm

Tokyo Night Storm

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.3"

Only includes the Aesthetix trait, no themes will be included

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

Include all the themes

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

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

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

Only include nord themes

egui-aesthetix = { version = "0.2.3", features = ["nord"] }

Only include tokyo night themes

egui-aesthetix = { version = "0.2.3", features = ["tokyo_night"] }

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

Dependencies

~4.5–9.5MB
~78K SLoC