-
Notifications
You must be signed in to change notification settings - Fork 901
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
Tabs bottom border radius and separator UI #422
Conversation
removed label on PR until it's landed on that branch, I think that's preferable to see fast when things are merged and not accidentally miss anything. I do this typically from the closed PR page. |
f3842b1
to
df6e36b
Compare
Rebasing and testing on latest master / C70 |
8f7c159
to
6d36bf1
Compare
When we need to override some original method and our new method needs many anonymous functions in original file, how about below in upstream file?
|
@simonhong that is valid, but it puts some of our customized logic mixed in with the chromium source, whilst we may have some other logic in the brave modules. The method currently in this PR is a proposal to keep the logic changes in the brave modules to avoid confusion. If we still prefer putting the function in the patched file over de-anonymizing the namespace, then sure - I'll make that change. |
@petemill , Yep, my suggestion is just another option :) |
Fix brave/brave-browser#962 Brave design spec shows no bottom border radius on tabs. This patching method, although not great, is simple compared to the amount of code which would need to be copied over and only slightly modified.
6d36bf1
to
6c10e41
Compare
@simonhong addressed all feedback now - thanks. Decided to keep in the de-anonymizing namespace option after speaking to other team members due to the less worse impact on future rebasing. |
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.
LGTM with nits. 👍
flags.setColor(separator_color(separator_opacities.right)); | ||
canvas->DrawRoundRect( | ||
trailing_separator_bounds, scaled_separator_radius, flags); | ||
} |
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.
nit: last empty line.
browser/ui/views/tabs/brave_tab.h
Outdated
#include "ui/gfx/geometry/rect.h" | ||
|
||
namespace chrome_browser_ui_views_tabs_tab_cc { | ||
const gfx::RectF ScaleAndAlignBounds(const gfx::Rect& bounds, |
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.
nit: indent
} | ||
|
||
class BraveTab : public Tab { | ||
public: |
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.
nit: indent
6c10e41
to
de337bc
Compare
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.
++
Tabs bottom border radius and separator UI
0.55.x f1d811d |
Added merged/0.55.x label |
Fix brave/brave-browser#962
Brave design spec shows no bottom border radius on tabs.
This patching method, although not great, is simple compared to the amount of code which would need to be copied over and only slightly modified, since bottom border radius is calculated in the middle of a long drawing function.
Feedback appreciated.
Submitter Checklist:
git rebase -i
to squash commits (if needed).Test Plan:
Reviewer Checklist: