summaryrefslogtreecommitdiff
path: root/Userland/Applications/DisplaySettings/main.cpp
diff options
context:
space:
mode:
authorTom <tomut@yahoo.com>2021-06-20 13:24:40 -0600
committerAndreas Kling <kling@serenityos.org>2021-06-25 20:38:13 +0200
commit8b26debda1e486532f068d0916512bbb198d22bb (patch)
tree2a663480ab0ac84a70fc87e13d023b156b5314bd /Userland/Applications/DisplaySettings/main.cpp
parent41859ad3feda56463ce0f73b898714ae17670ca6 (diff)
downloadserenity-8b26debda1e486532f068d0916512bbb198d22bb.zip
DisplaySettings: Show screen numbers when showing the Monitors tab
This will be helpful once we allow the user to rearrange the displays.
Diffstat (limited to 'Userland/Applications/DisplaySettings/main.cpp')
-rw-r--r--Userland/Applications/DisplaySettings/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Applications/DisplaySettings/main.cpp b/Userland/Applications/DisplaySettings/main.cpp
index 554f7173d9..4a3a6a8cdb 100644
--- a/Userland/Applications/DisplaySettings/main.cpp
+++ b/Userland/Applications/DisplaySettings/main.cpp
@@ -52,6 +52,9 @@ int main(int argc, char** argv)
auto& background_settings_widget = tab_widget.add_tab<DisplaySettings::BackgroundSettingsWidget>("Background");
auto& font_settings_widget = tab_widget.add_tab<DisplaySettings::FontSettingsWidget>("Fonts");
auto& monitor_settings_widget = tab_widget.add_tab<DisplaySettings::MonitorSettingsWidget>("Monitor");
+ tab_widget.on_change = [&](auto& widget) {
+ monitor_settings_widget.show_screen_numbers(&widget == &monitor_settings_widget);
+ };
auto& button_container = main_widget.add<GUI::Widget>();
button_container.set_shrink_to_fit(true);