High res status icon for macOS. Fix #98.
This commit is contained in:
parent
861030ab7a
commit
888a0f32ec
|
@ -27,7 +27,7 @@ use std::fs;
|
|||
use log::{info, error};
|
||||
use std::process::exit;
|
||||
|
||||
const STATUS_ICON_BINARY : &[u8] = include_bytes!("../res/mac/icon@2x.png");
|
||||
const STATUS_ICON_BINARY : &[u8] = include_bytes!("../res/mac/icon.png");
|
||||
|
||||
pub struct MacContext {
|
||||
pub send_channel: Sender<Event>
|
||||
|
@ -53,7 +53,7 @@ impl MacContext {
|
|||
|
||||
// Initialize the status icon path
|
||||
let espanso_dir = super::get_data_dir();
|
||||
let status_icon_target = espanso_dir.join("icon@2x.png");
|
||||
let status_icon_target = espanso_dir.join("icon.png");
|
||||
|
||||
if status_icon_target.exists() {
|
||||
info!("Status icon already initialized, skipping.");
|
||||
|
@ -142,4 +142,4 @@ extern fn context_menu_click_callback(_self: *mut c_void, id: i32) {
|
|||
let event = Event::Action(ActionType::from(id));
|
||||
(*_self).send_channel.send(event).unwrap();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 239 B After Width: | Height: | Size: 4.1 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.4 KiB |
Loading…
Reference in New Issue
Block a user