Closed Bug 723059 Opened 12 years ago Closed 12 years ago

Replace text with icons in the debugger toolbar

Categories

(DevTools :: Debugger, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 15

People

(Reporter: past, Assigned: paul)

References

Details

(Whiteboard: [fixed-in-fx-team])

Attachments

(7 files, 10 obsolete files)

14.74 KB, image/png
Details
28.47 KB, image/png
Details
74.67 KB, image/png
Details
23.52 KB, image/png
Details
277 bytes, image/png
Details
20.47 KB, image/png
Details
32.37 KB, patch
Details | Diff | Splinter Review
The debugger toolbar currently uses text in the various buttons. Using icons would make for a more compact and good-looking toolbar.
The dark theme should arguably land first, so that we can use dark icons as all the other tools do.
Depends on: darkdebug
We should also get some ideas in here for shorlander to work with.

The standard Step In, Step Over and Step Out icons from other debuggers (see screenshot).

I think the icons similar to Firebug and Chrome are what we're looking for.
What kind of timeline do we have for this and the visual updates for the debugger?
Rob and Dave would know more, but I think we are hoping to have the debugger preffed on sometime in the Firefox 14 timeframe. That said, we had prioritized the visual update work as something we would do ASAP.
yeah, what Panos says. We want to start with some of the UI refresh ASAP though. As always, sooner is better.
I should also note that we need slick icons for the editor as well (breakpoints and paused line indicator). Current one (the other is only in fx-team at the moment):

http://mxr.mozilla.org/mozilla-central/source/browser/devtools/sourceeditor/orion/orion.css#79

Not sure if you'd like a separate bug for these though.
UI tweaks: switch icon when paused/running, make it visually togglable and get the filter box looking like
(In reply to Panos Astithas [:past] from comment #7)
> I should also note that we need slick icons for the editor as well
> (breakpoints and paused line indicator). Current one (the other is only in
> fx-team at the moment):
> 
> http://mxr.mozilla.org/mozilla-central/source/browser/devtools/sourceeditor/
> orion/orion.css#79
> 
> Not sure if you'd like a separate bug for these though.

filed bug 740482.
Attached patch Working patch (obsolete) — Splinter Review
This is a patch with all the related changes in remote-debug. It works in my Mac, but I haven't tested it in Windows and Linux.
Assignee: nobody → rcampbell
Attachment #617306 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attached patch icons v1 (obsolete) — Splinter Review
first attempt. This does affect the inspector toolbar buttons so clearly not going to go, but would like some feedback to make this work.
Attachment #618381 - Attachment is obsolete: true
Attachment #623156 - Flags: feedback?(paul)
Attached patch icons v1.2 (obsolete) — Splinter Review
still missing linux. don't hate me.
Attachment #623156 - Attachment is obsolete: true
Attachment #623156 - Flags: feedback?(paul)
Attachment #623285 - Flags: feedback?(paul)
Attached image OS X Screenshot (obsolete) —
Attached image Windows 7 Screenshot (obsolete) —
Comment on attachment 623285 [details] [diff] [review]
icons v1.2

Review of attachment 623285 [details] [diff] [review]:
-----------------------------------------------------------------

Looks hot :D

::: browser/devtools/debugger/debugger-view.js
@@ +529,1 @@
>  

Can you do that in CSS (based on the `checked` attribute)?

::: browser/devtools/debugger/debugger.css
@@ +49,5 @@
>  
> +#dbg-content {
> +  padding: 0;
> +}
> +

Shouldn't it be in browser/themes/?

::: browser/devtools/debugger/debugger.xul
@@ +96,5 @@
> +        <toolbarbutton id="step-out"
> +                       class="devtools-toolbarbutton"
> +                       image="chrome://browser/skin/devtools/step-out.png"
> +                       tabindex="0"/>
> +      </hbox>

If you remove the labels, you need to add tooltips.

::: browser/themes/winstripe/devtools/common.css
@@ +80,1 @@
>    margin: 0;

You also need to remove a border (-moz-border-end-width:0) but not for the very last element.

Also, you'll probably need to move the box-shadow from the button to the buttonbox.

You can see the problem here: http://i.imgur.com/PPJuL.png

::: browser/themes/winstripe/jar.mn
@@ +376,1 @@
>  #ifdef MOZ_SERVICES_SYNC

Can you prefix the icons name with "debugger-" ?
Attachment #623285 - Flags: feedback?(paul)
Priority: P3 → P2
For the record, debugger mockup: http://cl.ly/GoMQ
Assignee: rcampbell → paul
Attached patch patch v2 (obsolete) — Splinter Review
Rob, can you try that on Windows and Mac?
Attachment #623285 - Attachment is obsolete: true
Attached image screenshot - linux
Attachment #623287 - Attachment is obsolete: true
Attachment #623288 - Attachment is obsolete: true
Comment on attachment 626459 [details] [diff] [review]
patch v2

Review of attachment 626459 [details] [diff] [review]:
-----------------------------------------------------------------

::: browser/themes/gnomestripe/devtools/debugger.css
@@ +266,5 @@
> +  list-style-image: url("chrome://browser/skin/devtools/debugger-step-over.png");
> +}
> +
> +#debugger-controls > toolbarbutton {
> +  border-width: 0 1px 0 0;

