Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(298)

Issue 2511973002: Reverse bookmark buttons and menus in RTL (Closed)

Created:
4 years, 1 month ago by lgrey
Modified:
3 years, 7 months ago
Reviewers:
Elly Fong-Jones, shrike
CC:
chromium-reviews, tfarina, jshin+watch_chromium.org, mac-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reverse bookmark buttons and menus in RTL This looks a little odd to me when the text is LTR with the Material Design ellipsis cut-off (doesn't seem like Views has adopted this yet) but RTL text looks good. Also includes a method to flip directional images (arrows, etc.) BUG=648561, 648560

Patch Set 1 #

Patch Set 2 : Increase cell size to account for gradient button's inset #

Total comments: 2

Patch Set 3 : Use line width instead of hardcoding cell inset #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -59 lines) Patch
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm View 1 4 chunks +21 lines, -10 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm View 1 2 7 chunks +47 lines, -24 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell_unittest.mm View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/gradient_button_cell.h View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/gradient_button_cell.mm View 1 2 5 chunks +21 lines, -20 lines 0 comments Download
M chrome/browser/ui/cocoa/l10n_util.h View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/l10n_util.mm View 1 2 1 chunk +43 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (11 generated)
lgrey
PTAL :)
4 years, 1 month ago (2016-11-17 22:09:04 UTC) #2
Elly Fong-Jones
lgtm :)
4 years, 1 month ago (2016-11-18 18:42:52 UTC) #7
shrike
The Apps item's title looks like it's too far to the right in LTR mode ...
4 years, 1 month ago (2016-11-19 00:37:37 UTC) #8
lgrey
On 2016/11/19 00:37:37, shrike wrote: > The Apps item's title looks like it's too far ...
4 years ago (2016-11-28 15:42:34 UTC) #9
shrike
On 2016/11/28 15:42:34, lgrey wrote: > shrike@ I had some issues like the first two ...
4 years ago (2016-11-28 18:19:14 UTC) #10
lgrey
On 2016/11/28 18:19:14, shrike wrote: > On 2016/11/28 15:42:34, lgrey wrote: > > shrike@ I ...
4 years ago (2016-11-28 22:53:04 UTC) #11
Elly Fong-Jones
On 2016/11/28 22:53:04, lgrey wrote: > On 2016/11/28 18:19:14, shrike wrote: > > On 2016/11/28 ...
4 years ago (2016-11-29 13:51:48 UTC) #12
lgrey
On 2016/11/29 13:51:48, Elly Fong-Jones wrote: > On 2016/11/28 22:53:04, lgrey wrote: > > On ...
4 years ago (2016-11-29 19:34:26 UTC) #13
shrike
https://codereview.chromium.org/2511973002/diff/20001/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm (right): https://codereview.chromium.org/2511973002/diff/20001/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm#newcode369 chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm:369: cellSize.width += 2; The inset should be a value ...
4 years ago (2016-12-02 00:28:07 UTC) #14
lgrey
https://codereview.chromium.org/2511973002/diff/20001/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm (right): https://codereview.chromium.org/2511973002/diff/20001/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm#newcode369 chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm:369: cellSize.width += 2; On 2016/12/02 00:28:07, shrike wrote: > ...
4 years ago (2016-12-02 18:07:43 UTC) #19
shrike
On 2016/12/02 18:07:43, lgrey wrote: > Done. shrike@ PTAL > > Turns out it's not ...
4 years ago (2016-12-03 01:51:00 UTC) #20
lgrey
3 years, 7 months ago (2017-05-04 21:22:02 UTC) #23
On 2016/12/03 01:51:00, shrike wrote:
> On 2016/12/02 18:07:43, lgrey wrote:
> > Done. shrike@ PTAL
> > 
> > Turns out it's not actually a constant -- I got thrown by a local with a "k"
> > prefix in the relevant GradientButtonCell method (also renamed this for
> > posterity.)
> 
> Not sure what's going on but if you bookmark the About page, the icon and
title
> are 1pt further to the right with your patch than without it. I don't know if
> other bookmarks are affected (only the About bookmark stood out as looking odd
> but maybe all are affected). I will e-mail you a screenshot.

This was landed as crrev.com/2845003003

Deleting

Powered by Google App Engine
This is Rietveld 408576698