Brave-browser: Allow user to show/hide background images on New Tab Page

Created on 21 May 2019  路  10Comments  路  Source: brave/brave-browser

Test plan

See https://github.com/brave/brave-core/pull/2668#event-2422895312

Description

Provide users with the ability to show/hide background images on the New Tab page.

Designs

Add a new icon on the NTP that represents Dashboard settings:

r0 background images 1

Clicking or tab selecting the icon shows a menu with dashboard settings:

r0 background images 2

Clicking or tab selecting the toggle keeps the menu open while turning off the background image:

r0 background images 4

Clicking anywhere outside the menu closes it:

r0 background images 5

Design Specs

r0 background images specs

The Dashboard Settings menu should support dark theme set at the OS level:
r0 background images dark theme

Abstract link for more CSS/layout: https://share.goabstract.com/9563ae1d-93af-40ef-811b-4c3f384fe8f4

QA Pass-Linux QA Pass-Win64 QA Pass-macOS QTest-Plan-Specified QYes featurnew-tab prioritP3 release-noteinclude

Most helpful comment

Huge +1 for custom colour picker for new tab page.

All 10 comments

@imptrx reach out to @rossmoody for guidance on front-end components in our design system

@karenkliu with no background image is it going to be the gradient colour? or is that customized to pick the system colour scheme because Windows and Mac now supports dark theme to be used?

@srirambv to start the no background image will be a gradient color. We will of course be supporting more options for the background image in the future (pick your own image, set to a solid color, pick a solid color from color picker, pick a different gradient) etc.

Huge +1 for custom colour picker for new tab page.

@karenkliu There are now 4 buttons here that look the same, but do very different things - one unintrusively pops up a toggle, the others load whole different pages. Can we make it intuitive that 3 of them are links to different pages, and 1 of them will lead to a menu? Perhaps by putting an arrow on that button.

@petemill We can temporarily resolve that by making new icons for Settings, Bookmarks, and History that has an arrow on them.
Or, we can wait for planned updates to the Top Sites behavior, where the user can add/remove any site, including browser pages such as Settings, Bookmarks, and History, to that section. At this point we would remove the persistent icons at the bottom right, leaving just the Dashboard Settings icon. Need to discuss with @rebron whether we want to invest in the stopgap solution (new icon) or be OK with this discrepancy for now while waiting for fixes to the Top Sites widget.

@karenkliu Stopgap with new icons per @petemill's suggestion.

@rebron I created a separate issue #4930 to update the icons.

Updated labelling to help with QA and edited original post to link to test plan 馃憤

Verification passed on

Brave | 0.68.106 Chromium: 76.0.3809.62聽(Official Build)聽dev聽(64-bit)
-- | --
Revision | 7b77856b3aa34d72f246d12340fc1ded8b2c0e83-refs/branch-heads/3809@{#798}
OS | Windows聽10 OS Version 1803 (Build 17134.523)

image

  • Verified New tab page by changing the Theme and Brave color

Verification passed on

Brave | 0.68.109 Chromium: 76.0.3809.62聽(Official Build)聽dev聽(64-bit)
-- | --
Revision | 7b77856b3aa34d72f246d12340fc1ded8b2c0e83-refs/branch-heads/3809@{#798}
OS | Ubuntu 18.04 LTS

Verified passed with

Brave | 0.68.116 Chromium: 76.0.3809.87聽(Official Build)聽beta聽(64-bit)
-- | --
Revision | 111fe1e15d5ced26080a7dc239bcfe70f6c49aad-refs/branch-heads/3809@{#967}
OS | Mac OS X

Was this page helpful?
0 / 5 - 0 ratings