egui-theme-lerp
A simple library for egui to smoothly animate theme transitions by interpolating between any two visuals/themes. It works with any set of visuals, allowing transitions between light/dark modes or custom themes.
Installation
Add the following to your Cargo.toml
:
[]
= "0.1.0"
Usage
use ThemeAnimator;
use Visuals;
Run Demo
The demo is accessible online via this link
-
Clone the repository
git clone https://github.com/TheRustyPickle/egui-theme-lerp
-
Move into the demo folder
cd egui-theme-lerp/demo
- To run natively
cargo run --release
or
- To run in wasm locally install the required target with
rustup target add wasm32-unknown-unknown
- Install Trunk with
cargo install --locked trunk
trunk serve
to run and visithttp://127.0.0.1:8080/
- To run natively
Contributing
Contributions, issues, and feature requests are welcome! If you'd like to contribute, please open a pull request.
License
This project is licensed under the MIT License.