tor-browser

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

commit 07661f9c71a42ba18df9a294a6eb345438e0b6c6
parent 4feeb095caf5e90f1c5485eaa97802a79a85e398
Author: Devota Aabel <daabel@mozilla.com>
Date:   Sat,  6 Dec 2025 01:03:10 +0000

Bug 2004486- Update recently visited sectoin to match new card style. r=gl,android-reviewers

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

Diffstat:
Mmobile/android/fenix/app/src/main/java/org/mozilla/fenix/home/recentvisits/view/RecentlyVisited.kt | 10+++-------
1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/home/recentvisits/view/RecentlyVisited.kt b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/home/recentvisits/view/RecentlyVisited.kt @@ -14,9 +14,6 @@ import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.widthIn import androidx.compose.foundation.rememberScrollState -import androidx.compose.foundation.shape.RoundedCornerShape -import androidx.compose.material3.Card -import androidx.compose.material3.CardDefaults import androidx.compose.material3.HorizontalDivider import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Surface @@ -48,6 +45,7 @@ import org.mozilla.fenix.compose.list.IconListItem import org.mozilla.fenix.home.recentvisits.RecentlyVisitedItem import org.mozilla.fenix.home.recentvisits.RecentlyVisitedItem.RecentHistoryGroup import org.mozilla.fenix.home.recentvisits.RecentlyVisitedItem.RecentHistoryHighlight +import org.mozilla.fenix.home.topsites.ui.HomepageCard import org.mozilla.fenix.theme.FirefoxTheme import mozilla.components.ui.icons.R as iconsR @@ -91,11 +89,9 @@ fun RecentlyVisited( vertical = 8.dp, ), ) { - Card( + HomepageCard( modifier = Modifier.fillMaxWidth(), - shape = RoundedCornerShape(8.dp), - colors = CardDefaults.cardColors(containerColor = backgroundColor), - elevation = CardDefaults.cardElevation(defaultElevation = 6.dp), + backgroundColor = backgroundColor, ) { FlowColumn( modifier = Modifier.fillMaxWidth(),