mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:27:45 +00:00
GamesSettings: Add a preview for the current card-game settings :^)
This commit is contained in:
parent
deeef8c412
commit
cde4552710
4 changed files with 66 additions and 3 deletions
|
@ -7,7 +7,9 @@
|
|||
#pragma once
|
||||
|
||||
#include <LibGUI/ColorInput.h>
|
||||
#include <LibGUI/Frame.h>
|
||||
#include <LibGUI/IconView.h>
|
||||
#include <LibGUI/ImageWidget.h>
|
||||
#include <LibGUI/SettingsWindow.h>
|
||||
|
||||
class CardSettingsWidget final : public GUI::SettingsWindow::Tab {
|
||||
|
@ -21,9 +23,15 @@ public:
|
|||
private:
|
||||
CardSettingsWidget();
|
||||
|
||||
void set_cards_background_color(Gfx::Color);
|
||||
bool set_card_back_image_path(String const&);
|
||||
String card_back_image_path() const;
|
||||
|
||||
RefPtr<GUI::Frame> m_preview_frame;
|
||||
RefPtr<GUI::ImageWidget> m_preview_card_back;
|
||||
RefPtr<GUI::ImageWidget> m_preview_card_front_ace;
|
||||
RefPtr<GUI::ImageWidget> m_preview_card_front_queen;
|
||||
|
||||
RefPtr<GUI::ColorInput> m_background_color_input;
|
||||
RefPtr<GUI::IconView> m_card_back_image_view;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue