diff options
Diffstat (limited to 'Applications/ThemeEditor/main.cpp')
-rw-r--r-- | Applications/ThemeEditor/main.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Applications/ThemeEditor/main.cpp b/Applications/ThemeEditor/main.cpp new file mode 100644 index 0000000000..bf469286d3 --- /dev/null +++ b/Applications/ThemeEditor/main.cpp @@ -0,0 +1,22 @@ +#include "PreviewWidget.h" +#include <LibGUI/Application.h> +#include <LibGUI/BoxLayout.h> +#include <LibGUI/Window.h> + +int main(int argc, char** argv) +{ + auto app = GUI::Application::construct(argc, argv); + + auto window = GUI::Window::construct(); + auto& main_widget = window->set_main_widget<GUI::Widget>(); + main_widget.set_fill_with_background_color(true); + main_widget.set_layout<GUI::VerticalBoxLayout>(); + + auto& preview_widget = main_widget.add<ThemeEditor::PreviewWidget>(app->palette()); + preview_widget.set_preferred_size(480, 360); + preview_widget.set_size_policy(GUI::SizePolicy::Fixed, GUI::SizePolicy::Fixed); + + window->resize(500, 400); + window->show(); + return app->exec(); +} |