Closed Bug 684561 Opened 14 years ago Closed 14 years ago

Improve styling of Web Console on Windows

Categories

(DevTools :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 9

People

(Reporter: jaws, Assigned: jaws)

References

Details

Attachments

(3 files, 2 obsolete files)

Attached image Screenshot of the bug
We should add some margins between the filter buttons, and place the close button on the right-side. See attached screenshot for details.
Assignee: nobody → jwein
Status: NEW → ASSIGNED
Attached patch Patch for bug 684561 (obsolete) — Splinter Review
Moved the close button to the right side and added some margins between the buttons.
Attachment #558213 - Flags: review?(dao)
Attached image Screenshot of the patch
Attachment #558214 - Flags: feedback?(faaborg)
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-
Attached patch Patch for bug 684561 v2 (obsolete) — Splinter Review
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 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-
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)
> 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.
Attachment #558250 - Flags: review?(dao) → review+
Sweet! Thanks for doing this. :)
Attachment #558214 - Flags: feedback?(faaborg) → feedback+
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 9
Depends on: 686778
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: