blob: 3ec7a9fb28bd38a915804cbe517d616a1a75e7d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
/*
* Copyright (c) 2022, MacDue <macdue@dueutil.tech>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/DeprecatedString.h>
#include <AK/Vector.h>
#include <LibGUI/ComboBox.h>
#include <LibGUI/SettingsWindow.h>
#include <LibGfx/SystemTheme.h>
#include "ThemePreviewWidget.h"
namespace DisplaySettings {
class ThemesSettingsWidget final : public GUI::SettingsWindow::Tab {
C_OBJECT(ThemesSettingsWidget);
public:
virtual void apply_settings() override;
private:
Vector<Gfx::SystemThemeMetaData> m_themes;
Vector<DeprecatedString> m_theme_names;
RefPtr<GUI::ComboBox> m_themes_combo;
RefPtr<ThemePreviewWidget> m_theme_preview;
Gfx::SystemThemeMetaData const* m_selected_theme { nullptr };
RefPtr<GUI::Button> m_cursor_themes_button;
bool& m_background_settings_changed;
ThemesSettingsWidget(bool& background_settings_changed);
};
}
|