egui/crates
Emil Ernerfeldt a59f9ed279
Nicer looking text selection, especially in light mode (#5017)
* Closes https://github.com/emilk/egui/issues/4727

This changes the text selection painting from being painted on top of
the text, to being painted behind the text, but in front of any text
background. The result is much nicer looking text selection, especially
in light mode:

### The new selections
<img width="198" alt="Screenshot 2024-08-27 at 18 58 35"
src="https://github.com/user-attachments/assets/bd342946-299c-44ab-bc2d-2aa8ddbca8eb">
<img width="187" alt="Screenshot 2024-08-27 at 18 59 26"
src="https://github.com/user-attachments/assets/352bed32-5150-49b9-a9f9-c7679a0d30b2">


### What selections used to look like
<img width="143" alt="Screenshot 2024-08-27 at 19 03 08"
src="https://github.com/user-attachments/assets/f3cbd798-cfed-4ad4-aa3a-d7480efcfa3c">
<img width="143" alt="Screenshot 2024-08-27 at 19 03 23"
src="https://github.com/user-attachments/assets/9925d18d-da82-4a44-8a98-ea6857ecc14f">


### New selection of some text with a background
<img width="134" alt="Screenshot 2024-08-27 at 18 59 12"
src="https://github.com/user-attachments/assets/1d291d7f-efbd-4efd-b6d2-cd63c9fc4fa4">
2024-08-27 19:09:44 +02:00
..
ecolor Remove some debug asserts (#4826) 2024-07-15 11:20:22 +02:00
eframe Fix virtual keyboard on (mobile) web (#4855) 2024-08-27 09:42:35 +02:00
egui Nicer looking text selection, especially in light mode (#5017) 2024-08-27 19:09:44 +02:00
egui-wgpu Update to wgpu 22.1 (#4964) 2024-08-16 13:29:40 +02:00
egui-winit Fix CI (#5005) 2024-08-26 15:35:44 +02:00
egui_demo_app Update `web-sys` & `wasm-bindgen` (#4980) 2024-08-26 11:38:30 +02:00
egui_demo_lib Create a `UiBuilder` for building `Ui`s (#4969) 2024-08-26 08:51:18 +02:00
egui_extras Fix compilation of `egui_extras` without `serde` feature (#5014) 2024-08-27 11:38:33 +02:00
egui_glow Unpin & upgrade winit to 0.30.5 (#4939) 2024-08-09 09:15:14 +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 Nicer looking text selection, especially in light mode (#5017) 2024-08-27 19:09:44 +02:00
epaint_default_fonts Move default fonts to new crate `epaint_default_fonts` (#4853) 2024-07-31 09:50:02 +02:00