egui/crates
Tau Gärtli 2dac4a4fc6
Follow the System Theme in egui (#4860)
* Some initial progress towards #4490

This PR just moves `Theme` and the "follow system theme" settings to
egui and adds `RawInput.system_theme`.
A follow-up PR can then introduce the two separate `dark_mode_style` and
`light_mode_style` fields on `Options`.


<!--
Please read the "Making a PR" section of
[`CONTRIBUTING.md`](https://github.com/emilk/egui/blob/master/CONTRIBUTING.md)
before opening a Pull Request!

* If applicable, add a screenshot or gif.
* If it is a non-trivial addition, consider adding a demo for it to
`egui_demo_lib`, or a new example.
* Do NOT open PR:s from your `master` branch, as that makes it hard for
maintainers to test and add commits to your PR.
* Remember to run `cargo fmt` and `cargo clippy`.
* Open the PR as a draft until you have self-reviewed it and run
`./scripts/check.sh`.
* When you have addressed a PR comment, mark it as resolved.

Please be patient! I will review your PR, but my time is limited!
-->


* [x] I have followed the instructions in the PR template


### Breaking changes

The options `follow_system_theme` and `default_theme` has been moved
from `eframe` into `egui::Options`, settable with `ctx.options_mut`

---------

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2024-08-06 20:17:51 +02:00
..
ecolor Remove some debug asserts (#4826) 2024-07-15 11:20:22 +02:00
eframe Follow the System Theme in egui (#4860) 2024-08-06 20:17:51 +02:00
egui Follow the System Theme in egui (#4860) 2024-08-06 20:17:51 +02:00
egui-wgpu Upgrade winit to 0.30.2 (#4849) 2024-07-31 09:43:16 +02:00
egui-winit Follow the System Theme in egui (#4860) 2024-08-06 20:17:51 +02:00
egui_demo_app upgrade to wgpu 22.0.0 (#4847) 2024-07-19 10:05:56 +02:00
egui_demo_lib Move `egui_plot` to its own repo (#4828) 2024-07-15 18:45:19 +02:00
egui_extras Return `ScrollAreaOutput` from `Table::body` (#4829) 2024-07-15 20:49:41 +02:00
egui_glow Follow the System Theme in egui (#4860) 2024-08-06 20:17:51 +02:00
egui_plot Move `egui_plot` to its own repo (#4828) 2024-07-15 18:45:19 +02:00
egui_web Fix typos (#2866) 2023-04-18 15:52:45 +02:00
emath Add `Rect::scale_from_center` (#4673) 2024-07-15 19:54:35 +02:00
epaint Move default fonts to new crate `epaint_default_fonts` (#4853) 2024-07-31 09:50:02 +02:00
epaint_default_fonts Move default fonts to new crate `epaint_default_fonts` (#4853) 2024-07-31 09:50:02 +02:00