summaryrefslogtreecommitdiff
path: root/Applications
diff options
context:
space:
mode:
authorthankyouverycool <66646555+thankyouverycool@users.noreply.github.com>2020-07-07 07:04:06 -0400
committerAndreas Kling <kling@serenityos.org>2020-07-07 13:38:35 +0200
commit27109c346783a7812b39699dce20cd2bf2a0bf54 (patch)
treed28ebebd3b0a62b2406d35f2f09135d552e0575f /Applications
parent92374fc94227ad6774d1243e10e19871d0d5c0db (diff)
downloadserenity-27109c346783a7812b39699dce20cd2bf2a0bf54.zip
Base+Help: Add new Help app icons
This adds a new 32x32 Help application icon, a new open book icon, copies the current book icon as Help's 16x16 icon, and updates the Help application file to reflect these changes.
Diffstat (limited to 'Applications')
-rw-r--r--Applications/Help/main.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/Applications/Help/main.cpp b/Applications/Help/main.cpp
index 9a2a7a1cb4..ba7098fc1c 100644
--- a/Applications/Help/main.cpp
+++ b/Applications/Help/main.cpp
@@ -75,7 +75,10 @@ int main(int argc, char* argv[])
unveil(nullptr, nullptr);
+ auto app_icon = GUI::Icon::default_icon("app-help");
+
auto window = GUI::Window::construct();
+ window->set_icon(app_icon.bitmap_for_size(16));
window->set_title("Help");
window->set_rect(300, 200, 570, 500);
@@ -189,7 +192,7 @@ int main(int argc, char* argv[])
auto& app_menu = menubar->add_menu("Help");
app_menu.add_action(GUI::Action::create("About", [&](const GUI::Action&) {
- GUI::AboutDialog::show("Help", Gfx::Bitmap::load_from_file("/res/icons/16x16/book.png"), window);
+ GUI::AboutDialog::show("Help", app_icon.bitmap_for_size(32), window);
}));
app_menu.add_separator();
app_menu.add_action(GUI::CommonActions::make_quit_action([](auto&) {
@@ -205,7 +208,5 @@ int main(int argc, char* argv[])
window->set_focused_widget(&tree_view);
window->show();
- window->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/book.png"));
-
return app->exec();
}