tor-browser

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

commit ff316bc20404cfc0be3dacebca5c20bf02047f0a
parent a78698624e09505798e59b451def01b024937976
Author: Gabriel Luong <gabriel.luong@gmail.com>
Date:   Fri, 21 Nov 2025 08:21:43 +0000

Bug 1997968 - Part 3: Migrate DownloadsTopAppBar to use M3 Acorn color tokens r=android-reviewers,007

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

Diffstat:
Mmobile/android/fenix/app/src/main/java/org/mozilla/fenix/downloads/listscreen/DownloadsTopAppBar.kt | 11++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/downloads/listscreen/DownloadsTopAppBar.kt b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/downloads/listscreen/DownloadsTopAppBar.kt @@ -8,6 +8,7 @@ import androidx.compose.foundation.layout.WindowInsets import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.material3.Icon import androidx.compose.material3.IconButton +import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Text import androidx.compose.material3.TopAppBar import androidx.compose.material3.TopAppBarDefaults @@ -63,11 +64,11 @@ internal fun DownloadsTopAppBar( private fun DownloadsTopAppBarPreview() { FirefoxTheme { DownloadsTopAppBar( - backgroundColor = FirefoxTheme.colors.layerAccent, + backgroundColor = MaterialTheme.colorScheme.primary, title = { Text( - color = FirefoxTheme.colors.textOnColorPrimary, - style = FirefoxTheme.typography.headline6, + color = MaterialTheme.colorScheme.inverseOnSurface, + style = FirefoxTheme.typography.headline5, text = stringResource( R.string.download_multi_select_title, 1, @@ -79,7 +80,7 @@ private fun DownloadsTopAppBarPreview() { Icon( painter = painterResource(iconsR.drawable.mozac_ic_back_24), contentDescription = stringResource(R.string.download_navigate_back_description), - tint = FirefoxTheme.colors.iconPrimary, + tint = MaterialTheme.colorScheme.inverseOnSurface, ) } }, @@ -90,7 +91,7 @@ private fun DownloadsTopAppBarPreview() { contentDescription = stringResource( R.string.content_description_menu, ), - tint = FirefoxTheme.colors.iconOnColor, + tint = MaterialTheme.colorScheme.inverseOnSurface, ) } },