mac try x2 png not work, revert

This commit is contained in:
rustdesk 2023-01-19 18:23:04 +08:00
parent f54d72e900
commit 75c43a01fa

View File

@ -214,14 +214,15 @@ pub fn make_tray() {
let mode = dark_light::detect();
let icon_path = match mode {
dark_light::Mode::Dark => {
if f > 1. {
// still show big overflow icon in my test, so still use x1 png.
if f > 2. {
"mac-tray-light-x2.png"
} else {
"mac-tray-light.png"
}
}
dark_light::Mode::Light => {
if f > 1. {
if f > 2. {
"mac-tray-dark-x2.png"
} else {
"mac-tray-dark.png"