Closed
Bug 609372
Opened 14 years ago
Closed 13 years ago
Better icons and color palette for the Web Console
Categories
(DevTools :: General, defect, P1)
DevTools
General
Tracking
(Not tracked)
VERIFIED
FIXED
Firefox 4.0b12
People
(Reporter: dangoor, Assigned: rcampbell)
References
Details
(Keywords: polish)
Attachments
(3 files, 12 obsolete files)
149.96 KB,
image/png
|
Details | |
46.06 KB,
image/png
|
Details | |
19.22 KB,
patch
|
Details | Diff | Splinter Review |
From bug 605621: We'll need a few icons to be designed for this: * a blue (rgb(0, 182, 240)) 8x8 "X" * an orange (rgb(251, 149, 0)) 8x8 "X" * an orange (rgb(251, 149, 0)) 8x8 /!\ warning triangle * a light gray (rgb(203, 203, 203)) 8x8 X * a light gray (rgb(203, 203, 203)) 8x8 /!\ warning triangle * a light gray (rgb(203, 203, 203)) 8x8 (i) info icon We also may want a gray (#808080) 8x8 "left arrow" icon to represent user input, and a gray (#808080) 8x8 "right arrow" icon to represent the corresponding output. See toolkit/themes/foostripe/global/icons/webconsole.png for placeholder icons.
Comment 1•14 years ago
|
||
Switching this over to Stephen since he's our visual design guru
Assignee: limi → shorlander
Summary: Better icons for the Web Console → Better icons and color pallet for the Web Console
Reporter | ||
Comment 3•14 years ago
|
||
mass change: filter on PRIORITYSETTING
Assignee | ||
Updated•14 years ago
|
Summary: Better icons and color pallet for the Web Console → Better icons and color palette for the Web Console
Comment 4•14 years ago
|
||
We also need this icon: * a blue (rgb(0, 182, 240)) 8x8 /!\ warning triangle
Reporter | ||
Comment 5•14 years ago
|
||
Is there an ETA on this?
Comment 6•14 years ago
|
||
(In reply to comment #5) > Is there an ETA on this? End of this week or beginning of next.
Comment 7•14 years ago
|
||
New icons for the Web Console.
> * a light gray (rgb(203, 203, 203)) 8x8 /!\ warning triangle
This seemed too light to me. I used rgb(170, 170, 170) instead. I also left the arrow on the end but I didn't see anywhere that it was actually being used.
Comment 8•14 years ago
|
||
Patch built on top of attachment 497824 [details] [diff] [review].
Comment 9•14 years ago
|
||
Comment 10•14 years ago
|
||
Comment on attachment 499304 [details] [diff] [review] Updated Icons Patch - i01 Feedback+, thanks for this!
Attachment #499304 -
Flags: feedback+
Updated•14 years ago
|
Attachment #499304 -
Flags: review?(dao)
Comment 11•14 years ago
|
||
Comment on attachment 499304 [details] [diff] [review] Updated Icons Patch - i01 patch has bitrotted
Attachment #499304 -
Flags: review?(dao)
Assignee | ||
Updated•13 years ago
|
Whiteboard: [rebased-2011-01-19]
Assignee | ||
Comment 13•13 years ago
|
||
Comment on attachment 505154 [details] [diff] [review] Updated and rebased Icons Patch resubmitting for review.
Attachment #505154 -
Flags: review?(dao)
Assignee | ||
Comment 14•13 years ago
|
||
Really hoping we can get this reviewed as it adds some extra polish to the icons. The console looks much better with it applied.
Keywords: polish
OS: Mac OS X → All
Hardware: x86 → All
Whiteboard: [rebased-2011-01-19] → [rebased-2011-01-19][in-review]
Comment 15•13 years ago
|
||
Comment on attachment 505154 [details] [diff] [review] Updated and rebased Icons Patch >--- a/toolkit/themes/gnomestripe/global/webConsole.css >+++ b/toolkit/themes/gnomestripe/global/webConsole.css > .webconsole-msg-network > .webconsole-msg-icon-container { >- -moz-border-start: solid #000 6px; >+ -moz-image-region: rect(0, 16px, 8px, 8px); > } looks like a bad merge
Attachment #505154 -
Flags: review?(dao) → review-
Assignee | ||
Comment 16•13 years ago
|
||
fixed mismerge
Attachment #499302 -
Attachment is obsolete: true
Attachment #505154 -
Attachment is obsolete: true
Attachment #506754 -
Flags: review?
Assignee | ||
Comment 17•13 years ago
|
||
Found the -moz-image-rect was applied to the wrong section. Fixed and updated the patch. Sorry about that!
Assignee: shorlander → rcampbell
Attachment #506754 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #506768 -
Flags: review?
Attachment #506754 -
Flags: review?
Assignee | ||
Updated•13 years ago
|
Attachment #506768 -
Flags: review? → review?(dao)
Comment 18•13 years ago
|
||
Comment on attachment 506768 [details] [diff] [review] Updated Web Console Icons, v1.3 > .webconsole-msg-icon { > list-style-image: url(chrome://global/skin/icons/webconsole.png); >- margin: 2px 3px; >- width: 10px; >- height: 10px; >+ margin: 5px 4px; >+ max-width: 8px; >+ max-height: 8px; > } Why are you switching from width and height to max-width and max-height?
Assignee | ||
Comment 19•13 years ago
|
||
You'd have to ask shorlander about that, but I'm guessing it's because the icons are 8x8 only.
Assignee | ||
Comment 20•13 years ago
|
||
removed the max-/min- from the style sheets. After conferring with Mr. Horlander about the origin, it was determined that I hadn't rebased correctly.
Attachment #506768 -
Attachment is obsolete: true
Attachment #507540 -
Flags: review?(dao)
Attachment #506768 -
Flags: review?(dao)
Comment 21•13 years ago
|
||
Comment on attachment 507540 [details] [diff] [review] Icons, v1.4 What are the arrows in the bottom row of webconsole.png used for?
Assignee | ||
Comment 22•13 years ago
|
||
Stephen mentioned in Comment #7 that he wasn't sure what they were for and that they weren't being used anywhere but left them in. Not sure if they have a purpose or not, but they're currently unused.
Comment 23•13 years ago
|
||
If you're referring the down arrow at the right here [1], then that used to be used for the drop-downs, but it was changed to use native theme drop downs. It can be removed. [1]: http://mxr.mozilla.org/mozilla-central/source/toolkit/themes/pinstripe/global/icons/webconsole.png
Assignee | ||
Comment 24•13 years ago
|
||
talking with Patrick who did the original icons, there was only one black drop-down arrow which is no longer used and can be removed. Stephen helpfully pointed me to comment #0 in this bug: "We also may want a gray (#808080) 8x8 "left arrow" icon to represent user input, and a gray (#808080) 8x8 "right arrow" icon to represent the corresponding output." I think we still require a little CSS to wire that up to the input and output lines, but the black drop-down is safe to remove.
Assignee | ||
Comment 25•13 years ago
|
||
Based on feedback, I've removed the unused down arrow and added rules to display the left and right arrows for console input and output.
Attachment #507540 -
Attachment is obsolete: true
Attachment #507631 -
Flags: review?(dao)
Attachment #507540 -
Flags: review?(dao)
Assignee | ||
Comment 26•13 years ago
|
||
figured out why we needed the visibility: hidden. Explicitly added visibility: visible to the input and output nodes. Also removed an errant !important that had crept in during testing.
Attachment #507631 -
Attachment is obsolete: true
Attachment #507883 -
Flags: review?(dao)
Attachment #507631 -
Flags: review?(dao)
Assignee | ||
Comment 27•13 years ago
|
||
and the correct file...
Attachment #507883 -
Attachment is obsolete: true
Attachment #507885 -
Flags: review?(dao)
Attachment #507883 -
Flags: review?(dao)
Comment 28•13 years ago
|
||
Comment on attachment 507885 [details] [diff] [review] Icons, v1.6 > .webconsole-msg-icon { > list-style-image: url(chrome://global/skin/icons/webconsole.png); >- margin: 2px 3px; >- width: 10px; >- height: 10px; >+ margin: 5px 4px; >+ width: 8px; >+ height: 8px; > } I think you can add -moz-image-region: rect(0, 1px, 0, 0); here instead of the visibility:hidden/visible dance.
Attachment #507885 -
Flags: review?(dao) → review-
Assignee | ||
Comment 29•13 years ago
|
||
yeah that works well. updated!
Attachment #507885 -
Attachment is obsolete: true
Attachment #507904 -
Flags: review?(dao)
Comment 30•13 years ago
|
||
Comment on attachment 507904 [details] [diff] [review] Icons, v1.7 > .webconsole-msg-icon { > list-style-image: url(chrome://global/skin/icons/webconsole.png); >- margin: 2px 3px; >- width: 10px; >- height: 10px; >+ margin: 5px 4px; >+ width: 8px; >+ height: 8px; > } > > .webconsole-msg-log > .webconsole-msg-icon-container > .webconsole-msg-icon { >- visibility: hidden; >+ -moz-image-region: rect(0, 1px, 0, 0); > } -moz-image-region: rect(0, 1px, 0, 0); should be set on .webconsole-msg-icon, the second rule can go away. r=me with that change
Attachment #507904 -
Flags: review?(dao) → review+
Assignee | ||
Updated•13 years ago
|
Attachment #507904 -
Flags: approval2.0?
Comment 31•13 years ago
|
||
Comment on attachment 507904 [details] [diff] [review] Icons, v1.7 see comment 30
Attachment #507904 -
Flags: approval2.0?
Assignee | ||
Comment 32•13 years ago
|
||
yes, I saw that and was going to make the modification at checkin time. I didn't think you needed to see a patch to approve it.
Assignee | ||
Comment 33•13 years ago
|
||
v.1.8, comments from c#30 addressed.
Attachment #507904 -
Attachment is obsolete: true
Attachment #508445 -
Flags: review?(dao)
Attachment #508445 -
Flags: approval2.0?
Updated•13 years ago
|
Attachment #508445 -
Flags: review?(dao) → review+
Updated•13 years ago
|
Attachment #508445 -
Flags: approval2.0? → approval2.0+
Assignee | ||
Comment 34•13 years ago
|
||
updated, exported patch suitable for checking in.
Attachment #508445 -
Attachment is obsolete: true
Assignee | ||
Updated•13 years ago
|
Keywords: checkin-needed
Whiteboard: [rebased-2011-01-19][in-review] → [rebased-2011-01-19][checkin-needed]
Assignee | ||
Updated•13 years ago
|
Whiteboard: [rebased-2011-01-19][checkin-needed] → [rebased-2011-01-19][checkin-needed][will checkin feb 01 if not checked in sooner]
Comment 35•13 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/d545aa98feb1
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Whiteboard: [rebased-2011-01-19][checkin-needed][will checkin feb 01 if not checked in sooner]
Target Milestone: --- → Firefox 4.0b11
Comment 36•13 years ago
|
||
Backed out because of test failures: http://hg.mozilla.org/mozilla-central/rev/6f5b3b1c6c78 http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1296536708.1296540277.12347.gz TEST-UNEXPECTED-FAIL | chrome://mochitests/content/browser/toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_614793_jsterm_scroll.js | scroll location is the same - Got 2434, expected 2433 Seems like the test must be written more robustly. We shouldn't be relying on pixel values like that!
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 37•13 years ago
|
||
.webconsole-msg-icon { list-style-image: url(chrome://global/skin/icons/webconsole.png); - margin: 2px 3px; - width: 10px; - height: 10px; ... + margin: 5px 4px; + width: 8px; + height: 8px; Other than checking if the test is sane, you may also want to adjust the margin so that the sum of the height and the negative margin remains the same.
Keywords: uiwanted
Assignee | ||
Comment 38•13 years ago
|
||
augh. Sorry for the burn. Thanks for trying to land this, Ehsan. Did that turn orange on all platforms or just a subset? (Mac 32bit by any chance?)
Target Milestone: Firefox 4.0b11 → ---
Assignee | ||
Comment 39•13 years ago
|
||
funny, I've been running with that patch applied locally for awhile now and haven't seen that test fail on my machine ever. I'll try your adjustment, Dao and see if that helps on try, but I expect I'll need to do something similar to the "fix" in bug 627342.
Assignee | ||
Comment 40•13 years ago
|
||
yup, I verified on TBPL, appeared orange on OS X 32. What is it about 10.5 that causes us to have 1px variations on some of our layout?
Assignee | ||
Comment 41•13 years ago
|
||
sent to try with: .webconsole-msg-icon { list-style-image: url(chrome://global/skin/icons/webconsole.png); -moz-image-region: rect(0, 1px, 0, 0); margin: 4px 4px; width: 8px; height: 8px; } http://tbpl.mozilla.org/?tree=MozillaTry&rev=50dde748c88b&pusher=rcampbell@mozilla.com curious to see if this fixes the problem. In any case, the icons appear more vertically-centered (on OS X).
Comment 42•13 years ago
|
||
Maintaining the height+margin sum would mean to use margin: 3px 4px;
Assignee | ||
Comment 43•13 years ago
|
||
(In reply to comment #42) > Maintaining the height+margin sum would mean to use margin: 3px 4px; Remains the same as what? Sorry, I don't quite follow you. Do you think it's worth sending through try server again with your dimensions or should I just use them? I had a successful run through OS X 32 with 4px 4px; Let me know what you think. I'll do a little local testing in the meantime. margin: 4px 4px actually looks centered now.
Assignee | ||
Comment 44•13 years ago
|
||
tried 3px 4px and it looks good too. I didn't take screencaps before (5 vs 4 vs 3) but I'll attach the 3px version and the reworked patch.
Assignee | ||
Comment 45•13 years ago
|
||
Assignee | ||
Comment 46•13 years ago
|
||
Attachment #508509 -
Attachment is obsolete: true
Comment 47•13 years ago
|
||
(In reply to comment #43) > (In reply to comment #42) > > Maintaining the height+margin sum would mean to use margin: 3px 4px; > > Remains the same as what? Sorry, I don't quite follow you. The height used to be 10, the vertical margins 2. This adds up to 14. The new height is 8. With 3 as the vertical margins, this adds up to 14 as well.
Assignee | ||
Comment 48•13 years ago
|
||
(In reply to comment #47) > (In reply to comment #43) > > (In reply to comment #42) > > > Maintaining the height+margin sum would mean to use margin: 3px 4px; > > > > Remains the same as what? Sorry, I don't quite follow you. > > The height used to be 10, the vertical margins 2. This adds up to 14. > The new height is 8. With 3 as the vertical margins, this adds up to 14 as > well. ah, ok. Thanks for the clarification. I guess this is safe to land with the current changes. I'll give it a try when the tree turns a little greener.
Comment 49•13 years ago
|
||
(In reply to comment #38) > augh. Sorry for the burn. Thanks for trying to land this, Ehsan. > > Did that turn orange on all platforms or just a subset? (Mac 32bit by any > chance?) IIRC it's only that log link that I posted.
Comment 50•13 years ago
|
||
Why do I get the feeling that we're moving in the wrong direction, here? Rob, do we really care about the pixel value in the test? Why can't we just change the test to not rely on pixel values?
Assignee | ||
Comment 51•13 years ago
|
||
(In reply to comment #50) > Why do I get the feeling that we're moving in the wrong direction, here? Rob, > do we really care about the pixel value in the test? Why can't we just change > the test to not rely on pixel values? well, the updated margins fixed the problem on try, but that test isn't unique in its reliance on pixels see bug 627342. And yes, it was only the one platform (OS X 32bit) that was causing the problem.
Comment 52•13 years ago
|
||
robcee: I was going to reland this as you had asked, but it's not clear to me what to land. The last patch here got backed out, perhaps you intended to attach a revised version?
Assignee | ||
Comment 53•13 years ago
|
||
The most-recent patch in here is the Icons, 3px patch. I'll double check that it includes what I need in it and hopefully land it now. Thanks anyway!
Assignee | ||
Comment 54•13 years ago
|
||
Comment on attachment 508789 [details] [diff] [review] [checked-in] Icons, margin: 3px http://hg.mozilla.org/mozilla-central/rev/dc8abaadc629
Attachment #508789 -
Attachment description: Icons, margin: 3px → [checked-in] Icons, margin: 3px
Assignee | ||
Updated•13 years ago
|
Status: REOPENED → RESOLVED
Closed: 13 years ago → 13 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•13 years ago
|
Target Milestone: --- → Firefox 4.0
Updated•13 years ago
|
Target Milestone: Firefox 4.0 → Firefox 4.0b12
Comment 55•13 years ago
|
||
Verified fixed on Mozilla/5.0 (Windows NT 6.1; rv:2.0b12pre) Gecko/20110206 Firefox/4.0b12pre
Status: RESOLVED → VERIFIED
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•