This crate reads the current system theme and gives you an egui
style to use in your program to hopefully make it look more cohesive with other apps for your user's platform.
If the user is using KDE Plasma, it will read $HOME/.config/kdeglobals.
Otherwise, it will try to read the GTK4 or GTK3 theme via $HOME/.config/gtk-X.0/settings.ini. This is more limited, as I had to partially write a css interpreter to get it working, if your theme doesn't work, make an issue!
Uses GetSysColor.
NOTE: Some modern versions of Windows don't update this with the user's dark mode/accent color preferences for some reason, so if you are targeting windows, you should probably have an option to use the default egui
theme.
Uses ojbc to get the system accent color and the others are hard coded.
With the dynamic-mac-colors feature swift is used to get the ui colors this should suport high contrast mode.