Base16 colour scheme template, for quickly setting colours #3772
IFcoltransG
started this conversation in
Show and tell
Replies: 1 comment 3 replies
-
Here's what I did to get this working (as it wasn't straightforward):
It seems best to go with the original Nice work, @IFcoltransG 🙂 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I found it hard to style my egui with a colour palette, because explicitly setting all the colours for widgets, windows and etc is quite low-level, and I need something more abstract and high-level for it to be convenient. Even something like egui-themer requires setting colours manually and has clutter for styling non-colour parts of egui.
So I've put together a hasty Base16 template so it's quicker to colourise egui if you already have 16 colours in the Base16 format. You'd use the template and a colour scheme to generate a Rust file, put it in your project, and then call a function on your
Style
to get a new one with the colours replaced.Feel free to PR or use the code to make new things (it's MIT-0). I haven't tested whether all the colour assignments look nice so you may see room for improvement.
Beta Was this translation helpful? Give feedback.
All reactions