1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 17:37:34 +00:00

DisplayProperties: Replace TextBox with ColorInput.

Use new ColorInput component. Delete unnecessary code lines. Fix local variable names.
This commit is contained in:
Hüseyin ASLITÜRK 2020-04-10 12:03:01 +03:00 committed by Andreas Kling
parent bc323c488e
commit 870936085a
2 changed files with 72 additions and 112 deletions

View file

@ -27,19 +27,13 @@
#pragma once
#include "MonitorWidget.h"
#include <LibGUI/ColorInput.h>
#include <LibGUI/ComboBox.h>
#include <LibGUI/TextBox.h>
class DisplayPropertiesWidget : public GUI::Widget {
C_OBJECT(MonitorWidget);
public:
enum class ButtonOperations {
Ok,
Apply,
Cancel,
};
DisplayPropertiesWidget();
GUI::Widget* root_widget() { return m_root_widget; }
@ -60,5 +54,5 @@ private:
RefPtr<GUI::ComboBox> m_wallpaper_combo;
RefPtr<GUI::ComboBox> m_mode_combo;
RefPtr<GUI::ComboBox> m_resolution_combo;
RefPtr<GUI::TextBox> m_color_textbox;
RefPtr<GUI::ColorInput> m_color_input;
};