tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 9371844ef6bdd93cdcaf70be32256c46ed47c837
parent 4f2ba149596907cbee438a1ef91b8ec9dfc8813b
Author: Gabriel Luong <gabriel.luong@gmail.com>
Date:   Fri, 17 Oct 2025 03:59:09 +0000

Bug 1993649 - Replace the text color with OnSurface color variable in PrivateBrowsingDescription2 r=android-reviewers,007

Differential Revision: https://phabricator.services.mozilla.com/D268241

Diffstat:
Mmobile/android/fenix/app/src/main/java/org/mozilla/fenix/home/ui/PrivateBrowsingDescription.kt | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/home/ui/PrivateBrowsingDescription.kt b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/home/ui/PrivateBrowsingDescription.kt @@ -15,6 +15,7 @@ import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.wrapContentHeight import androidx.compose.foundation.shape.RoundedCornerShape +import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.ui.Alignment @@ -29,7 +30,6 @@ import androidx.compose.ui.text.style.TextAlign import androidx.compose.ui.text.style.TextDecoration import androidx.compose.ui.tooling.preview.Preview import androidx.compose.ui.unit.dp -import mozilla.components.ui.colors.PhotonColors import org.mozilla.fenix.R import org.mozilla.fenix.compose.LinkText import org.mozilla.fenix.compose.LinkTextState @@ -113,7 +113,7 @@ fun PrivateBrowsingDescription2( ) { Text( text = stringResource(id = R.string.felt_privacy_desc_card_title), - color = PhotonColors.White, + color = MaterialTheme.colorScheme.onSurface, textAlign = TextAlign.Center, style = FirefoxTheme.typography.headline5, ) @@ -123,7 +123,7 @@ fun PrivateBrowsingDescription2( id = R.string.felt_privacy_info_card_subtitle_3, stringResource(id = R.string.app_name), ), - color = PhotonColors.White, + color = MaterialTheme.colorScheme.onSurface, textAlign = TextAlign.Center, style = FirefoxTheme.typography.subtitle1, ) @@ -144,7 +144,7 @@ fun PrivateBrowsingDescription2( ), ), style = FirefoxTheme.typography.subtitle1, - linkTextColor = PhotonColors.White, + linkTextColor = MaterialTheme.colorScheme.onSurface, linkTextDecoration = TextDecoration.Underline, textAlign = TextAlign.Center, ) @@ -172,7 +172,7 @@ private fun PrivacyBrowsingDescription2Preview() { FirefoxTheme(theme = Theme.Private) { Column( modifier = Modifier - .background(FirefoxTheme.colors.layer1) + .background(MaterialTheme.colorScheme.surface) .fillMaxSize(), ) { PrivateBrowsingDescription2(