mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 07:35:08 +00:00
ChanViewer: Give this application a simple window icon
This commit is contained in:
parent
3eb1a7f8f8
commit
d0c1724d5b
2 changed files with 2 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
#include "ThreadCatalogModel.h"
|
#include "ThreadCatalogModel.h"
|
||||||
|
#include <LibDraw/PNGLoader.h>
|
||||||
#include <LibGUI/GApplication.h>
|
#include <LibGUI/GApplication.h>
|
||||||
#include <LibGUI/GBoxLayout.h>
|
#include <LibGUI/GBoxLayout.h>
|
||||||
#include <LibGUI/GTableView.h>
|
#include <LibGUI/GTableView.h>
|
||||||
|
@ -11,6 +12,7 @@ int main(int argc, char** argv)
|
||||||
auto* window = new GWindow;
|
auto* window = new GWindow;
|
||||||
window->set_title("ChanViewer");
|
window->set_title("ChanViewer");
|
||||||
window->set_rect(100, 100, 640, 480);
|
window->set_rect(100, 100, 640, 480);
|
||||||
|
window->set_icon(load_png("/res/icons/16x16/app-chanviewer.png"));
|
||||||
|
|
||||||
auto* widget = new GWidget;
|
auto* widget = new GWidget;
|
||||||
window->set_main_widget(widget);
|
window->set_main_widget(widget);
|
||||||
|
|
BIN
Base/res/icons/16x16/app-chanviewer.png
Normal file
BIN
Base/res/icons/16x16/app-chanviewer.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 203 B |
Loading…
Add table
Add a link
Reference in a new issue