mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-24 21:45:20 +00:00
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.
This commit is contained in:
parent
92374fc942
commit
27109c3467
Notes:
sideshowbarker
2024-07-19 05:02:50 +09:00
Author: https://github.com/thankyouverycool Commit: https://github.com/SerenityOS/serenity/commit/27109c34678 Pull-request: https://github.com/SerenityOS/serenity/pull/2726
5 changed files with 6 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -4,5 +4,5 @@ Executable=/bin/Help
|
|||
Category=Utilities
|
||||
|
||||
[Icons]
|
||||
16x16=/res/icons/16x16/book.png
|
||||
32x32=
|
||||
16x16=/res/icons/16x16/app-help.png
|
||||
32x32=/res/icons/32x32/app-help.png
|
||||
|
|
BIN
Base/res/icons/16x16/app-help.png
Normal file
BIN
Base/res/icons/16x16/app-help.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 399 B |
BIN
Base/res/icons/16x16/book-open.png
Executable file
BIN
Base/res/icons/16x16/book-open.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 271 B |
BIN
Base/res/icons/32x32/app-help.png
Executable file
BIN
Base/res/icons/32x32/app-help.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
Loading…
Add table
Reference in a new issue