mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 20:17:13 +02:00
MouseSettings: Migrate to using SettingsWindow :^)
This commit is contained in:
Notes:
sideshowbarker
2024-07-18 00:58:24 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/f20b0403bc7 Pull-request: https://github.com/SerenityOS/serenity/pull/10979 Reviewed-by: https://github.com/linusg ✅
@@ -6,6 +6,7 @@
|
||||
|
||||
#include "ThemeWidget.h"
|
||||
|
||||
#include <AK/LexicalPath.h>
|
||||
#include <Applications/MouseSettings/ThemeWidgetGML.h>
|
||||
#include <LibCore/DirIterator.h>
|
||||
#include <LibGUI/Button.h>
|
||||
@@ -127,7 +128,7 @@ ThemeWidget::ThemeWidget()
|
||||
m_theme_name_box->set_text(m_theme_name);
|
||||
}
|
||||
|
||||
void ThemeWidget::update_window_server()
|
||||
void ThemeWidget::apply_settings()
|
||||
{
|
||||
GUI::WindowServerConnection::the().async_apply_cursor_theme(m_theme_name_box->text());
|
||||
}
|
||||
@@ -135,7 +136,6 @@ void ThemeWidget::update_window_server()
|
||||
void ThemeWidget::reset_default_values()
|
||||
{
|
||||
m_theme_name_box->set_text("Default");
|
||||
update_window_server();
|
||||
}
|
||||
|
||||
ThemeWidget::~ThemeWidget()
|
||||
|
||||
Reference in New Issue
Block a user