Updated Windows installer and application icons
Before Width: | Height: | Size: 3.2 KiB |
|
@ -1,5 +1,7 @@
|
||||||
#define IDI_POLARIS 0x101
|
#define IDI_POLARIS 0x101
|
||||||
|
#define IDI_POLARIS_TRAY 0x102
|
||||||
|
|
||||||
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "application.manifest"
|
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "application.manifest"
|
||||||
|
|
||||||
IDI_POLARIS ICON "icon_polaris_32.ico"
|
IDI_POLARIS ICON "icon_polaris_512.ico"
|
||||||
|
IDI_POLARIS_TRAY ICON "icon_polaris_outline_64.ico"
|
||||||
|
|
Before Width: | Height: | Size: 5.3 KiB |
BIN
res/windows/application/icon_polaris_512.ico
Normal file
After Width: | Height: | Size: 361 KiB |
BIN
res/windows/application/icon_polaris_outline_64.ico
Normal file
After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 335 KiB |
Before Width: | Height: | Size: 451 KiB After Width: | Height: | Size: 1.8 MiB |
|
@ -7,7 +7,7 @@ use user32;
|
||||||
use uuid;
|
use uuid;
|
||||||
use winapi;
|
use winapi;
|
||||||
|
|
||||||
const IDI_POLARIS: isize = 0x101;
|
const IDI_POLARIS_TRAY: isize = 0x102;
|
||||||
const UID_NOTIFICATION_ICON: u32 = 0;
|
const UID_NOTIFICATION_ICON: u32 = 0;
|
||||||
const MESSAGE_NOTIFICATION_ICON: u32 = winapi::WM_USER + 1;
|
const MESSAGE_NOTIFICATION_ICON: u32 = winapi::WM_USER + 1;
|
||||||
const MESSAGE_NOTIFICATION_ICON_QUIT: u32 = winapi::WM_USER + 2;
|
const MESSAGE_NOTIFICATION_ICON_QUIT: u32 = winapi::WM_USER + 2;
|
||||||
|
@ -130,7 +130,7 @@ fn add_notification_icon(window: winapi::HWND) {
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
let module = kernel32::GetModuleHandleW(std::ptr::null());
|
let module = kernel32::GetModuleHandleW(std::ptr::null());
|
||||||
let icon = user32::LoadIconW(module, std::mem::transmute(IDI_POLARIS));
|
let icon = user32::LoadIconW(module, std::mem::transmute(IDI_POLARIS_TRAY));
|
||||||
let mut flags = winapi::NIF_MESSAGE | winapi::NIF_TIP;
|
let mut flags = winapi::NIF_MESSAGE | winapi::NIF_TIP;
|
||||||
if !icon.is_null() {
|
if !icon.is_null() {
|
||||||
flags |= winapi::NIF_ICON;
|
flags |= winapi::NIF_ICON;
|
||||||
|
|