mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:17:35 +00:00
DisplaySettings: Add ComboBox to allow selecting other screens
This enables changing monitor settings for each monitor individually. In the event that changing a resolution causes screens to overlap we now try to disperse the screens, although the algorithm currently implemented may result in some rather unexpected layouts in certain cases. We can still improve this logic, and eventually we're going to have a widget where the screens can be arranged as desired.
This commit is contained in:
parent
dbb9f891fb
commit
1b7e2eb970
3 changed files with 59 additions and 7 deletions
|
@ -34,11 +34,16 @@ private:
|
|||
void create_frame();
|
||||
void create_resolution_list();
|
||||
void load_current_settings();
|
||||
void selected_screen_index_changed();
|
||||
|
||||
size_t m_selected_screen_index { 0 };
|
||||
|
||||
WindowServer::ScreenLayout m_screen_layout;
|
||||
Vector<String> m_screens;
|
||||
Vector<Gfx::IntSize> m_resolutions;
|
||||
|
||||
RefPtr<DisplaySettings::MonitorWidget> m_monitor_widget;
|
||||
RefPtr<GUI::ComboBox> m_screen_combo;
|
||||
RefPtr<GUI::ComboBox> m_resolution_combo;
|
||||
RefPtr<GUI::RadioButton> m_display_scale_radio_1x;
|
||||
RefPtr<GUI::RadioButton> m_display_scale_radio_2x;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue