Closed
Bug 611851
Opened 14 years ago
Closed 14 years ago
Restyle the Web Console splitter
Categories
(DevTools :: General, defect, P2)
DevTools
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: pcwalton, Assigned: pcwalton)
References
Details
(Keywords: polish)
Attachments
(2 files, 4 obsolete files)
(deleted),
image/png
|
Details | |
(deleted),
patch
|
Gavin
:
approval2.0+
|
Details | Diff | Splinter Review |
The Web Console's resize handle looks ugly on the Mac right now. I'd like to suggest that we change it to look more like Apple Mail's pane separator [1].
[1]: http://bit.ly/9UsaO9
Assignee | ||
Comment 1•14 years ago
|
||
Attached a screenshot of the current WIP on Linux.
Assignee | ||
Updated•14 years ago
|
Summary: Make the Web Console resize handle nicer looking on the Mac → Restyle the Web Console splitter
Assignee | ||
Updated•14 years ago
|
OS: Mac OS X → All
Assignee | ||
Comment 2•14 years ago
|
||
Patch attached.
Attachment #491399 -
Flags: feedback?(mihai.sucan)
Comment 3•14 years ago
|
||
Comment on attachment 491399 [details] [diff] [review]
Proposed patch.
The patch looks fine to me. Just a minor issue:
if (splitters[i].getAttribute("class") == "hud-splitter") {
+ splitters[i].nextSibling.classList.remove("webconsole-browser-stack");
splitters[i].parentNode.removeChild(splitters[i]);
break;
Indentation seems to be broken.
Visually, there's not much of a difference with the patch applied.
Attachment #491399 -
Flags: feedback?(mihai.sucan) → feedback+
Assignee | ||
Comment 4•14 years ago
|
||
New version of the patch addresses feedback. Review requested.
Attachment #491399 -
Attachment is obsolete: true
Attachment #491715 -
Flags: review?(gavin.sharp)
Assignee | ||
Comment 5•14 years ago
|
||
(In reply to comment #3)
> Visually, there's not much of a difference with the patch applied.
It's more noticeable on the Mac, but it's a minor bit of polish all around.
Comment 7•14 years ago
|
||
Comment on attachment 491715 [details] [diff] [review]
Proposed patch, version 2.
> <content>
> <xul:stringbundle anonid="tbstringbundle" src="chrome://browser/locale/tabbrowser.properties"/>
> <xul:tabbox anonid="tabbox" class="tabbrowser-tabbox"
> flex="1" eventnode="document" xbl:inherits="handleCtrlPageUpDown"
> onselect="if (event.target.localName == 'tabpanels') this.parentNode.updateCurrentBrowser();">
> <xul:tabpanels flex="1" class="plain" selectedIndex="0" anonid="panelcontainer">
>- <xul:notificationbox flex="1">
>+ <xul:notificationbox flex="1" class="notification-box">
This class is too generic.
>+.notification-box {
>+ background-color: Window;
>+}
You're affecting notification bars here...
Comment 8•14 years ago
|
||
Splitters can have a background despite -moz-appearance:splitter using box-shadow, e.g. box-shadow: 0 0 0 10px red inset.
Assignee | ||
Comment 9•14 years ago
|
||
New version of the patch uses box-shadow to avoid the notification box changes.
Attachment #491715 -
Attachment is obsolete: true
Attachment #495712 -
Flags: review?(dao)
Attachment #491715 -
Flags: review?(gavin.sharp)
Comment 10•14 years ago
|
||
Comment on attachment 495712 [details] [diff] [review]
Proposed patch, version 3.
>+ // We apply a border to the browser stack when the console is open via
>+ // this CSS class.
>+ splitter.nextSibling.setAttribute("class", "webconsole-browser-stack");
Please avoid this, this code shouldn't mess with the stack.
>--- a/toolkit/themes/gnomestripe/global/webConsole.css
>+++ b/toolkit/themes/gnomestripe/global/webConsole.css
> .hud-box {
> border-bottom: 1px solid #aaa;
> text-shadow: none;
>+ background-color: #ffffff;
> }
What's this?
Assignee | ||
Comment 11•14 years ago
|
||
New version of the patch removes all the changes to HUDService.jsm and replaces the browser stack modification with a box shadow. Yay!
Attachment #495712 -
Attachment is obsolete: true
Attachment #495858 -
Flags: review?(dao)
Attachment #495712 -
Flags: review?(dao)
Assignee | ||
Comment 12•14 years ago
|
||
(In reply to comment #10)
> Comment on attachment 495712 [details] [diff] [review]
> Proposed patch, version 3.
>
> >+ // We apply a border to the browser stack when the console is open via
> >+ // this CSS class.
> >+ splitter.nextSibling.setAttribute("class", "webconsole-browser-stack");
>
> Please avoid this, this code shouldn't mess with the stack.
Replaced with a box shadow.
> >--- a/toolkit/themes/gnomestripe/global/webConsole.css
> >+++ b/toolkit/themes/gnomestripe/global/webConsole.css
>
> > .hud-box {
> > border-bottom: 1px solid #aaa;
> > text-shadow: none;
> >+ background-color: #ffffff;
> > }
>
> What's this?
Something no longer necessary!
Comment 13•14 years ago
|
||
Comment on attachment 495858 [details] [diff] [review]
Proposed patch, version 4.
>--- a/toolkit/themes/gnomestripe/global/webConsole.css
>+++ b/toolkit/themes/gnomestripe/global/webConsole.css
>+.hud-splitter {
>+ box-shadow: 0 -1px 0 0 ButtonShadow inset, 0 0 0 10px Window inset;
We'd usually use ThreeDShadow and -moz-Dialog. Not sure whether/how ButtonShadow and Window are different.
>--- a/toolkit/themes/pinstripe/global/webConsole.css
>+++ b/toolkit/themes/pinstripe/global/webConsole.css
>+.hud-splitter {
>+ border-bottom: solid #a5a5a5 1px;
>+ height: 8px;
Does this change anythig? splitter.css sets min-height: 9px;.
Attachment #495858 -
Flags: review?(dao) → review+
Assignee | ||
Comment 14•14 years ago
|
||
New patch addresses review comments. approval2.0 requested, as this is a nice piece of polish for the Web Console and very low risk (only minor CSS changes).
Attachment #495858 -
Attachment is obsolete: true
Attachment #495897 -
Flags: approval2.0?
Updated•14 years ago
|
Attachment #495897 -
Flags: approval2.0? → approval2.0+
Assignee | ||
Updated•14 years ago
|
Keywords: checkin-needed
Comment 15•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•14 years ago
|
Keywords: checkin-needed
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•