Skip to content

Commit

Permalink
NTP: Filter not-optimal background images from the new bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
cezaraugusto authored and bsclifton committed Mar 5, 2020
1 parent c2f1502 commit 8c4bcfe
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 59 deletions.
9 changes: 2 additions & 7 deletions browser/ui/webui/brave_webui_source.cc
Original file line number Diff line number Diff line change
Expand Up @@ -75,23 +75,18 @@ void CustomizeWebUIHTMLSource(const std::string &name,
{ "anders-jilden.webp", IDR_BRAVE_NEW_TAB_BACKGROUND1 },
{ "andreas-gucklhorn.webp", IDR_BRAVE_NEW_TAB_BACKGROUND2 },
{ "andy-mai.webp", IDR_BRAVE_NEW_TAB_BACKGROUND3 },
{ "annie-spratt.webp", IDR_BRAVE_NEW_TAB_BACKGROUND4 },
{ "anton-repponen.webp", IDR_BRAVE_NEW_TAB_BACKGROUND5 },
{ "ben-karpinski.webp", IDR_BRAVE_NEW_TAB_BACKGROUND6 },
{ "dc-cavalleri.webp", IDR_BRAVE_NEW_TAB_BACKGROUND7 },
{ "joe-gardner.webp", IDR_BRAVE_NEW_TAB_BACKGROUND8 },
{ "louis-kim.webp", IDR_BRAVE_NEW_TAB_BACKGROUND9 },
{ "matt-palmer.webp", IDR_BRAVE_NEW_TAB_BACKGROUND10 },
{ "oliwier-gesla.webp", IDR_BRAVE_NEW_TAB_BACKGROUND11 },
{ "svalbard-jerol-soibam.webp", IDR_BRAVE_NEW_TAB_BACKGROUND12 },
{ "will-christiansen-glacier-peak.webp", IDR_BRAVE_NEW_TAB_BACKGROUND13 },
{ "will-christiansen-ice.webp", IDR_BRAVE_NEW_TAB_BACKGROUND14 },
{ "xavier-balderas-cejudo.webp", IDR_BRAVE_NEW_TAB_BACKGROUND15 },
#endif
// private tab
{ "c168145d6bf1abf2c0322636366f7dbe.svg", IDR_BRAVE_PRIVATE_TAB_TOR_IMG }, // NOLINT
{ "dbdc336ccc651b8a7c925b3482d6e65a.svg", IDR_BRAVE_PRIVATE_TAB_IMG }
}
#endif
}
#if !defined(OS_ANDROID)
}, {
std::string("rewards"), {
Expand Down
47 changes: 0 additions & 47 deletions components/brave_new_tab_ui/data/backgrounds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at https://mozilla.org/MPL/2.0/. */

// 'name': '1',
// 'source': 'ntp-1.webp',
// 'author': 'Pok Rie',
// 'link': 'https://www.pexels.com/@pok-rie-33563',
// 'originalUrl': 'https://www.pexels.com/photo/red-white-and-blue-abstract-painting-1045850/',
// 'license': 'https://www.pexels.com/photo-license/'

export const images: NewTab.Image[] = [
{
'name': 'ntp-fall-2019-1',
Expand All @@ -34,14 +27,6 @@ export const images: NewTab.Image[] = [
'originalUrl': 'https://unsplash.com/photos/4knR_YzeUVc',
'license': 'https://unsplash.com/license'
},
{
'name': 'ntp-fall-2019-4',
'source': 'annie-spratt.webp',
'author': 'Annie Spratt',
'link': 'https://unsplash.com/@anniespratt?utm_source=unsplash&utm_medium=referral&utm_content=credit',
'originalUrl': 'https://unsplash.com/photos/C9jP5AlgcuQ',
'license': 'https://unsplash.com/license'
},
{
'name': 'ntp-fall-2019-5',
'source': 'anton-repponen.webp',
Expand All @@ -58,14 +43,6 @@ export const images: NewTab.Image[] = [
'originalUrl': 'Contributor sent the hi-res version through email',
'license': 'Used with permission'
},
{
'name': 'ntp-fall-2019-7',
'source': 'dc-cavalleri.webp',
'author': 'D.C. Cavalleri',
'link': 'https://gradivis.com',
'originalUrl': 'Contributor sent the hi-res version through email',
'license': 'Used with permission'
},
{
'name': 'ntp-fall-2019-8',
'source': 'joe-gardner.webp',
Expand All @@ -74,14 +51,6 @@ export const images: NewTab.Image[] = [
'originalUrl': 'https://unsplash.com/photos/4xv3lqnanYc',
'license': 'Used with permission'
},
{
'name': 'ntp-fall-2019-9',
'source': 'louis-kim.webp',
'author': 'Louis Kim',
'link': 'http://louiskimphotography.com',
'originalUrl': 'Contributor sent the hi-res version through email',
'license': 'Used with permission'
},
{
'name': 'ntp-fall-2019-10',
'source': 'matt-palmer.webp',
Expand All @@ -90,14 +59,6 @@ export const images: NewTab.Image[] = [
'originalUrl': 'https://unsplash.com/photos/veMnvjmfoxw',
'license': 'Used with permission'
},
{
'name': 'ntp-fall-2019-11',
'source': 'oliwier-gesla.webp',
'author': 'Oliwier Gesla',
'link': 'https://www.instagram.com/oliwiergesla/',
'originalUrl': 'Contributor sent the hi-res version through email',
'license': 'Used with permission'
},
{
'name': 'ntp-fall-2019-12',
'source': 'svalbard-jerol-soibam.webp',
Expand All @@ -121,13 +82,5 @@ export const images: NewTab.Image[] = [
'link': 'www.theskyfolk.com',
'originalUrl': 'Contributor sent the hi-res version through email',
'license': 'Used with permission'
},
{
'name': 'ntp-fall-2019-15',
'source': 'xavier-balderas-cejudo.webp',
'author': 'Xavier Balderas Cejudo',
'link': 'https://unsplash.com/@xavibalderas?utm_source=unsplash&utm_medium=referral&utm_content=credit',
'originalUrl': 'https://unsplash.com/photos/kxIE049IZ1g',
'license': 'https://unsplash.com/license'
}
]
Binary file removed components/img/newtab/backgrounds/annie-spratt.webp
Binary file not shown.
Binary file not shown.
Binary file removed components/img/newtab/backgrounds/louis-kim.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
5 changes: 0 additions & 5 deletions components/resources/brave_components_resources.grd
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,13 @@
<include name="IDR_BRAVE_NEW_TAB_BACKGROUND1" file="../img/newtab/backgrounds/anders-jilden.webp" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_BACKGROUND2" file="../img/newtab/backgrounds/andreas-gucklhorn.webp" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_BACKGROUND3" file="../img/newtab/backgrounds/andy-mai.webp" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_BACKGROUND4" file="../img/newtab/backgrounds/annie-spratt.webp" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_BACKGROUND5" file="../img/newtab/backgrounds/anton-repponen.webp" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_BACKGROUND6" file="../img/newtab/backgrounds/ben-karpinski.webp" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_BACKGROUND7" file="../img/newtab/backgrounds/dc-cavalleri.webp" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_BACKGROUND8" file="../img/newtab/backgrounds/joe-gardner.webp" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_BACKGROUND9" file="../img/newtab/backgrounds/louis-kim.webp" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_BACKGROUND10" file="../img/newtab/backgrounds/matt-palmer.webp" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_BACKGROUND11" file="../img/newtab/backgrounds/oliwier-gesla.webp" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_BACKGROUND12" file="../img/newtab/backgrounds/svalbard-jerol-soibam.webp" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_BACKGROUND13" file="../img/newtab/backgrounds/will-christiansen-glacier-peak.webp" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_BACKGROUND14" file="../img/newtab/backgrounds/will-christiansen-ice.webp" type="BINDATA" />
<include name="IDR_BRAVE_NEW_TAB_BACKGROUND15" file="../img/newtab/backgrounds/xavier-balderas-cejudo.webp" type="BINDATA" />
</if>

<!-- WebUI private new tab resources -->
Expand Down

0 comments on commit 8c4bcfe

Please sign in to comment.