mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-26 03:02:27 -05:00
1e604b7984
Any GAction that has an icon assigned will now show up with that icon when added to a menu as well. I made the menu items 2px taller to accomodate the icons. I think this turned out quite nice as well :^)
14 lines
256 B
C++
14 lines
256 B
C++
#include "WSMenuBar.h"
|
|
#include "WSMenu.h"
|
|
#include "WSMenuItem.h"
|
|
#include <LibDraw/GraphicsBitmap.h>
|
|
|
|
WSMenuBar::WSMenuBar(WSClientConnection& client, int menubar_id)
|
|
: m_client(client)
|
|
, m_menubar_id(menubar_id)
|
|
{
|
|
}
|
|
|
|
WSMenuBar::~WSMenuBar()
|
|
{
|
|
}
|