for Menu Item
fun forMenuItem(sceneWidth: Int = 64, sceneHeight: Int = 64, density: <Error class: unknown class> = Density(2f)): IconRenderProperties
Provides an IconRenderProperties configured for menu items.
Menu items typically require smaller icons than tray icons. The default sizes are optimized for each operating system:
Windows: 16x16 pixels (standard menu icon size)
macOS: 16x16 pixels (NSMenu standard)
Linux: 16x16 pixels (GTK menu standard)
Return
An instance of IconRenderProperties with the appropriate target width and height for menu items.
Parameters
scene Width
Width of the androidx.compose.ui.ImageComposeScene in pixels. Defaults to 64.
scene Height
Height of the androidx.compose.ui.ImageComposeScene in pixels. Defaults to 64.
density
Density of the androidx.compose.ui.ImageComposeScene. Defaults to 2.0 for high-DPI support.