mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-20 00:08:55 +00:00
DisplaySettings: Show screen numbers when showing the Monitors tab
This will be helpful once we allow the user to rearrange the displays.
This commit is contained in:
parent
41859ad3fe
commit
8b26debda1
Notes:
sideshowbarker
2024-07-18 11:31:03 +09:00
Author: https://github.com/tomuta
Commit: 8b26debda1
Pull-request: https://github.com/SerenityOS/serenity/pull/8174
Reviewed-by: https://github.com/MaxWipfli
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/gunnarbeutner
3 changed files with 20 additions and 0 deletions
|
@ -19,7 +19,14 @@ class MonitorSettingsWidget : public GUI::Widget {
|
|||
C_OBJECT(MonitorSettingsWidget);
|
||||
|
||||
public:
|
||||
~MonitorSettingsWidget() override
|
||||
{
|
||||
if (m_showing_screen_numbers)
|
||||
show_screen_numbers(false);
|
||||
}
|
||||
|
||||
void apply_settings();
|
||||
void show_screen_numbers(bool);
|
||||
|
||||
private:
|
||||
MonitorSettingsWidget();
|
||||
|
@ -35,6 +42,8 @@ private:
|
|||
RefPtr<GUI::ComboBox> m_resolution_combo;
|
||||
RefPtr<GUI::RadioButton> m_display_scale_radio_1x;
|
||||
RefPtr<GUI::RadioButton> m_display_scale_radio_2x;
|
||||
|
||||
bool m_showing_screen_numbers { false };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue