1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 18:27:35 +00:00

Snake: Spruce up the GUI a tiny bit

Give the game window a GUI::Frame appearance, and make sure the
menus have Alt shortcuts. :^)
This commit is contained in:
Andreas Kling 2021-05-04 17:02:36 +02:00
parent d136fafde7
commit 04c3cddb1e
3 changed files with 13 additions and 10 deletions

View file

@ -8,10 +8,11 @@
#include <AK/CircularQueue.h>
#include <AK/NonnullRefPtrVector.h>
#include <LibGUI/Widget.h>
#include <LibGUI/Frame.h>
class SnakeGame : public GUI::Frame {
C_OBJECT(SnakeGame);
class SnakeGame : public GUI::Widget {
C_OBJECT(SnakeGame)
public:
virtual ~SnakeGame() override;