Oops, this is not RTL proof.
Attached patch patch v2.1 (obsolete) — Splinter Review
RTL proof
Attachment #626459 - Attachment is obsolete: true
(I didn't include the splitter work, this will happen in another bug)
erf, wrong radius for pinstripe.
Attached patch patch v2.2 (obsolete) — Splinter Review
correct radius for pinstripe
Attachment #626463 - Attachment is obsolete: true
Attachment #626471 - Flags: review?(rcampbell)
Attached image screenshot - os x
screenshot. Looks good, though the checked state of the pause button does not have the usual checked text color. Button radii look good.

Removed the changes to add the side-splitters? Presumably to simplify this patch. I am ok with that.
for reference, here's the inspector toolbar.

note the focus ring around the settings menu button. That's also present without this patch so we should probably file something for that to adjust the padding or to remove the focus ring.
(In reply to Rob Campbell [:rc] (:robcee) from comment #26)
> Created attachment 626607 [details]
> screenshot - os x
> 
> screenshot. Looks good, though the checked state of the pause button does
> not have the usual checked text color.

We can fix that. Do you agree with having only a pause icon? (no play icon)

> Button radii look good.
> Removed the changes to add the side-splitters?

We will do that in a separate bug.
(In reply to Rob Campbell [:rc] (:robcee) from comment #27)
> Created attachment 626608 [details]
> screenshot - os x - inspector toolbar
> 
> for reference, here's the inspector toolbar.
> 
> note the focus ring around the settings menu button. That's also present
> without this patch so we should probably file something for that to adjust
> the padding or to remove the focus ring.

I did put the focus ring in purpose. I didn't realize it looked like that on Mac though.
Stephen, can we get a blue version of the pause icon? please :)
Attached image Pause Icon (Active)
(In reply to Paul Rouget [:paul] from comment #30)
> Stephen, can we get a blue version of the pause icon? please :)
here's the windows screenshot.

No icons, so I'm guessing there was some file-naming or jar mangling. I'll take a look at the patch.
Comment on attachment 626471 [details] [diff] [review]
patch v2.2

yeah, forgot to add skin/aero/browser/devtools/debugger-*.png in the jar file.

otherwise r+.
Attachment #626471 - Flags: review?(rcampbell) → review+
Attached patch patch v2.3 (obsolete) — Splinter Review
Windows fixed. Better outline. Blue pause button.
Attachment #626471 - Attachment is obsolete: true
Attached patch patch v2.3Splinter Review
rebased
Attachment #626784 - Attachment is obsolete: true
Whiteboard: [land-in-fx-team]
https://hg.mozilla.org/integration/fx-team/rev/13aa125cc8d2
Whiteboard: [land-in-fx-team] → [fixed-in-fx-team]
Updated the failing test and relanded:
https://hg.mozilla.org/integration/fx-team/rev/75eaccac4579
Whiteboard: [fixed-in-fx-team]
https://hg.mozilla.org/mozilla-central/rev/75eaccac4579
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 15
There is an error for the pause button with Windows :

Code is :
#resume {
  -moz-image-region: rect(0px, 16px, 16px, 0px);
}

#resume[checked=true] {
  -moz-image-region: rect(0px, 32px, 16px, 16px);
  list-style-image: url("chrome://browser/skin/devtools/debugger-pause.png");
}

The code should be :
#resume {
  list-style-image: url("chrome://browser/skin/devtools/debugger-pause.png");
  -moz-image-region: rect(0px, 16px, 16px, 0px);
}

#resume[checked=true] {
  -moz-image-region: rect(0px, 32px, 16px, 16px);
}
(In reply to David.Vincent from comment #40)
> There is an error for the pause button with Windows :
> 
> Code is :
> #resume {
>   -moz-image-region: rect(0px, 16px, 16px, 0px);
> }
> 
> #resume[checked=true] {
>   -moz-image-region: rect(0px, 32px, 16px, 16px);
>   list-style-image: url("chrome://browser/skin/devtools/debugger-pause.png");
> }
> 
> The code should be :
> #resume {
>   list-style-image: url("chrome://browser/skin/devtools/debugger-pause.png");
>   -moz-image-region: rect(0px, 16px, 16px, 0px);
> }
> 
> #resume[checked=true] {
>   -moz-image-region: rect(0px, 32px, 16px, 16px);
> }

Yes, there is a fix for that in bug 758683, but in that same bug we will be changing the icon anyway, so this will be resolved today, one way or another.
The following CSS instruction is in the patch twice:

#step-over {
  list-style-image: url("chrome://browser/skin/devtools/debugger-step-over.png");
}

The first instance of this instruction could probably be removed.
(In reply to KLB from comment #42)
> The following CSS instruction is in the patch twice:
> 
> #step-over {
>   list-style-image:
> url("chrome://browser/skin/devtools/debugger-step-over.png");
> }
> 
> The first instance of this instruction could probably be removed.

Can you please file a followup bug for this?
Filed bug 771464 for the duplicate step-over rules.
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: