Closed Bug 1012139 Opened 10 years ago Closed 10 years ago

Remaining DevTools HDPI work

Categories

(DevTools :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 32

People

(Reporter: ntim, Assigned: ntim)

References

Details

Attachments

(1 file, 4 obsolete files)

Here's what's left to do :
- Network sidebar toggle icon
- Stop black boxing this source button in Debugger (this uses the image="" attribute, so it's a bit harder)
- Style Editor and Shader Editor Eye icon.

I couldn't think of anything more.
Blocks: 837188
Whiteboard: [good first bug][that's not so so easy][mentor=ntim][lang=css]
Assignee: nobody → ntim007
Status: NEW → ASSIGNED
Whiteboard: [good first bug][that's not so so easy][mentor=ntim][lang=css]
Attached patch Part 1 : Network monitor (obsolete) — Splinter Review
I haven't done the eyeballs yet, since I'm getting conflicts when applying your patch, so I'm probably gonna wait for it to land on m-c.

And for the debugger stop black boxing source button, I couldn't figure out a good solution yet. Do you know what could be possible ? I thought of checking retina after load, then change the image="" attribute if it's a retina screen.
Attachment #8425859 - Flags: review?(bgrinstead)
> And for the debugger stop black boxing source button, I couldn't figure out
> a good solution yet. Do you know what could be possible ? I thought of
> checking retina after load, then change the image="" attribute if it's a
> retina screen.

Are you talking about black-boxed-message-button?  If so, I'd say let's move that into CSS instead of debugger.xul.

Also, could you remove the file themes/devtools/shared/images/debugger-blackBoxMessageEye.png?  I don't think it is in use anymore.
Depends on: 1013557
Comment on attachment 8425859 [details] [diff] [review]
Part 1 : Network monitor

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

I'm getting rejects applying the patch - somehow :).  Also, I think this is actually doubling the size of the icon when in 2x mode after looking at it.
Attachment #8425859 - Flags: review?(bgrinstead) → review-
Attached patch WIP v1 (obsolete) — Splinter Review
I haven't tested the patch yet unfortunatly, I had to do a full rebuild.
This patch addresses the following :
- Removes some references to background-noise-toolbar.png
- Adds HDPI support for the network monitor
- Adds HDPI support for the style and shader editors
- Removes the file you asked

It doesn't address the debugger black box button yet.
Attachment #8425859 - Attachment is obsolete: true
Attachment #8428231 - Flags: review?(bgrinstead)
(In reply to Brian Grinstead [:bgrins] from comment #3)
> Comment on attachment 8425859 [details] [diff] [review]
> Part 1 : Network monitor
> 
> Review of attachment 8425859 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> Also, I think this is actually doubling the size of the icon when in 2x mode after looking at it.

I can't seem to fix this issue. I tried to adjust the height and width, but no luck. Maybe I should switch to background-image ?
(In reply to Tim Nguyen [:ntim] from comment #5)
> (In reply to Brian Grinstead [:bgrins] from comment #3)
> > Comment on attachment 8425859 [details] [diff] [review]
> > Part 1 : Network monitor
> > 
> > Review of attachment 8425859 [details] [diff] [review]:
> > -----------------------------------------------------------------
> > 
> > Also, I think this is actually doubling the size of the icon when in 2x mode after looking at it.
> 
> I can't seem to fix this issue. I tried to adjust the height and width, but
> no luck. Maybe I should switch to background-image ?

Yes, I would switch to background-image
(In reply to Brian Grinstead [:bgrins] from comment #6)
> (In reply to Tim Nguyen [:ntim] from comment #5)
> > (In reply to Brian Grinstead [:bgrins] from comment #3)
> > > Comment on attachment 8425859 [details] [diff] [review]
> > > Part 1 : Network monitor
> > > 
> > > Review of attachment 8425859 [details] [diff] [review]:
> > > -----------------------------------------------------------------
> > > 
> > > Also, I think this is actually doubling the size of the icon when in 2x mode after looking at it.
> > 
> > I can't seem to fix this issue. I tried to adjust the height and width, but
> > no luck. Maybe I should switch to background-image ?
> 
> Yes, I would switch to background-image

If you'd rather stick with list-style-image - there are plenty of places in browser/themes using list-style-image in this context, so I know it is possible.  If you search for '2dppx' you will see them.
Comment on attachment 8428231 [details] [diff] [review]
WIP v1

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

Not sure why, but I get an error applying to styleeditor: '1 out of 2 hunks FAILED -- saving rejects to file browser/themes/shared/devtools/styleeditor.css.rej'.

Otherwise, it looks good once the 2x icon for netmonitor.inc.css is worked out.
Attachment #8428231 - Flags: review?(bgrinstead) → review-
Attached patch Patch v1 (obsolete) — Splinter Review
Attachment #8428231 - Attachment is obsolete: true
Attachment #8430680 - Flags: review?(bgrinstead)
Comment on attachment 8430680 [details] [diff] [review]
Patch v1

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

Looks good - were you also going to update black-boxed-message-button in this patch?
Comment on attachment 8430680 [details] [diff] [review]
Patch v1

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

Cancelling review - it sounds like there is a plan for the black box icon
Attachment #8430680 - Flags: review?(bgrinstead)
Attached patch Patch v2 (obsolete) — Splinter Review
Haven't tested the patch yet, since it's building for an hour now.
Attachment #8430680 - Attachment is obsolete: true
Attachment #8430932 - Flags: review?(bgrinstead)
Comment on attachment 8430932 [details] [diff] [review]
Patch v2

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

I'm getting an error building: 'RuntimeError: File "../shared/devtools/images/debugger-blackbox-eye.png" not found'.  Looks like that file shouldn't be deleted.
Attachment #8430932 - Flags: review?(bgrinstead)
Attached patch Patch v2.1Splinter Review
Fixed missing image.
Attachment #8430932 - Attachment is obsolete: true
Attachment #8431190 - Flags: review?(bgrinstead)
Comment on attachment 8431190 [details] [diff] [review]
Patch v2.1

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

These changes look good - push to try before marking checkin-needed
Attachment #8431190 - Flags: review?(bgrinstead) → review+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/bae2e26db67c
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 32
Depends on: 1018715
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: