summaryrefslogtreecommitdiff
path: root/Userland/Applications/DisplaySettings/BackgroundSettingsWidget.h
blob: fd18bc8424b8a146721b853093cf8707db9718c4 (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
41
42
43
44
/*
 * Copyright (c) 2019-2020, Jesse Buhagiar <jooster669@gmail.com>
 * Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include "MonitorWidget.h"
#include <LibCore/Timer.h>
#include <LibGUI/ColorInput.h>
#include <LibGUI/ComboBox.h>
#include <LibGUI/Menu.h>
#include <LibGUI/RadioButton.h>

namespace DisplaySettings {

class BackgroundSettingsWidget : public GUI::Widget {
    C_OBJECT(BackgroundSettingsWidget);

public:
    virtual ~BackgroundSettingsWidget() override;

    void apply_settings();

private:
    BackgroundSettingsWidget();

    void create_frame();
    void load_current_settings();

    Vector<String> m_modes;

    RefPtr<DisplaySettings::MonitorWidget> m_monitor_widget;
    RefPtr<GUI::IconView> m_wallpaper_view;
    RefPtr<GUI::ComboBox> m_mode_combo;
    RefPtr<GUI::ColorInput> m_color_input;
    RefPtr<GUI::Menu> m_context_menu;
    RefPtr<GUI::Action> m_show_in_file_manager_action;
    RefPtr<GUI::Action> m_copy_action;
};

}