|
|
|
Created:
4 years, 11 months ago by samli Modified:
4 years, 11 months ago CC:
apavlov+blink_chromium.org, blink-reviews, caseq+blink_chromium.org, devtools-reviews_chromium.org, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, sergeyv+blink_chromium.org, yurys+blink_chromium.org Base URL:
https://chromium.googlesource.com/chromium/blink.git@master Target Ref:
refs/heads/master Project:
blink Visibility:
Public. |
DescriptionDevtools UX: Add elements toolbar with breadcrumbs
This change adds an elements toolbar to the material design UX in Devtools.
The bar contains the breadcrumbs and a global settings button.
BUG=494836
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196466
Patch Set 1 #Patch Set 2 : Add breadcrumb arrows #Patch Set 3 : Fix padding #
Total comments: 4
Patch Set 4 : Update breadcrumbs #Patch Set 5 : #Patch Set 6 : #
Messages
Total messages: 30 (9 generated)
samli@chromium.org changed reviewers: + pfeldman@chromium.org
PTAL. Screenshot: http://imgur.com/SNlm5KP
On 2015/06/01 at 09:56:40, samli wrote: > PTAL. Screenshot: http://imgur.com/SNlm5KP Updated screenshot, which increases the arrow margin by decreasing the text padding so width remains unchanged: http://i.imgur.com/AIZqpLi.png
https://codereview.chromium.org/1158133004/diff/40001/Source/devtools/front_e... File Source/devtools/front_end/elements/ElementsBreadcrumbs.js (right): https://codereview.chromium.org/1158133004/diff/40001/Source/devtools/front_e... Source/devtools/front_end/elements/ElementsBreadcrumbs.js:226: const leftMargin = Runtime.experiments.isEnabled("materialDesign") ? 7 : 0; Can we do this using css?
pfeldman@chromium.org changed reviewers: + maxwalker@chromium.org
Design-wise, breadcrumbs' presence in the UI is now too strong. It is a secondary feature that should not stand out with the huge blue selection area. Is there a way we could fix it? Underline selection? Subtle selection color?
Re: design I'll let maxwalker@ take this one. My 2c: The screenshots I took were of crazy large selectors without the context of the page. The current breadcrumbs implementation uses the same blue selection area and that area is exactly the same as before (in fact 1px smaller on the sides). So the only difference is that the breadcrumbs are at the top and there's more white-space. Perhaps we should land this and re-discuss as polish when we graduate from experiments. https://codereview.chromium.org/1158133004/diff/40001/Source/devtools/front_e... File Source/devtools/front_end/elements/ElementsBreadcrumbs.js (right): https://codereview.chromium.org/1158133004/diff/40001/Source/devtools/front_e... Source/devtools/front_end/elements/ElementsBreadcrumbs.js:226: const leftMargin = Runtime.experiments.isEnabled("materialDesign") ? 7 : 0; On 2015/06/01 16:20:33, pfeldman wrote: > Can we do this using css? No. I don't want to impact the actual width of the element due to background changes on selection/hover. I can getComputedStyle and get the marginLeft, but that seems redundant.
> My 2c: The screenshots I took were of crazy large selectors without the context > of the page. The current breadcrumbs implementation uses the same blue selection > area and that area is exactly the same as before (in fact 1px smaller on the > sides). So the only difference is that the breadcrumbs are at the top and > there's more white-space. > > Perhaps we should land this and re-discuss as polish when we graduate from > experiments. SGTM! I have tried alternative selection styles with varying levels of obtrusiveness (see attachment). I think the current style (blue background) works well because of the visual connection to the DOM (same selection style for nodes) and because it is very clear and bold. Now living at the top, the selected breadcrumb can also be seen as a kind of heading which would also speak for a bold representation. If this design turns out to be too prominent, I could alternatively imagine something subtle like the bottommost version. My impression was that everything in between adds noise to the toolbar without being very clear. http://f.cl.ly/items/3A1K2T3O2I2B0l3Z2931/Breadcrumbs.png
Well, my problem with it is exactly its being clear and bold. From the new mock I like new variations 2, 3, and 5. Number 4 would work if the underline was right beneath the text baseline.
https://codereview.chromium.org/1158133004/diff/40001/Source/devtools/front_e... File Source/devtools/front_end/elements/ElementsBreadcrumbs.js (right): https://codereview.chromium.org/1158133004/diff/40001/Source/devtools/front_e... Source/devtools/front_end/elements/ElementsBreadcrumbs.js:226: const leftMargin = Runtime.experiments.isEnabled("materialDesign") ? 7 : 0; Please don't use getComputedStyle and I don't understand why you can't achieve this via changes to CSS / DOM.
> http://f.cl.ly/items/3A1K2T3O2I2B0l3Z2931/Breadcrumbs.png Agree that #1 is too bold and overpowers the rest of the toolbar/tabstrip when its infrequently important info. I like #2, #3, and the last (subtle colored chevron).
Went with #3. Screenshot (blue is selected, underline is hover): http://i.imgur.com/iKbKIjD.png
https://codereview.chromium.org/1158133004/diff/40001/Source/devtools/front_e... File Source/devtools/front_end/elements/ElementsBreadcrumbs.js (right): https://codereview.chromium.org/1158133004/diff/40001/Source/devtools/front_e... Source/devtools/front_end/elements/ElementsBreadcrumbs.js:226: const leftMargin = Runtime.experiments.isEnabled("materialDesign") ? 7 : 0; On 2015/06/02 at 10:54:52, pfeldman wrote: > Please don't use getComputedStyle and I don't understand why you can't achieve this via changes to CSS / DOM. Done.
> Number 4 would work if the underline was right beneath the text baseline. > I like #2, #3, and the last (subtle colored chevron). > Went with #3. Screenshot (blue is selected, underline is hover). A link-style underline is not the right choice IMO, because our breadcrumbs aren't links. They do not take you to another place like a link does (e.g. in Styles). I also like the last version (subtle colored chevron). It's visible, but doesn't dominate the whole toolbar. Additionally I just noted two things when playing around with the prototype: 1. The hover effect should be very very subtle, because it can be annoying to see it every time you move the cursor to the navigation bar. 2. There already is visual feedback on hover: the element is highlighted on the page. So after that I would suggest to use very subtle effects for both states: Selected: colored chevron Hover: darken font-color ( hsl(0, 0%, 35%) -> hsl(0, 0%, 20%) ) Thanks for bringing this up, Pavel!
> Thanks for bringing this up, Pavel! Thank you for following up and making sure the tool is excellent!
lgtm
The CQ bit was checked by samli@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from pfeldman@chromium.org Link to the patchset: https://codereview.chromium.org/1158133004/#ps80001 (title: " ")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1158133004/80001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: mac_blink_compile_dbg on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_compile_dbg/bu...)
The CQ bit was checked by samli@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from pfeldman@chromium.org Link to the patchset: https://codereview.chromium.org/1158133004/#ps100001 (title: " ")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1158133004/100001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/6...)
The CQ bit was checked by samli@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1158133004/100001
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as https://src.chromium.org/viewvc/blink?view=rev&revision=196466 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Chromium Code Reviews