Various tray and notification improvements

This commit is contained in:
Luke D. Jones
2023-04-26 10:57:13 +12:00
parent 31af8f9511
commit 25ecfda095
6 changed files with 181 additions and 42 deletions

View File

@@ -480,7 +480,13 @@ pub fn init_tray(
match lock.gfx_state.power_status {
GfxPower::Suspended => tray.set_icon("asus_notif_blue"),
GfxPower::Off => tray.set_icon("asus_notif_green"),
GfxPower::Off => {
if lock.gfx_state.mode == GfxMode::Vfio {
tray.set_icon("asus_notif_red")
} else {
tray.set_icon("asus_notif_green")
}
}
GfxPower::AsusDisabled => tray.set_icon("asus_notif_white"),
GfxPower::AsusMuxDiscreet | GfxPower::Active => {
tray.set_icon("asus_notif_red");