-
Notifications
You must be signed in to change notification settings - Fork 888
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve tab contrast #6912
Improve tab contrast #6912
Conversation
f58f0d1
to
31a449a
Compare
63f458e
to
c12d880
Compare
@karenkliu PTAL updated colors with below dmg (nightly). |
@simonhong Thanks for the update! I found a few minor issues - The browser profile dropdown menu should have some updated text; it's not using the correct name for our windows: The hover colors of omnibox for Private Window and Private Window with Tor look fine to me. But let's change the normal window (dark theme) omnibox hover color to |
52318a3
to
146ad12
Compare
@simonhong Sorry - I noticed there was a typo in my earlier comment. For the Private Window browser profile menu, it should say "Exit Private Window" as the option. I've updated it the image. |
6c7b387
to
30f7399
Compare
81875b6
to
0824a0c
Compare
@karenkliu All specs are applied. Will share new dmg after building. |
@karenkliu Uploaded new dmg file here https://drive.google.com/file/d/1F5PNexZJ5VQxoixSqdLLaF8hoLHKpPr6/view?usp=sharing PTAL again :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! 👏 👏 👏 Nice job!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good. One minor text change from reading it. Just waiting for a build and then will review further, but for now this is only feedback. Nice work!
app/brave_generated_resources.grd
Outdated
Private with Tor | ||
</message> | ||
<message name="IDS_TOR_AVATAR_BUTTON_TOOLTIP_TEXT" desc="The tooltip text of tor avatar button."> | ||
This is private window with tor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing " a" and capitalization of "Tor":
This is a private window with Tor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bsclifton Oops, something happened while rebasing. fixed again. Thanks for checking!
@@ -22,6 +22,7 @@ | |||
<structure type="chrome_scaled_image" name="IDR_PRODUCT_LOGO_32_DEV" file="brave/product_logo_32_dev.png" /> | |||
<structure type="chrome_scaled_image" name="IDR_PRODUCT_LOGO_32_DEVELOPMENT" file="brave/product_logo_32_development.png" /> | |||
<if expr="not is_android"> | |||
<structure type="chrome_scaled_image" name="IDR_TOR_WINDOW_FRAME_GRAPHIC" file="brave/tor_window_frame_graphic.png" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of interest - did you try a scalable .icon instead of PNG?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't try because .icon only works well for icon type(square) and mono color.
7317f5c
to
622195b
Compare
@bsclifton Hmm, it's strange. coloring is cross-platform implementation and it seems fine on my local. |
@bsclifton I'll try rebuild and double check again. I rebased but maybe recent |
There we go - much better! Confirmed colors are working as expected now 😄👍 Will check out the rest now... |
bounds_to_frame_graphic.Inset(0, kFrameBorderOutlineThickness); | ||
canvas->ClipRect(bounds_to_frame_graphic); | ||
} | ||
frame_graphic_->Paint(canvas, bounds_to_frame_graphic); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is cool! I had no idea it would be this easy to add the graphic up there 😄 Nice work!
@@ -41,6 +41,20 @@ class BraveLocationBarViewFocusRingHighlightPathGenerator | |||
DISALLOW_COPY_AND_ASSIGN(BraveLocationBarViewFocusRingHighlightPathGenerator); | |||
}; | |||
|
|||
base::Optional<SkColor> GetFocusRingColor(Profile* profile) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks perfect! nice and clean code too 😄👌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested it out- works great! Code also looks good too- minus one spelling problem. Hit me up once you can address that and I'll re-review / approve 😄 Great work here @simonhong and @karenkliu!
Kindly ping to @brave/patch-reviewers .. |
|
||
content::BrowserContext* ThemeServiceFactory::GetBrowserContextToUse( | ||
content::BrowserContext* context) const { | ||
+ BRAVE_THEMESERVICEFACTORY_GETBROWSERCONTEXTTOUSE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we redefine the method in chromium_src
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mkarolin Yes. I did :) PTAL.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
chromium_src
and patches
changes LGTM!
As we use different theme colors for tor window(previously, same with private), we should differentiate tor and private profile from ThemeHelper. However, upstream chromium uses only two kinds of theme provider. One for orignal theme provider and the other is incognito theme provider. If we want to add another theme provider for tor, it will add many patch files. So, I think using different theme service for tor profile is simplest way to have tor specific theme colors.
f9bce3e
to
7a7c9be
Compare
ff0eb13
to
d589649
Compare
Got all green. 🎉 Merged. |
Resolves brave/brave-browser#2735
Resolves brave/brave-browser#8807
dark mode window
private window
tor window
Profile menu bubbles
Submitter Checklist:
npm run lint
,npm run gn_check
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).QA/Yes
orQA/No
) to the associated issuerelease-notes/include
orrelease-notes/exclude
) to the associated issueTest Plan:
Reviewer Checklist:
After-merge Checklist:
changes has landed on.