Skip to content

Commit

Permalink
Merge branch 'develop' into feat/disable-x86-support-cherry-pick
Browse files Browse the repository at this point in the history
  • Loading branch information
yamilmedina authored Nov 27, 2024
2 parents 85163ab + 04c9a3d commit ca69ba1
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ fun MessageDetailsEmptyScreenText(
append(learnMoreText)
addStyle(
style = SpanStyle(
color = MaterialTheme.colorScheme.primary,
color = MaterialTheme.colorScheme.onBackground,
textDecoration = TextDecoration.Underline
),
start = 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import com.wire.android.R
import com.wire.android.ui.common.preview.MultipleThemePreviews
import com.wire.android.ui.home.conversations.details.participants.folderWithElements
import com.wire.android.ui.home.conversations.messagedetails.model.MessageDetailsReactionsData
import com.wire.android.ui.theme.WireTheme

@Composable
fun MessageDetailsReactions(
Expand Down Expand Up @@ -69,8 +70,10 @@ fun MessageDetailsReactions(
@MultipleThemePreviews
@Composable
fun PreviewMessageDetailsReactions() {
MessageDetailsReactions(
reactionsData = MessageDetailsReactionsData(),
onReactionsLearnMore = {}
)
WireTheme {
MessageDetailsReactions(
reactionsData = MessageDetailsReactionsData(),
onReactionsLearnMore = {}
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.tooling.preview.Preview
import com.wire.android.R
import com.wire.android.ui.common.preview.MultipleThemePreviews
import com.wire.android.ui.home.conversations.details.participants.folderWithElements
import com.wire.android.ui.home.conversations.messagedetails.model.MessageDetailsReadReceiptsData
import com.wire.android.ui.theme.WireTheme

@Composable
fun MessageDetailsReadReceipts(
Expand Down Expand Up @@ -64,11 +65,13 @@ fun MessageDetailsReadReceipts(
}
}

@Preview(showBackground = true)
@MultipleThemePreviews
@Composable
fun PreviewMessageDetailsReadReceipts() {
MessageDetailsReadReceipts(
readReceiptsData = MessageDetailsReadReceiptsData(),
onReadReceiptsLearnMore = {}
)
WireTheme {
MessageDetailsReadReceipts(
readReceiptsData = MessageDetailsReadReceiptsData(),
onReadReceiptsLearnMore = {}
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ fun SystemMessageItem(
text = annotatedString,
linkText = learnMoreLink?.let { stringResource(id = R.string.label_learn_more) },
textColor = MaterialTheme.wireColorScheme.secondaryText,
linkColor = MaterialTheme.wireColorScheme.onBackground,
onLinkClick = { learnMoreLink?.let { CustomTabsHelper.launchUrl(context, it) } },
onTextLayout = {
centerOfFirstLine = if (it.lineCount == 0) 0f else ((it.getLineTop(0) + it.getLineBottom(0)) / 2)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,8 @@ fun FileSharingRestrictedContent(
annotation = learnMoreUrl,
onClick = { CustomTabsHelper.launchUrl(context, learnMoreUrl) }
)
)
),
textColor = colorsScheme().onBackground
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ fun TextWithLinkSuffix(
textStyle: TextStyle = MaterialTheme.wireTypography.body01,
textColor: Color = MaterialTheme.wireColorScheme.onBackground,
linkStyle: TextStyle = MaterialTheme.wireTypography.body02,
linkColor: Color = MaterialTheme.wireColorScheme.primary,
linkColor: Color = MaterialTheme.wireColorScheme.onBackground,
linkDecoration: TextDecoration = TextDecoration.Underline,
onTextLayout: (TextLayoutResult) -> Unit = {}
) {
Expand Down

0 comments on commit ca69ba1

Please sign in to comment.