style(concord): drop bold top-bar titles to match the app's default weight

The shared TopBarWithBackButton renders its title as a plain Text (Material3's
default title weight), and screens like the Marmot group list follow that. The
Concord screens (and the minichat screen added alongside them) hardcoded
FontWeight.Bold on their TopAppBar titles, standing out from every other screen.
Remove the bold so the nav bars read consistently; content emphasis (unread
markers, names, section headers) is unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CzJ2Cwo8tg4oZq43oRa3ig
This commit is contained in:
Claude
2026-07-15 01:42:01 +00:00
parent 3950323ba3
commit d0a817a607
7 changed files with 7 additions and 10 deletions
@@ -48,7 +48,6 @@ import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.text.font.FontWeight
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import androidx.lifecycle.viewmodel.compose.viewModel
import com.vitorpamplona.amethyst.R
@@ -141,7 +140,7 @@ fun MinichatScreen(
Scaffold(
topBar = {
TopAppBar(
title = { Text(stringRes(R.string.chat_minichat_title), fontWeight = FontWeight.Bold, maxLines = 1) },
title = { Text(stringRes(R.string.chat_minichat_title), maxLines = 1) },
navigationIcon = {
IconButton(onClick = { nav.popBack() }) {
SymbolIcon(symbol = MaterialSymbols.AutoMirrored.ArrowBack, contentDescription = stringRes(R.string.back))
@@ -155,7 +155,7 @@ fun ConcordChannelListScreen(
Scaffold(
topBar = {
TopAppBar(
title = { Text(state?.metadata?.name ?: stringRes(com.vitorpamplona.amethyst.R.string.app_name), fontWeight = FontWeight.Bold, maxLines = 1) },
title = { Text(state?.metadata?.name ?: stringRes(com.vitorpamplona.amethyst.R.string.app_name), maxLines = 1) },
navigationIcon = {
IconButton(onClick = { nav.popBack() }) {
SymbolIcon(symbol = MaterialSymbols.AutoMirrored.ArrowBack, contentDescription = stringRes(com.vitorpamplona.amethyst.R.string.back))
@@ -48,7 +48,6 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.text.font.FontStyle
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.dp
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import androidx.lifecycle.viewmodel.compose.viewModel
@@ -172,7 +171,7 @@ fun ConcordChannelScreen(
TopAppBar(
title = {
Column {
Text(channel.toBestDisplayName(), fontWeight = FontWeight.Bold, maxLines = 1)
Text(channel.toBestDisplayName(), maxLines = 1)
channel.communityName?.let {
Text(it, style = MaterialTheme.typography.labelSmall, maxLines = 1)
}
@@ -79,7 +79,7 @@ fun ConcordCreateScreen(
Scaffold(
topBar = {
TopAppBar(
title = { Text(stringRes(com.vitorpamplona.amethyst.R.string.concord_create_title), fontWeight = FontWeight.Bold) },
title = { Text(stringRes(com.vitorpamplona.amethyst.R.string.concord_create_title)) },
navigationIcon = {
IconButton(onClick = { nav.popBack() }) {
SymbolIcon(symbol = MaterialSymbols.AutoMirrored.ArrowBack, contentDescription = stringRes(com.vitorpamplona.amethyst.R.string.back))
@@ -47,7 +47,6 @@ import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.dp
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import com.vitorpamplona.amethyst.R
@@ -116,7 +115,7 @@ fun ConcordEditScreen(
Scaffold(
topBar = {
TopAppBar(
title = { Text(stringRes(R.string.concord_edit_title), fontWeight = FontWeight.Bold, maxLines = 1) },
title = { Text(stringRes(R.string.concord_edit_title), maxLines = 1) },
navigationIcon = {
IconButton(onClick = { nav.popBack() }) {
SymbolIcon(symbol = MaterialSymbols.AutoMirrored.ArrowBack, contentDescription = stringRes(R.string.back))
@@ -119,7 +119,7 @@ fun ConcordHomeScreen(
Scaffold(
topBar = {
TopAppBar(
title = { Text(stringRes(R.string.concord_home_title), fontWeight = FontWeight.Bold) },
title = { Text(stringRes(R.string.concord_home_title)) },
navigationIcon = {
// Back arrow only when this is a pushed screen (from the drawer / a deep link);
// as a bottom-nav root there is nothing to pop and the bar takes its place.
@@ -131,7 +131,7 @@ fun ConcordMembersScreen(
TopAppBar(
title = {
Column {
Text(stringRes(R.string.concord_members_title), fontWeight = FontWeight.Bold, maxLines = 1)
Text(stringRes(R.string.concord_members_title), maxLines = 1)
state?.metadata?.name?.takeIf { it.isNotBlank() }?.let {
Text(it, style = MaterialTheme.typography.labelSmall, maxLines = 1, overflow = TextOverflow.Ellipsis)
}