wcpopup

Rust context menu for Windows and Linux(Gtk3).
Supports dark/light theme and color/size configuration.
- Colors
- Text color
- Background color
- Border color
- Size
- Menu padding
- Menu item padding
- Font
- Font family
- Size and weight


Usage
Use ManuBuilder to create a Menu with MenuItems.
Call Menu.popup_at() to show Menu and receive the selected MenuItem using MenuEvent.
if let Ok = receiver.try_recv
Or call Menu.popup_at_async() to show Menu and wait asynchronously for a selected MenuItem.
async
Platform-specific notes
Windows
WebView2 may receive all keyboard input instead of its parent window(#1703).
Using WebView2, you may need to enable the feature flag.
--enable-features=msWebView2BrowserHitTransparent
Linux
Gtk3 is required.
MenuItem's text color is applied to SVG icon if the SVG file contains the "symbolic" term as the last component of the file name.
Accelerator
Accelerators are used only to display available shortcut keys by default.
Use "accelerator" feature to treat accelerators as commands.
With this feature, when a shortcut key is pressed, the corresponding MenuItem is returned as the result of Menu.popup_at().
features =