Android: reorder the client sheet
Connection info moves to the end, just above the volume slider, which stays last; "Add to whisper list…" is left out of the sheet for now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -91,7 +91,6 @@ fun ClientSheet(
|
|||||||
}
|
}
|
||||||
details?.let { DetailsSection(it, onLink, Modifier.padding(bottom = 8.dp)) }
|
details?.let { DetailsSection(it, onLink, Modifier.padding(bottom = 8.dp)) }
|
||||||
onFindInTree?.let { Action("CHANNEL_SWITCH", "Find client in channel tree", onClick = it) }
|
onFindInTree?.let { Action("CHANNEL_SWITCH", "Find client in channel tree", onClick = it) }
|
||||||
Action("INFO", "Connection info", onClick = onConnectionInfo)
|
|
||||||
if (client.self) {
|
if (client.self) {
|
||||||
Action("AWAY", if (away) "Back" else "Away") { onAway(!away) }
|
Action("AWAY", if (away) "Back" else "Away") { onAway(!away) }
|
||||||
moderation()
|
moderation()
|
||||||
@@ -99,7 +98,7 @@ fun ClientSheet(
|
|||||||
Action("PLAYER_CHAT", "Send message", onClick = onMessage)
|
Action("PLAYER_CHAT", "Send message", onClick = onMessage)
|
||||||
Action("POKE", "Poke") { poking = true }
|
Action("POKE", "Poke") { poking = true }
|
||||||
onWhisper?.let { Action("PLAYER_WHISPER", "Whisper", onClick = it) }
|
onWhisper?.let { Action("PLAYER_WHISPER", "Whisper", onClick = it) }
|
||||||
onAddToWhisperList?.let { Action("ON_WHISPERLIST", "Add to whisper list…", onClick = it) }
|
// "Add to whisper list…" (onAddToWhisperList) is left out for now.
|
||||||
onMove?.let { Action("CHANNEL_SWITCH", "Move to channel…", onClick = it) }
|
onMove?.let { Action("CHANNEL_SWITCH", "Move to channel…", onClick = it) }
|
||||||
onMoveToOwnChannel?.let { Action("MOVE_CLIENT_TO_OWN_CHANNEL", "Move to own channel", onClick = it) }
|
onMoveToOwnChannel?.let { Action("MOVE_CLIENT_TO_OWN_CHANNEL", "Move to own channel", onClick = it) }
|
||||||
moderation()
|
moderation()
|
||||||
@@ -111,6 +110,9 @@ fun ClientSheet(
|
|||||||
} else {
|
} else {
|
||||||
Action("EDIT_FRIEND_FOE_STATUS", "Edit contact", onClick = onEditContact)
|
Action("EDIT_FRIEND_FOE_STATUS", "Edit contact", onClick = onEditContact)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Action("INFO", "Connection info", onClick = onConnectionInfo)
|
||||||
|
if (!client.self) {
|
||||||
var volume by remember { mutableFloatStateOf(initialVolume.toFloat()) }
|
var volume by remember { mutableFloatStateOf(initialVolume.toFloat()) }
|
||||||
Text("Volume: ${if (volume > 0) "+" else ""}${volume.roundToInt()} dB",
|
Text("Volume: ${if (volume > 0) "+" else ""}${volume.roundToInt()} dB",
|
||||||
Modifier.padding(start = 24.dp, top = 8.dp), style = MaterialTheme.typography.bodyMedium)
|
Modifier.padding(start = 24.dp, top = 8.dp), style = MaterialTheme.typography.bodyMedium)
|
||||||
|
|||||||
Reference in New Issue
Block a user