pub static ZOOM_TO_FIT_CMD: CommandExpand description
Represents the zoom to fit action.
The content is scaled to fit the viewport, the equivalent to ImageFit::Contain.
§Parameter
This command accepts an optional ZoomToFitRequest parameter with configuration.
§Metadata
This command has the following default metadata:
| metadata | value |
|---|---|
| name | "Zoom to Fit" |
| shortcut | shortcut!(CTRL + '0') |
| shortcut_filter | ShortcutFilter::FOCUSED | ShortcutFilter::CMD_ENABLED |
| icon | wgt_fn!(|_| ICONS.get(["zoom-to-fit", "fit-screen"])) |
Text metadata is localized.