Closed
Bug 684561
Opened 14 years ago
Closed 14 years ago
Improve styling of Web Console on Windows
Categories
(DevTools :: General, defect)
DevTools
General
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 9
People
(Reporter: jaws, Assigned: jaws)
References
Details
Attachments
(3 files, 2 obsolete files)
We should add some margins between the filter buttons, and place the close button on the right-side.
See attached screenshot for details.
Assignee | ||
Updated•14 years ago
|
Assignee: nobody → jwein
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•14 years ago
|
||
Moved the close button to the right side and added some margins between the buttons.
Attachment #558213 -
Flags: review?(dao)
Assignee | ||
Comment 2•14 years ago
|
||
Attachment #558214 -
Flags: feedback?(faaborg)
Comment 3•14 years ago
|
||
Comment on attachment 558213 [details] [diff] [review]
Patch for bug 684561
HUDService.jsm should append the close button to the end in the DOM (except for OS X maybe).
Attachment #558213 -
Flags: review?(dao) → review-
Assignee | ||
Comment 4•14 years ago
|
||
Updated HUDService.jsm to place the close button at the end of the DOM if not on OS X.
Attachment #558213 -
Attachment is obsolete: true
Attachment #558241 -
Flags: review?(dao)
Comment 5•14 years ago
|
||
Comment on attachment 558241 [details] [diff] [review]
Patch for bug 684561 v2
>- this.makeCloseButton(toolbar);
>+ let osString = Cc["@mozilla.org/xre/app-info;1"].
>+ getService(Ci.nsIXULRuntime).OS;
>+ if (osString == "Darwin")
>+ this.makeCloseButton(toolbar);
>
> for (let i = 0; i < BUTTONS.length; i++) {
> this.makeFilterButton(toolbar, BUTTONS[i]);
> }
>
> toolbar.appendChild(this.filterSpacer);
>
> let positionUI = this.createPositionUI();
> toolbar.appendChild(positionUI);
>
> toolbar.appendChild(this.filterBox);
> this.makeClearConsoleButton(toolbar);
>
>+ if (osString != "Darwin")
>+ this.makeCloseButton(toolbar);
This should use ifdefs. Look for EXTRA_PP_JS_MODULES for how to enable this.
>+.webconsole-filter-button > .toolbarbutton-menubutton-button,
>+.webconsole-filter-button > .toolbarbutton-menubutton-button:hover:active {
>+ -moz-padding-start: 6px !important;
>+ -moz-padding-end: 3px !important;
>+}
Why is !important needed here?
Does -moz-padding-end actually change something? I can't see it in the screenshots.
Attachment #558241 -
Flags: review?(dao) → review-
Assignee | ||
Comment 6•14 years ago
|
||
The !important rules were a carry-over from previous tweaks and weren't needed. Thank you for catching them.
I have attempted (and it appears I was successful), at using EXTRA_PP_JS_MODULES, but I am not sure if I used it the way that you meant.
Attachment #558241 -
Attachment is obsolete: true
Attachment #558250 -
Flags: review?(dao)
Assignee | ||
Comment 7•14 years ago
|
||
> Does -moz-padding-end actually change something? I can't see it in the
> screenshots.
I forgot to mention that -moz-padding-end is needed because there is a rule in toolbarbutton.css sets the padding to 2px on :hover:active, causing the toolbarbutton to shrink by 1 pixel.
Updated•14 years ago
|
Attachment #558250 -
Flags: review?(dao) → review+
Comment 8•14 years ago
|
||
Sweet! Thanks for doing this. :)
Updated•14 years ago
|
Attachment #558214 -
Flags: feedback?(faaborg) → feedback+
Assignee | ||
Comment 9•14 years ago
|
||
Whiteboard: [fixed-in-fx-team]
Comment 10•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 9
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•