mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 15:43:20 +00:00

On macOS Tahoe, it is now recommended to show menu item icons. We use system symbols for this now. Symbols do not have constant variable names and must be found via the SF Symbols app. The symbols chosen here were to match Safari as close as possible.
26 lines
533 B
Objective-C
26 lines
533 B
Objective-C
/*
|
|
* Copyright (c) 2025, Tim Flynn <trflynn89@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <Interface/Menu.h>
|
|
#include <LibWebView/Menu.h>
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
@class LadybirdWebView;
|
|
|
|
namespace Ladybird {
|
|
|
|
NSMenu* create_application_menu(WebView::Menu&);
|
|
NSMenu* create_context_menu(LadybirdWebView*, WebView::Menu&);
|
|
|
|
NSMenuItem* create_application_menu_item(WebView::Action&);
|
|
NSButton* create_application_button(WebView::Action&);
|
|
|
|
void set_control_image(id control, NSString*);
|
|
|
|
}
|