Skip to content
Snippets Groups Projects
Commit 8dc061ab authored by Sebastian's avatar Sebastian Committed by Mikolai Gütschow
Browse files

Fix case of some variables in BriarUIStateManager

parent 2c8d18a3
Branches
Tags
1 merge request!4Add UI Prototype from Paul's repository
...@@ -22,26 +22,26 @@ import org.briarproject.briar.desktop.paul.theme.briarBlack ...@@ -22,26 +22,26 @@ import org.briarproject.briar.desktop.paul.theme.briarBlack
@Composable @Composable
fun BriarUIStateManager() { fun BriarUIStateManager() {
// current selected mode, changed using the sidebar buttons // current selected mode, changed using the sidebar buttons
val (UIMode, onModeChange) = remember { mutableStateOf("Contacts") } val (uiMode, onModeChange) = remember { mutableStateOf("Contacts") }
// current selected contact // current selected contact
val (UIContact, onContactSelect) = remember { mutableStateOf(ContactList.contacts[0]) } val (uiContact, onContactSelect) = remember { mutableStateOf(ContactList.contacts[0]) }
// current selected private message // current selected private message
val (UIPrivateMsg, onPMSelect) = remember { mutableStateOf(0) } val (uiPrivateMsg, onPMSelect) = remember { mutableStateOf(0) }
// current selected forum // current selected forum
val (UIForum, onForumSelect) = remember { mutableStateOf(0) } val (uiForum, onForumSelect) = remember { mutableStateOf(0) }
// current blog state // current blog state
val (UIBlog, onBlogSelect) = remember { mutableStateOf(0) } val (uiBlog, onBlogSelect) = remember { mutableStateOf(0) }
// current transport state // current transport state
val (UITransports, onTransportSelect) = remember { mutableStateOf(0) } val (uiTransports, onTransportSelect) = remember { mutableStateOf(0) }
// current settings state // current settings state
val (UISettings, onSettingSelect) = remember { mutableStateOf(0) } val (uiSettings, onSettingSelect) = remember { mutableStateOf(0) }
// current profile // current profile
var Profile: String var Profile: String
// Other global state that we need to track should go here also // Other global state that we need to track should go here also
Row() { Row() {
BriarSidebar(UIMode, onModeChange) BriarSidebar(uiMode, onModeChange)
when (UIMode) { when (uiMode) {
"Contacts" -> PrivateMessageView(UIContact, onContactSelect) "Contacts" -> PrivateMessageView(uiContact, onContactSelect)
else -> Box(modifier = Modifier.fillMaxSize().background(briarBlack)) { else -> Box(modifier = Modifier.fillMaxSize().background(briarBlack)) {
Text("TBD", modifier = Modifier.align(Alignment.Center), color = Color.White) Text("TBD", modifier = Modifier.align(Alignment.Center), color = Color.White)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment