improvement: Use grayscale tray icon for macOS
This commit is contained in:
parent
10676243da
commit
f3b0b521d0
BIN
common/src/commonMain/resources/MR/images/ic_tray_macos@2x.png
Normal file
BIN
common/src/commonMain/resources/MR/images/ic_tray_macos@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.4 KiB |
@ -43,6 +43,8 @@ import com.artemchep.keyguard.feature.navigation.NavigationController
|
|||||||
import com.artemchep.keyguard.feature.navigation.NavigationIntent
|
import com.artemchep.keyguard.feature.navigation.NavigationIntent
|
||||||
import com.artemchep.keyguard.feature.navigation.NavigationNode
|
import com.artemchep.keyguard.feature.navigation.NavigationNode
|
||||||
import com.artemchep.keyguard.feature.navigation.NavigationRouterBackHandler
|
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.platform.lifecycle.LeLifecycleState
|
||||||
import com.artemchep.keyguard.res.Res
|
import com.artemchep.keyguard.res.Res
|
||||||
import com.artemchep.keyguard.ui.LocalComposeWindow
|
import com.artemchep.keyguard.ui.LocalComposeWindow
|
||||||
@ -226,7 +228,10 @@ fun main() {
|
|||||||
if (getCloseToTrayState.value) {
|
if (getCloseToTrayState.value) {
|
||||||
val trayState = rememberTrayState()
|
val trayState = rememberTrayState()
|
||||||
Tray(
|
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,
|
state = trayState,
|
||||||
onAction = onWindowOpen,
|
onAction = onWindowOpen,
|
||||||
menu = {
|
menu = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user