mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
- Split the main UI into two tabs: "Background" and "Monitor". - Use a GUI::IconView for selecting background pictures. - Tweak layout, spacing, etc.
35 lines
799 B
C++
35 lines
799 B
C++
/*
|
|
* Copyright (c) 2019-2020, Jesse Buhagiar <jooster669@gmail.com>
|
|
*
|
|
* 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/RadioButton.h>
|
|
|
|
class DisplaySettingsWidget : public GUI::Widget {
|
|
C_OBJECT(DisplaySettingsWidget);
|
|
|
|
public:
|
|
void apply_settings();
|
|
|
|
private:
|
|
DisplaySettingsWidget();
|
|
|
|
void create_frame();
|
|
void create_resolution_list();
|
|
void load_current_settings();
|
|
|
|
Vector<Gfx::IntSize> m_resolutions;
|
|
|
|
RefPtr<DisplaySettings::MonitorWidget> m_monitor_widget;
|
|
RefPtr<GUI::ComboBox> m_resolution_combo;
|
|
RefPtr<GUI::RadioButton> m_display_scale_radio_1x;
|
|
RefPtr<GUI::RadioButton> m_display_scale_radio_2x;
|
|
};
|