mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
29 lines
751 B
Kotlin
29 lines
751 B
Kotlin
package com.geeksville.mesh.ui
|
|
|
|
import androidx.compose.Model
|
|
import com.geeksville.mesh.R
|
|
|
|
|
|
data class ScreenInfo(val icon: Int, val label: String)
|
|
|
|
// defines the screens we have in the app
|
|
object Screen {
|
|
val settings = ScreenInfo(R.drawable.ic_twotone_settings_applications_24, "Settings")
|
|
val channel = ScreenInfo(R.drawable.ic_twotone_contactless_24, "Channel")
|
|
val users = ScreenInfo(R.drawable.ic_twotone_people_24, "Users")
|
|
val messages = ScreenInfo(R.drawable.ic_twotone_message_24, "Messages")
|
|
}
|
|
|
|
|
|
@Model
|
|
object AppStatus {
|
|
var currentScreen: ScreenInfo = Screen.messages
|
|
}
|
|
|
|
|
|
/**
|
|
* Temporary solution pending navigation support.
|
|
*/
|
|
fun navigateTo(destination: ScreenInfo) {
|
|
AppStatus.currentScreen = destination
|
|
}
|