improvement: Use grayscale tray icon for macOS

This commit is contained in:
Artem Chepurnyi 2024-04-23 21:16:14 +03:00
parent 10676243da
commit f3b0b521d0
2 changed files with 6 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

View File

@ -43,6 +43,8 @@ import com.artemchep.keyguard.feature.navigation.NavigationController
import com.artemchep.keyguard.feature.navigation.NavigationIntent
import com.artemchep.keyguard.feature.navigation.NavigationNode
import com.artemchep.keyguard.feature.navigation.NavigationRouterBackHandler
import com.artemchep.keyguard.platform.CurrentPlatform
import com.artemchep.keyguard.platform.Platform
import com.artemchep.keyguard.platform.lifecycle.LeLifecycleState
import com.artemchep.keyguard.res.Res
import com.artemchep.keyguard.ui.LocalComposeWindow
@ -226,7 +228,10 @@ fun main() {
if (getCloseToTrayState.value) {
val trayState = rememberTrayState()
Tray(
icon = painterResource(Res.images.ic_keyguard),
icon = when (CurrentPlatform) {
is Platform.Desktop.MacOS -> painterResource(Res.images.ic_tray_macos)
else -> painterResource(Res.images.ic_keyguard)
},
state = trayState,
onAction = onWindowOpen,
menu = {