mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 16:16:43 +00:00
DisplaySettings: Add an Effects tab
Effects tab provides the UI for setting SystemEffects. DisplaySettings is getting a bit crowded and might need a re-org at some point, but this seems like a good home for effects while the settings mature.
This commit is contained in:
parent
8b5280b5dd
commit
1d445356b6
Notes:
sideshowbarker
2024-07-17 08:21:25 +09:00
Author: https://github.com/thankyouverycool
Commit: 1d445356b6
Pull-request: https://github.com/SerenityOS/serenity/pull/14805
5 changed files with 322 additions and 1 deletions
|
@ -0,0 +1,36 @@
|
|||
/*
|
||||
* Copyright (c) 2022, the SerenityOS developers.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibGUI/SettingsWindow.h>
|
||||
#include <LibGUI/SystemEffects.h>
|
||||
|
||||
namespace GUI {
|
||||
|
||||
namespace DisplaySettings {
|
||||
|
||||
class EffectsSettingsWidget final : public SettingsWindow::Tab {
|
||||
C_OBJECT(EffectsSettingsWidget);
|
||||
|
||||
public:
|
||||
virtual ~EffectsSettingsWidget() override = default;
|
||||
|
||||
virtual void apply_settings() override;
|
||||
|
||||
private:
|
||||
EffectsSettingsWidget();
|
||||
|
||||
ErrorOr<void> load_settings();
|
||||
|
||||
SystemEffects m_system_effects;
|
||||
Vector<String> m_geometry_list;
|
||||
RefPtr<ComboBox> m_geometry_combobox;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue