mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:17:35 +00:00
Base+Playground: Add app-playground.png 16x16 and 32x32 icons
This commit is contained in:
parent
2e7395d6da
commit
fe6a312714
4 changed files with 4 additions and 1 deletions
BIN
Base/res/icons/16x16/app-playground.png
Normal file
BIN
Base/res/icons/16x16/app-playground.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.7 KiB |
BIN
Base/res/icons/32x32/app-playground.png
Normal file
BIN
Base/res/icons/32x32/app-playground.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.3 KiB |
|
@ -2,5 +2,5 @@ set(SOURCES
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
serenity_app(Playground)
|
serenity_app(Playground ICON app-playground)
|
||||||
target_link_libraries(Playground LibGUI)
|
target_link_libraries(Playground LibGUI)
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
|
|
||||||
#include <LibGUI/Application.h>
|
#include <LibGUI/Application.h>
|
||||||
#include <LibGUI/GMLSyntaxHighlighter.h>
|
#include <LibGUI/GMLSyntaxHighlighter.h>
|
||||||
|
#include <LibGUI/Icon.h>
|
||||||
#include <LibGUI/Splitter.h>
|
#include <LibGUI/Splitter.h>
|
||||||
#include <LibGUI/TextEditor.h>
|
#include <LibGUI/TextEditor.h>
|
||||||
#include <LibGUI/Window.h>
|
#include <LibGUI/Window.h>
|
||||||
|
@ -33,8 +34,10 @@
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
auto app = GUI::Application::construct(argc, argv);
|
auto app = GUI::Application::construct(argc, argv);
|
||||||
|
auto app_icon = GUI::Icon::default_icon("app-playground");
|
||||||
auto window = GUI::Window::construct();
|
auto window = GUI::Window::construct();
|
||||||
window->set_title("GML Playground");
|
window->set_title("GML Playground");
|
||||||
|
window->set_icon(app_icon.bitmap_for_size(16));
|
||||||
window->resize(800, 600);
|
window->resize(800, 600);
|
||||||
|
|
||||||
auto& splitter = window->set_main_widget<GUI::HorizontalSplitter>();
|
auto& splitter = window->set_main_widget<GUI::HorizontalSplitter>();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue