mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-24 13:35:12 +00:00
HackStudio: Add an upscaled 32x32 icon to the About dialog
This commit is contained in:
parent
f15e9ee0fc
commit
c7f3d72a6a
Notes:
sideshowbarker
2024-07-19 08:03:23 +09:00
Author: https://github.com/xTibor Commit: https://github.com/SerenityOS/serenity/commit/c7f3d72a6ab Pull-request: https://github.com/SerenityOS/serenity/pull/1536
2 changed files with 2 additions and 4 deletions
BIN
Base/res/icons/32x32/app-hack-studio.png
Normal file
BIN
Base/res/icons/32x32/app-hack-studio.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 886 B |
|
@ -523,17 +523,15 @@ int main(int argc, char** argv)
|
|||
view_menu->add_action(remove_current_editor_action);
|
||||
menubar->add_menu(move(view_menu));
|
||||
|
||||
auto small_icon = Gfx::Bitmap::load_from_file("/res/icons/16x16/app-hack-studio.png");
|
||||
|
||||
auto help_menu = GUI::Menu::construct("Help");
|
||||
help_menu->add_action(GUI::Action::create("About", [&](auto&) {
|
||||
GUI::AboutDialog::show("HackStudio", small_icon, g_window);
|
||||
GUI::AboutDialog::show("HackStudio", Gfx::Bitmap::load_from_file("/res/icons/32x32/app-hack-studio.png"), g_window);
|
||||
}));
|
||||
menubar->add_menu(move(help_menu));
|
||||
|
||||
app.set_menubar(move(menubar));
|
||||
|
||||
g_window->set_icon(small_icon);
|
||||
g_window->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/app-hack-studio.png"));
|
||||
|
||||
g_window->show();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue