mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 22:12:44 +00:00 
			
		
		
		
	 1e604b7984
			
		
	
	
		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()
 | |
| {
 | |
| }
 |