1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:37:35 +00:00

BrowserSettings: Use new GML compiler

This commit is contained in:
kleines Filmröllchen 2023-05-26 13:12:24 +02:00 committed by Sam Atkins
parent 6f554af9c5
commit 182126dfda
11 changed files with 59 additions and 32 deletions

View file

@ -6,7 +6,6 @@
*/
#include "BrowserSettingsWidget.h"
#include <Applications/BrowserSettings/BrowserSettingsWidgetGML.h>
#include <Applications/BrowserSettings/Defaults.h>
#include <LibConfig/Client.h>
#include <LibGUI/Label.h>
@ -14,6 +13,8 @@
#include <LibGUI/Model.h>
#include <LibWebView/SearchEngine.h>
namespace BrowserSettings {
struct ColorScheme {
ByteString title;
ByteString setting_value;
@ -96,9 +97,8 @@ private:
ErrorOr<NonnullRefPtr<BrowserSettingsWidget>> BrowserSettingsWidget::create()
{
auto widget = TRY(try_make_ref_counted<BrowserSettingsWidget>());
auto widget = TRY(BrowserSettingsWidget::try_create());
TRY(widget->load_from_gml(browser_settings_widget_gml));
TRY(widget->setup());
return widget;
@ -251,3 +251,5 @@ void BrowserSettingsWidget::reset_default_values()
m_auto_close_download_windows_checkbox->set_checked(Browser::default_close_download_widget_on_finish);
set_search_engine_url(WebView::default_search_engine().query_url);
}
}