|
|
Created:
3 years, 11 months ago by Tom (Use chromium acct) Modified:
3 years, 10 months ago Reviewers:
sky CC:
chromium-reviews, tfarina, Elliot Glaysher Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionLinux UI: Fix profile chooser button background color
Previously, the profile chooser hovered background color was hardcoded to
0xEAEAEA. This is about the same color as dark themes will use for their label
text, making the hovered text unreadable. This CL changes the color to use the
menu item hovered color instead. Images of the change at:
https://bugs.chromium.org/p/chromium/issues/detail?id=677286#c7
BUG=677286
R=sky@chromium.org
Review-Url: https://codereview.chromium.org/2624683002
Cr-Commit-Position: refs/heads/master@{#448542}
Committed: https://chromium.googlesource.com/chromium/src/+/f0de79a0e44c878b66df8012e77ff38896fe8faf
Patch Set 1 #Patch Set 2 : add ifdefs so this only affects linux #Patch Set 3 : Rewrite #
Total comments: 12
Patch Set 4 : Address sky@'s comments #Patch Set 5 : fix win build #
Depends on Patchset: Messages
Total messages: 46 (28 generated)
Description was changed from ========== Linux UI: Fix profile choose button background color BUG=677286 R=erg@chromium.org ========== to ========== Linux UI: Fix profile choose button background color Previously, the profile chooser hovered background color was hardcoded to 0xeaeaea. This is about the same color as dark themes will use for their label text, making the hovered text unreadable. This CL changes the color to use the menu item hovered color instead. BUG=677286 R=sky@chromium.org ==========
thomasanderson@google.com changed reviewers: + sky@chromium.org - erg@chromium.org
Description was changed from ========== Linux UI: Fix profile choose button background color Previously, the profile chooser hovered background color was hardcoded to 0xeaeaea. This is about the same color as dark themes will use for their label text, making the hovered text unreadable. This CL changes the color to use the menu item hovered color instead. BUG=677286 R=sky@chromium.org ========== to ========== Linux UI: Fix profile choose button background color Previously, the profile chooser hovered background color was hardcoded to 0xEAEAEA. This is about the same color as dark themes will use for their label text, making the hovered text unreadable. This CL changes the color to use the menu item hovered color instead. Images of the change at: https://bugs.chromium.org/p/chromium/issues/detail?id=677286#c7 BUG=677286 R=sky@chromium.org ==========
sky@ ptal
How are windows and chromeos effected? Is the nativetheme color the same as the old?
On 2017/01/10 15:58:23, sky wrote: > How are windows and chromeos effected? Is the nativetheme color the same as the > old? The chromeos color is almost the same, it's now 0xEBEBEB instead of 0xEAEAEA. I tested on Windows in a chromoting session, so the colors may not be perfect. On windows the color used to be 0xECEBEC and is now 0xEDECED
Please run this by the designers to make sure they are ok. On Tue, Jan 10, 2017 at 1:23 PM, thomasanderson via Chromium-reviews <chromium-reviews@chromium.org> wrote: > On 2017/01/10 15:58:23, sky wrote: >> How are windows and chromeos effected? Is the nativetheme color the same >> as > the >> old? > > The chromeos color is almost the same, it's now 0xEBEBEB instead of > 0xEAEAEA. > > I tested on Windows in a chromoting session, so the colors may not be > perfect. > On windows the color used to be 0xECEBEC and is now 0xEDECED > > https://codereview.chromium.org/2624683002/ -- You received this message because you are subscribed to the Google Groups "Chromium-reviews" group. To unsubscribe from this group and stop receiving emails from it, send an email to chromium-reviews+unsubscribe@chromium.org.
Also, I think chromoting likely gives different colors, but you should verify that. On Tue, Jan 10, 2017 at 3:37 PM, Scott Violet <sky@chromium.org> wrote: > Please run this by the designers to make sure they are ok. > > On Tue, Jan 10, 2017 at 1:23 PM, thomasanderson via Chromium-reviews > <chromium-reviews@chromium.org> wrote: >> On 2017/01/10 15:58:23, sky wrote: >>> How are windows and chromeos effected? Is the nativetheme color the same >>> as >> the >>> old? >> >> The chromeos color is almost the same, it's now 0xEBEBEB instead of >> 0xEAEAEA. >> >> I tested on Windows in a chromoting session, so the colors may not be >> perfect. >> On windows the color used to be 0xECEBEC and is now 0xEDECED >> >> https://codereview.chromium.org/2624683002/ -- You received this message because you are subscribed to the Google Groups "Chromium-reviews" group. To unsubscribe from this group and stop receiving emails from it, send an email to chromium-reviews+unsubscribe@chromium.org.
Description was changed from ========== Linux UI: Fix profile choose button background color Previously, the profile chooser hovered background color was hardcoded to 0xEAEAEA. This is about the same color as dark themes will use for their label text, making the hovered text unreadable. This CL changes the color to use the menu item hovered color instead. Images of the change at: https://bugs.chromium.org/p/chromium/issues/detail?id=677286#c7 BUG=677286 R=sky@chromium.org ========== to ========== Linux UI: Fix profile chooser button background color Previously, the profile chooser hovered background color was hardcoded to 0xEAEAEA. This is about the same color as dark themes will use for their label text, making the hovered text unreadable. This CL changes the color to use the menu item hovered color instead. Images of the change at: https://bugs.chromium.org/p/chromium/issues/detail?id=677286#c7 BUG=677286 R=sky@chromium.org ==========
Patchset #2 (id:20001) has been deleted
sky@ I've added some ifdefs so this only affects linux
LGTM
The CQ bit was checked by thomasanderson@google.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_comp...)
Patchset #3 (id:60001) has been deleted
Patchset #3 (id:80001) has been deleted
Patchset #3 (id:100001) has been deleted
Patchset #3 (id:120001) has been deleted
Patchset #3 (id:140001) has been deleted
The CQ bit was checked by thomasanderson@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
sky@: I've rewritten this CL, can you take another look? There were some things I didn't like about the old CL: * The color on the linux aura theme changed when I didn't want it to * If a gtk theme used white menuitem highlights, the text would be invisible, because the text color is hardcoded to white. * Some build errors on other platforms. The latest PS fixes all of the above issues. It colors the profile chooser button background AND text colors this time. The only platform affected should still be linux.
https://codereview.chromium.org/2624683002/diff/160001/chrome/browser/ui/view... File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2624683002/diff/160001/chrome/browser/ui/view... chrome/browser/ui/views/profiles/profile_chooser_view.cc:222: void set_title(views::Label* label) { title_ = label; } Document what title and subtitle are for. At first I thought they would be child views, but that isn't the case. https://codereview.chromium.org/2624683002/diff/160001/chrome/browser/ui/view... chrome/browser/ui/views/profiles/profile_chooser_view.cc:229: ProfileChooserView* profile_chooser_view_; functions then members. https://codereview.chromium.org/2624683002/diff/160001/chrome/browser/ui/view... chrome/browser/ui/views/profiles/profile_chooser_view.cc:247: if (was_prelight && !is_prelight) { This code is fairly complex and warrants a description. https://codereview.chromium.org/2624683002/diff/160001/chrome/browser/ui/view... chrome/browser/ui/views/profiles/profile_chooser_view.cc:254: normal_title_color_ = title->enabled_color(); Do you have to keep caching the colors? Can you ask for them once in the constructor or the first style changed? https://codereview.chromium.org/2624683002/diff/160001/chrome/browser/ui/view... chrome/browser/ui/views/profiles/profile_chooser_view.cc:275: state_ = state(); You shouldn't have to cache the old state. StateChanged() should be supplied the old state. I realize adding a ButtonState argument is a bigger change, you should do it separately then return to this patch. https://codereview.chromium.org/2624683002/diff/160001/chrome/browser/ui/view... File chrome/browser/ui/views/profiles/profile_chooser_view.h (right): https://codereview.chromium.org/2624683002/diff/160001/chrome/browser/ui/view... chrome/browser/ui/views/profiles/profile_chooser_view.h:66: Browser* browser() const { return browser_; } this should either return a const Browser* or not be const. Otherwise you're losing const'ness.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/...)
https://codereview.chromium.org/2624683002/diff/160001/chrome/browser/ui/view... File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2624683002/diff/160001/chrome/browser/ui/view... chrome/browser/ui/views/profiles/profile_chooser_view.cc:222: void set_title(views::Label* label) { title_ = label; } On 2017/02/06 22:56:41, sky wrote: > Document what title and subtitle are for. At first I thought they would be child > views, but that isn't the case. Done. https://codereview.chromium.org/2624683002/diff/160001/chrome/browser/ui/view... chrome/browser/ui/views/profiles/profile_chooser_view.cc:229: ProfileChooserView* profile_chooser_view_; On 2017/02/06 22:56:40, sky wrote: > functions then members. Done. https://codereview.chromium.org/2624683002/diff/160001/chrome/browser/ui/view... chrome/browser/ui/views/profiles/profile_chooser_view.cc:247: if (was_prelight && !is_prelight) { On 2017/02/06 22:56:40, sky wrote: > This code is fairly complex and warrants a description. Done. https://codereview.chromium.org/2624683002/diff/160001/chrome/browser/ui/view... chrome/browser/ui/views/profiles/profile_chooser_view.cc:254: normal_title_color_ = title->enabled_color(); On 2017/02/06 22:56:40, sky wrote: > Do you have to keep caching the colors? Can you ask for them once in the > constructor or the first style changed? Done. https://codereview.chromium.org/2624683002/diff/160001/chrome/browser/ui/view... chrome/browser/ui/views/profiles/profile_chooser_view.cc:275: state_ = state(); On 2017/02/06 22:56:41, sky wrote: > You shouldn't have to cache the old state. StateChanged() should be supplied the > old state. I realize adding a ButtonState argument is a bigger change, you > should do it separately then return to this patch. Done. https://codereview.chromium.org/2624683002/diff/160001/chrome/browser/ui/view... File chrome/browser/ui/views/profiles/profile_chooser_view.h (right): https://codereview.chromium.org/2624683002/diff/160001/chrome/browser/ui/view... chrome/browser/ui/views/profiles/profile_chooser_view.h:66: Browser* browser() const { return browser_; } On 2017/02/06 22:56:41, sky wrote: > this should either return a const Browser* or not be const. Otherwise you're > losing const'ness. Done.
LGTM
The CQ bit was checked by thomasanderson@google.com
The CQ bit was unchecked by commit-bot@chromium.org
This CL has an open dependency (Issue 2680643002 Patch 20001). Please resolve the dependency and try again. If you are sure that there is no real dependency, please use one of the options listed in https://goo.gl/9Es4OR to land the CL.
The CQ bit was checked by thomasanderson@google.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_comp...) win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/...)
The CQ bit was checked by thomasanderson@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by thomasanderson@google.com
The patchset sent to the CQ was uploaded after l-g-t-m from sky@chromium.org Link to the patchset: https://codereview.chromium.org/2624683002/#ps200001 (title: "fix win build")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 200001, "attempt_start_ts": 1486441479854060, "parent_rev": "ecd303a7ad5531522b00dcb6268b769717c14952", "commit_rev": "f0de79a0e44c878b66df8012e77ff38896fe8faf"}
Message was sent while issue was closed.
Description was changed from ========== Linux UI: Fix profile chooser button background color Previously, the profile chooser hovered background color was hardcoded to 0xEAEAEA. This is about the same color as dark themes will use for their label text, making the hovered text unreadable. This CL changes the color to use the menu item hovered color instead. Images of the change at: https://bugs.chromium.org/p/chromium/issues/detail?id=677286#c7 BUG=677286 R=sky@chromium.org ========== to ========== Linux UI: Fix profile chooser button background color Previously, the profile chooser hovered background color was hardcoded to 0xEAEAEA. This is about the same color as dark themes will use for their label text, making the hovered text unreadable. This CL changes the color to use the menu item hovered color instead. Images of the change at: https://bugs.chromium.org/p/chromium/issues/detail?id=677286#c7 BUG=677286 R=sky@chromium.org Review-Url: https://codereview.chromium.org/2624683002 Cr-Commit-Position: refs/heads/master@{#448542} Committed: https://chromium.googlesource.com/chromium/src/+/f0de79a0e44c878b66df8012e77f... ==========
Message was sent while issue was closed.
Committed patchset #5 (id:200001) as https://chromium.googlesource.com/chromium/src/+/f0de79a0e44c878b66df8012e77f... |