summaryrefslogtreecommitdiff
path: root/Userland/Applications/DisplaySettings/main.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-05-21 18:55:30 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-21 20:15:51 +0200
commit8ac0d4abe19d6ad8428cea24ec22af5745c1161d (patch)
tree5b3844195e0b8530a2265aa764db9adc786af4e0 /Userland/Applications/DisplaySettings/main.cpp
parentc778130d638f8787e611b8092082ea2c1dc9681f (diff)
downloadserenity-8ac0d4abe19d6ad8428cea24ec22af5745c1161d.zip
DisplaySettings: Add "Fonts" tab
This allows you to view, edit, and apply changes to the system fonts.
Diffstat (limited to 'Userland/Applications/DisplaySettings/main.cpp')
-rw-r--r--Userland/Applications/DisplaySettings/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Applications/DisplaySettings/main.cpp b/Userland/Applications/DisplaySettings/main.cpp
index 963a6a909b..e05b2eb340 100644
--- a/Userland/Applications/DisplaySettings/main.cpp
+++ b/Userland/Applications/DisplaySettings/main.cpp
@@ -6,6 +6,7 @@
*/
#include "BackgroundSettingsWidget.h"
+#include "FontSettingsWidget.h"
#include "MonitorSettingsWidget.h"
#include <LibGUI/Action.h>
#include <LibGUI/Application.h>
@@ -49,6 +50,7 @@ int main(int argc, char** argv)
auto& tab_widget = main_widget.add<GUI::TabWidget>();
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");
auto& button_container = main_widget.add<GUI::Widget>();
@@ -62,6 +64,7 @@ int main(int argc, char** argv)
ok_button.on_click = [&] {
background_settings_widget.apply_settings();
monitor_settings_widget.apply_settings();
+ font_settings_widget.apply_settings();
app->quit();
};
@@ -76,6 +79,7 @@ int main(int argc, char** argv)
apply_button.on_click = [&] {
background_settings_widget.apply_settings();
monitor_settings_widget.apply_settings();
+ font_settings_widget.apply_settings();
};
window->set_icon(app_icon.bitmap_for_size(16));