mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:48:11 +00:00
MouseSettings: Migrate to using SettingsWindow :^)
This commit is contained in:
parent
fca7924437
commit
f20b0403bc
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