Skip to content

Commit

Permalink
Removing bold titles
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorpamplona committed Oct 18, 2023
1 parent d9b0fbe commit 27286c7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ private fun HashTagTopBar(
title = {
Text(
remember(tag) { "#$tag" },
fontWeight = FontWeight.Bold,
modifier = Modifier.weight(1f)
)

Expand All @@ -232,7 +231,7 @@ private fun CommunityTopBar(
if (baseNote != null) {
FlexibleTopBarWithBackButton(
title = {
ShortCommunityHeader(baseNote, fontWeight = FontWeight.Medium, accountViewModel, nav)
ShortCommunityHeader(baseNote, accountViewModel, nav)
},
extendableRow = {
Column(Modifier.verticalScroll(rememberScrollState())) {
Expand Down Expand Up @@ -299,7 +298,7 @@ private fun RenderRoomTopBar(

Spacer(modifier = DoubleHorzSpacer)

UsernameDisplay(baseUser, Modifier.weight(1f), fontWeight = FontWeight.Medium)
UsernameDisplay(baseUser, Modifier.weight(1f), fontWeight = FontWeight.Normal)
}
}
},
Expand Down Expand Up @@ -330,7 +329,7 @@ private fun RenderRoomTopBar(
Modifier
.padding(start = 10.dp)
.weight(1f),
fontWeight = FontWeight.Medium,
fontWeight = FontWeight.Normal,
accountViewModel.userProfile()
)
},
Expand All @@ -355,7 +354,6 @@ private fun ChannelTopBar(
ShortChannelHeader(
baseChannel = baseChannel,
accountViewModel = accountViewModel,
fontWeight = FontWeight.Medium,
nav = nav,
showFlag = true
)
Expand Down Expand Up @@ -829,10 +827,7 @@ fun FlexibleTopBarWithBackButton(
title = title,
extendableRow = extendableRow,
navigationIcon = {
IconButton(
onClick = popBack,
modifier = Modifier
) {
IconButton(onClick = popBack) {
ArrowBackIcon()
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ fun LongCommunityHeader(
}

@Composable
fun ShortCommunityHeader(baseNote: AddressableNote, fontWeight: FontWeight = FontWeight.Bold, accountViewModel: AccountViewModel, nav: (String) -> Unit) {
fun ShortCommunityHeader(baseNote: AddressableNote, accountViewModel: AccountViewModel, nav: (String) -> Unit) {
val noteState by baseNote.live().metadata.observeAsState()
val noteEvent = remember(noteState) { noteState?.note?.event as? CommunityDefinitionEvent } ?: return

Expand Down Expand Up @@ -753,7 +753,6 @@ fun ShortCommunityHeader(baseNote: AddressableNote, fontWeight: FontWeight = Fon
Row(verticalAlignment = Alignment.CenterVertically) {
Text(
text = remember(noteState) { noteEvent.dTag() },
fontWeight = fontWeight,
maxLines = 1,
overflow = TextOverflow.Ellipsis
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,6 @@ fun ShowVideoStreaming(
fun ShortChannelHeader(
baseChannel: Channel,
accountViewModel: AccountViewModel,
fontWeight: FontWeight = FontWeight.Bold,
nav: (String) -> Unit,
showFlag: Boolean
) {
Expand Down Expand Up @@ -730,7 +729,6 @@ fun ShortChannelHeader(
Row(verticalAlignment = Alignment.CenterVertically) {
Text(
text = remember(channelState) { channel.toBestDisplayName() },
fontWeight = fontWeight,
maxLines = 1,
overflow = TextOverflow.Ellipsis
)
Expand Down

0 comments on commit 27286c7

Please sign in to comment.