ladybird/Userland/Applications/DisplaySettings
Nico Weber f37f281f89 DisplaySettings: Add UI for switching the scale factor
For now, only support 1x and 2x scale.

I tried doing something "smarter" first where the UI would try
to keep the physical resolution constant when toggling between
1x and 2x, but many of the smaller 1x resolutions map to 2x
logical resolutions that Compositor rejects (e.g. 1024x768 becomes
512x384, which is less than the minimum 640x480 that Compositor
wants) and it felt complicated and overly magical.

So this instead just gives you a 1x/2x toggle and a dropdown
with logical (!) resolutions. That is, 800x600 @ 2x gives you
a physical resolution of 1600x1200.

If we don't like this after trying it for a while, we can change
the UI then.
2021-01-17 08:06:12 +01:00
..
CMakeLists.txt Applications: Move to Userland/Applications/ 2021-01-12 12:05:23 +01:00
DisplaySettings.cpp DisplaySettings: Add UI for switching the scale factor 2021-01-17 08:06:12 +01:00
DisplaySettings.h DisplaySettings: Add UI for switching the scale factor 2021-01-17 08:06:12 +01:00
DisplaySettingsWindow.gml DisplaySettings: Add UI for switching the scale factor 2021-01-17 08:06:12 +01:00
main.cpp Everywhere: Drop "shared_buffer" in most GUI programs, pledge "recvfd" 2021-01-16 19:30:32 +01:00
MonitorWidget.cpp DisplaySettings: Add UI for switching the scale factor 2021-01-17 08:06:12 +01:00
MonitorWidget.h DisplaySettings: Add UI for switching the scale factor 2021-01-17 08:06:12 +01:00