mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 03:29:49 +00:00
MouseSettings: Migrate to using SettingsWindow :^)
This commit is contained in:
parent
fca7924437
commit
f20b0403bc
Notes:
sideshowbarker
2024-07-18 00:58:24 +09:00
Author: https://github.com/AtkinsSJ
Commit: f20b0403bc
Pull-request: https://github.com/SerenityOS/serenity/pull/10979
Reviewed-by: https://github.com/linusg ✅
8 changed files with 21 additions and 118 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue