Skip to content

Commit

Permalink
HackStudio: Add an upscaled 32x32 icon to the About dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
xTibor authored and awesomekling committed Mar 30, 2020
1 parent f15e9ee commit c7f3d72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Binary file added Base/res/icons/32x32/app-hack-studio.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 2 additions & 4 deletions DevTools/HackStudio/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit c7f3d72

Please sign in to comment.