feat(core): add explanatory image on Welcome screen for macOS

This commit is contained in:
Federico Terzi 2021-06-29 20:02:11 +02:00
parent 5b547fec9f
commit 612c8ba8e4
2 changed files with 3 additions and 0 deletions

View File

@ -44,6 +44,8 @@ const MAC_SYSTEM_DISABLED_BINARY: &[u8] = include_bytes!("res/macos/iconsystemdi
const MAC_ACCESSIBILITY_1_BINARY: &[u8] = include_bytes!("res/accessibility_1.png");
#[cfg(target_os = "macos")]
const MAC_ACCESSIBILITY_2_BINARY: &[u8] = include_bytes!("res/accessibility_2.png");
#[cfg(target_os = "macos")]
const MAC_STATUS_ICON_EXPLAIN_IMAGE: &[u8] = include_bytes!("res/macos/icon_explain_image.png");
#[derive(Debug, Default)]
pub struct IconPaths {
@ -89,6 +91,7 @@ pub fn load_icon_paths(runtime_dir: &Path) -> Result<IconPaths> {
logo_no_background: Some(extract_icon(LOGO_NO_BACKGROUND_BINARY, &runtime_dir.join("icon_no_background.png"))?),
accessibility_image_1: Some(extract_icon(MAC_ACCESSIBILITY_1_BINARY, &runtime_dir.join("accessibility_1.png"))?),
accessibility_image_2: Some(extract_icon(MAC_ACCESSIBILITY_2_BINARY, &runtime_dir.join("accessibility_2.png"))?),
tray_explain_image: Some(extract_icon(MAC_STATUS_ICON_EXPLAIN_IMAGE, &runtime_dir.join("icon_explain_image.png"))?),
..Default::default()
})
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB