Styling fixes to profile picker.

- Removes background images in the main view
- Hides background image in the profile customization view
- Fixes Add button border radius.
This commit is contained in:
mkarolin
2021-03-23 14:55:40 -04:00
parent 5f0755f372
commit 2d9e89be6c
7 changed files with 29 additions and 0 deletions
@@ -0,0 +1 @@
<svg width="169" height="400" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h400v169H0z" fill="#3c4043" style="fill-opacity: 0.0;"/></svg>

After

Width:  |  Height:  |  Size: 153 B

@@ -0,0 +1 @@
<svg width="169" height="400" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h400v169H0z" fill="#3c4043" style="fill-opacity: 0.0;"/></svg>

After

Width:  |  Height:  |  Size: 153 B

@@ -0,0 +1 @@
<svg width="169" height="400" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h400v169H0z" fill="#f8f9fa" style="fill-opacity: 0.0;"/></svg>

After

Width:  |  Height:  |  Size: 153 B

@@ -0,0 +1 @@
<svg width="169" height="400" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h400v169H0z" fill="#f8f9fa" style="fill-opacity: 0.0;"/></svg>

After

Width:  |  Height:  |  Size: 153 B

+1
View File
@@ -255,6 +255,7 @@ const util = {
fileMap.add([path.join(braveBrowserResourcesDir, 'chrome-logo-faded.png'), path.join(chromeBrowserResourcesDir, 'chrome-logo-faded.png')])
fileMap.add([path.join(braveBrowserResourcesDir, 'downloads', 'images', 'incognito_marker.svg'), path.join(chromeBrowserResourcesDir, 'downloads', 'images', 'incognito_marker.svg')])
fileMap.add([path.join(braveBrowserResourcesDir, 'settings', 'images'), path.join(chromeBrowserResourcesDir, 'settings', 'images')])
fileMap.add([path.join(braveBrowserResourcesDir, 'signin', 'profile_picker', 'images'), path.join(chromeBrowserResourcesDir, 'signin', 'profile_picker', 'images')])
// Copy to make our ${branding_path_component}_behaviors.cc
fileMap.add([path.join(config.braveCoreDir, 'chromium_src', 'chrome', 'installer', 'setup', 'brave_behaviors.cc'),
path.join(config.srcDir, 'chrome', 'installer', 'setup', 'brave_behaviors.cc')])
@@ -0,0 +1,12 @@
diff --git a/chrome/browser/resources/signin/profile_picker/profile_creation_flow/local_profile_customization.html b/chrome/browser/resources/signin/profile_picker/profile_creation_flow/local_profile_customization.html
index 429b10a04532c4396002e74ff4693241a6a0cf85..4e34cad1382dd943957015ea499cd496bf22c330 100644
--- a/chrome/browser/resources/signin/profile_picker/profile_creation_flow/local_profile_customization.html
+++ b/chrome/browser/resources/signin/profile_picker/profile_creation_flow/local_profile_customization.html
@@ -152,6 +152,7 @@
#doneButton {
width : 32px;
}
+ .banner { visibility: hidden; }
@media (prefers-color-scheme: dark) {
#nameInput {
@@ -0,0 +1,12 @@
diff --git a/chrome/browser/resources/signin/profile_picker/profile_picker_main_view.js b/chrome/browser/resources/signin/profile_picker/profile_picker_main_view.js
index f1c5345ec0b62325e5829325723c90b6a5de30c1..6b392a9882925c09fde10ce45e8db41d96fee11b 100644
--- a/chrome/browser/resources/signin/profile_picker/profile_picker_main_view.js
+++ b/chrome/browser/resources/signin/profile_picker/profile_picker_main_view.js
@@ -87,6 +87,7 @@ Polymer({
this.manageProfilesBrowserProxy_ =
ManageProfilesBrowserProxyImpl.getInstance();
+ this.$$('#addProfile').style.borderRadius = '8px';
},
/** @override */