egui/crates
Ruben 977749b0e0
eframe: Automatically change theme when system dark/light mode changes (#2750)
* React to ThemeChanged event from winit

* React to theme change using media query change event in WASM

* Share conversion from bool -> Theme

* Suppress too_many_arguments warning

* Document limitations of automatically following the dark vs light mode preference

* Simplify expression

* Conditionally compile code to prevent unused item warnings

* Remove needless borrow

* Remove another needless borrow

* Make associated functions to standalone

* Request repaint after theme has changed

* Only install event listener when `follow_system_theme` is enabled

* Remove dark-light feature gate

* Detect system theme using winit

* Update documentation

* Fix typos

* fix warning about unused argument

---------

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2023-03-29 16:39:30 +02:00
..
ecolor Add badges to all crates' README.md 2023-02-12 18:08:13 +01:00
eframe eframe: Automatically change theme when system dark/light mode changes (#2750) 2023-03-29 16:39:30 +02:00
egui Fix UI `data()` read mutability (#2742) 2023-03-29 15:59:24 +02:00
egui-wgpu eframe: capture a screenshot using `Frame::request_screenshot` 2023-03-29 16:34:22 +02:00
egui-winit Only enable instant/wasm-bindgen when building for wasm32 architecture (#2808) 2023-03-29 14:59:45 +02:00
egui_demo_app Release 0.21.0 - Deadlock fix and winit update 2023-02-08 20:11:21 +01:00
egui_demo_lib Fix resizable columns option in the table demo (#2780) 2023-03-29 15:53:56 +02:00
egui_extras Add #![forbid(unsafe_code)] where unsafe isn't needed (#2773) 2023-03-29 14:39:51 +02:00
egui_glium Add #![forbid(unsafe_code)] where unsafe isn't needed (#2773) 2023-03-29 14:39:51 +02:00
egui_glow eframe: capture a screenshot using `Frame::request_screenshot` 2023-03-29 16:34:22 +02:00
egui_web Fix broken GitHub source links due to #1940 2022-08-20 15:18:02 +02:00
emath Add #![forbid(unsafe_code)] where unsafe isn't needed (#2773) 2023-03-29 14:39:51 +02:00
epaint eframe: capture a screenshot using `Frame::request_screenshot` 2023-03-29 16:34:22 +02:00