Crates.io | egui-aesthetix-lj |
lib.rs | egui-aesthetix-lj |
version | 0.2.4 |
source | src |
created_at | 2024-08-07 18:27:52.109833 |
updated_at | 2024-08-07 18:27:52.109833 |
description | A Uniform and programmatic approach to theming Egui applications with some enhancements |
homepage | https://github.com/ljoeckel/egui-aesthetix-lj.git |
repository | https://github.com/ljoeckel/egui-aesthetix-lj.git |
max_upload_size | |
id | 1328678 |
size | 215,180 |
A Uniform and Programmatic approach to theming Egui Applications
This library is based on Egui-Aesthetix with some minor changes to fit my adaption of egui-dashboard which is used for my project 'egui-dashboard-duplicate-file-finder' (https://github.com/ljoeckel/egui-dashboard-duplicate-file-finder)
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.
The library ships with the following themes if default features are left on. These should look great on Mac, Windows and Linux alike.
Standard Dark
Standard Light
There are plenty of other themes that can be specified through features
Carl Dark
Nord (Light and Dark)
Tokyo Night (Dark and Storm)
Catpuccin
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"] }
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!!
PRs accepted.
Small note: If editing the README, please conform to the standard-readme specification.
MIT © 2023 Matt Williams For changes MIT © 2023 Lothar Joeckel