mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:28:12 +00:00
Applications: Use GUI::Icon::default_icon to set application icon
This commit is contained in:
parent
6861cb8a23
commit
5ed7ca3627
14 changed files with 55 additions and 22 deletions
|
@ -29,6 +29,7 @@
|
|||
#include <LibGUI/BoxLayout.h>
|
||||
#include <LibGUI/ColorInput.h>
|
||||
#include <LibGUI/ComboBox.h>
|
||||
#include <LibGUI/Icon.h>
|
||||
#include <LibGUI/Model.h>
|
||||
#include <LibGUI/Window.h>
|
||||
|
||||
|
@ -67,6 +68,8 @@ int main(int argc, char** argv)
|
|||
{
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
auto app_icon = GUI::Icon::default_icon("app-theme-editor");
|
||||
|
||||
Gfx::Palette preview_palette = app->palette();
|
||||
|
||||
auto window = GUI::Window::construct();
|
||||
|
@ -109,6 +112,6 @@ int main(int argc, char** argv)
|
|||
window->resize(480, 500);
|
||||
window->show();
|
||||
window->set_title("Theme Editor");
|
||||
window->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/app-theme-editor.png"));
|
||||
window->set_icon(app_icon.bitmap_for_size(16));
|
||||
return app->exec();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue