mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:48:14 +00:00
Applications: Implement some missing MenuBars & AboutDialogs
This commit is contained in:
parent
33b8d37dd3
commit
74a18c86c9
7 changed files with 80 additions and 7 deletions
|
@ -1,6 +1,7 @@
|
|||
#include "Field.h"
|
||||
#include <LibCore/CConfigFile.h>
|
||||
#include <LibDraw/PNGLoader.h>
|
||||
#include <LibGUI/GAboutDialog.h>
|
||||
#include <LibGUI/GAction.h>
|
||||
#include <LibGUI/GApplication.h>
|
||||
#include <LibGUI/GBoxLayout.h>
|
||||
|
@ -89,8 +90,8 @@ int main(int argc, char** argv)
|
|||
menubar->add_menu(move(difficulty_menu));
|
||||
|
||||
auto help_menu = GMenu::construct("Help");
|
||||
help_menu->add_action(GAction::create("About", [](const GAction&) {
|
||||
dbgprintf("FIXME: Implement Help/About\n");
|
||||
help_menu->add_action(GAction::create("About", [&](const GAction&) {
|
||||
GAboutDialog::show("Minesweeper", load_png("/res/icons/32x32/app-minesweeper.png"), window);
|
||||
}));
|
||||
menubar->add_menu(move(help_menu));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue