Skip to content

Commit a98cdf4

Browse files
committed
Save settings for my screen
1 parent 3597083 commit a98cdf4

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

content/rust/crate_egui.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title = "Crate egui"
33
date = 2024-09-05
44
extra = { series = "Rust" }
55
taxonomies = { tags = ["Rust"] }
6-
updated = 2025-04-26
6+
updated = 2025-09-03
77
+++
88

99
# Get window size
@@ -30,3 +30,24 @@ if ui.available_height() > 0.0 {
3030
ui.allocate_space(ui.available_size());
3131
}
3232
```
33+
34+
# Accommodate dark monitors
35+
36+
<details>
37+
<summary>See back story</summary>
38+
39+
I use the screen a lot and don't like my main screen very bright or very high contrast.
40+
One might even say I've set it too low.
41+
Unfortunately, that means that the default dark theme for egui is extremely low contrast on my screen and thus I need to change from the defaults.
42+
I keep forgetting what I have to change so I'm going to make notes here to make it easier for next time.
43+
44+
</details>
45+
46+
Using the built in settings page (needs to exposed by application, like it is on <https://egui.rs> in the Backend window).
47+
48+
`Style` -> `Visuals` -> `Background colors`
49+
50+
```
51+
Windows = 64,64,64
52+
Panels = 60,60,60
53+
```

0 commit comments

Comments
 (0)