diff --git a/browser/ui/webui/brave_webui_source.cc b/browser/ui/webui/brave_webui_source.cc index 4ae389ac8586..0ef2afa4a07d 100644 --- a/browser/ui/webui/brave_webui_source.cc +++ b/browser/ui/webui/brave_webui_source.cc @@ -114,8 +114,7 @@ void CustomizeWebUIHTMLSource(const std::string &name, localized_strings = { { std::string("newtab"), { - { "adsBlocked", IDS_BRAVE_NEW_TAB_TOTAL_ADS_BLOCKED }, - { "trackersBlocked", IDS_BRAVE_NEW_TAB_TOTAL_TRACKERS_BLOCKED }, + { "adsTrackersBlocked", IDS_BRAVE_NEW_TAB_TOTAL_ADS_TRACKERS_BLOCKED }, { "httpsUpgraded", IDS_BRAVE_NEW_TAB_TOTAL_HTTPS_UPGRADES }, { "estimatedTimeSaved", IDS_BRAVE_NEW_TAB_TOTAL_TIME_SAVED }, { "thumbRemoved", IDS_BRAVE_NEW_TAB_THUMB_REMOVED }, diff --git a/components/brave_new_tab_ui/components/default/stats/style.ts b/components/brave_new_tab_ui/components/default/stats/style.ts index 8a1863855d98..f52a977eac1e 100644 --- a/components/brave_new_tab_ui/components/default/stats/style.ts +++ b/components/brave_new_tab_ui/components/default/stats/style.ts @@ -35,10 +35,7 @@ export const StyledStatsItem = styled<{}, 'li'>('li')` color: #FB542B; } &:nth-child(2) { - color: #B02FFB; - } - &:nth-child(3) { - color: #4C54D2; + color: #A0A5EB; } &:last-child { color: #FFFFFF; diff --git a/components/brave_new_tab_ui/containers/newTab/stats.tsx b/components/brave_new_tab_ui/containers/newTab/stats.tsx index ae0cc28f60d8..fbabd035b95e 100644 --- a/components/brave_new_tab_ui/containers/newTab/stats.tsx +++ b/components/brave_new_tab_ui/containers/newTab/stats.tsx @@ -62,21 +62,16 @@ class Stats extends React.Component { } render () { - const trackedBlockersCount = this.trackedBlockersCount.toLocaleString() - const adblockCount = this.adblockCount.toLocaleString() + const trackedBlockersCount = (this.trackedBlockersCount + this.adblockCount).toLocaleString() const httpsUpgradedCount = this.httpsUpgradedCount.toLocaleString() const timeSaved = this.estimatedTimeSaved return ( - { render () { return ( - - + diff --git a/components/brave_new_tab_ui/stories/fakeLocale.ts b/components/brave_new_tab_ui/stories/fakeLocale.ts index c76f6276b9ac..d38beffeaa43 100644 --- a/components/brave_new_tab_ui/stories/fakeLocale.ts +++ b/components/brave_new_tab_ui/stories/fakeLocale.ts @@ -4,8 +4,7 @@ const locale: any = { // stats - trackersBlocked: 'Trackers Blocked', - adsBlocked: 'Ads Blocked', + adsTrackersBlocked: 'Ads and Trackers Blocked', httpsUpgrades: 'HTTPS Upgrades', estimatedTimeSaved: 'Estimated Time Saved', minutes: 'minutes', diff --git a/components/resources/brave_components_strings.grd b/components/resources/brave_components_strings.grd index 6c2e8cb7df5e..4a080f72406a 100644 --- a/components/resources/brave_components_strings.grd +++ b/components/resources/brave_components_strings.grd @@ -118,8 +118,7 @@ - Ads Blocked - Trackers Blocked + Ads and Trackers Blocked HTTPS Upgrades Estimated Time Saved Top site removed.