59 lines
1.1 KiB
C++
59 lines
1.1 KiB
C++
#pragma once
|
|
class EditorComponent;
|
|
|
|
class ThemeEditorWindow : public wi::gui::Window
|
|
{
|
|
public:
|
|
void Create(EditorComponent* editor);
|
|
|
|
EditorComponent* editor = nullptr;
|
|
|
|
wi::gui::TextInputField nameInput;
|
|
|
|
wi::gui::Button idleButton;
|
|
wi::gui::Button focusButton;
|
|
wi::gui::Button backgroundButton;
|
|
wi::gui::Button shadowButton;
|
|
wi::gui::Button fontButton;
|
|
wi::gui::Button fontShadowButton;
|
|
wi::gui::Button gradientButton;
|
|
wi::gui::Button waveButton;
|
|
|
|
wi::gui::ColorPicker colorpicker;
|
|
|
|
wi::gui::Button imageButton;
|
|
wi::gui::Slider imageSlider;
|
|
|
|
wi::gui::Button saveButton;
|
|
|
|
wi::Color idleColor;
|
|
wi::Color focusColor;
|
|
wi::Color backgroundColor;
|
|
wi::Color shadowColor;
|
|
wi::Color fontColor;
|
|
wi::Color fontShadowColor;
|
|
wi::Color gradientColor;
|
|
wi::Color waveColor;
|
|
|
|
wi::Resource imageResource;
|
|
std::string imageResourceName;
|
|
|
|
enum class ColorPickerMode
|
|
{
|
|
None,
|
|
Idle,
|
|
Focus,
|
|
Background,
|
|
Shadow,
|
|
Font,
|
|
FontShadow,
|
|
Gradient,
|
|
Wave,
|
|
} mode;
|
|
void UpdateColorPickerMode();
|
|
|
|
void Update(const wi::Canvas& canvas, float dt) override;
|
|
void ResizeLayout() override;
|
|
};
|
|
|