Closed Bug 1015627 Opened 10 years ago Closed 10 years ago

Inspector markup preview doesn't match devtools theme

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, 2 obsolete files)

STR :
- Enable the pref : devtools.inspector.markupPreview
- Open inspector on a page where HTML source is long enough for markup preview

The inspector markup preview is currently fully dark whatever the theme.
Summary: Inspector markup preview → Inspector markup preview doesn't match devtools theme
Blocks: 916766
Depends on: 1011624
Whiteboard: [good first bug][mentor=ntim][lang=css]
Attached patch Patch (obsolete) — Splinter Review
Assignee: nobody → ntim007
Status: NEW → ASSIGNED
Attachment #8430717 - Flags: review?(bgrinstead)
Whiteboard: [good first bug][mentor=ntim][lang=css]
Comment on attachment 8430717 [details] [diff] [review]
Patch

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

::: browser/devtools/markupview/markup-view.css
@@ +140,5 @@
>    border-bottom: 1px solid #333;
>    overflow: hidden;
>  }
>  
> +.theme-light #previewbar {

I know most of these are already issues, but I'm going to suggest some improvements:

1) Please move all of the #previewbar and #preview stuff into themes/shared/devtools/markup-view.css.
2) Use colors from https://developer.mozilla.org/en-US/docs/Tools/DevToolsColors (probably Tab Toolbar for background and Splitters for border)
3) Move the colors from #previewbar { .. } into .theme-dark #previewbar {} so that it we have similar definitions as in .theme-light #previewbar {}.
Attachment #8430717 - Flags: review?(bgrinstead)
Attached patch Patch v2 (obsolete) — Splinter Review
Addressed review comments
Attachment #8430717 - Attachment is obsolete: true
Attachment #8430795 - Flags: review?(bgrinstead)
Comment on attachment 8430795 [details] [diff] [review]
Patch v2

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

Looks good to me, please update with the minor notes then you can reupload with r+

::: browser/themes/shared/devtools/markup-view.css
@@ +40,5 @@
> +  position: fixed;
> +  top: 0;
> +  right: 0;
> +  width: 90px;
> +  background: black;

You can remove background:black here

@@ +47,5 @@
> +  overflow: hidden;
> +}
> +
> +.theme-dark #previewbar {
> +  background: #252c33;

Please add comments that say /* Tab Toolbar */ and /* Splitters */ after each color used in these two rules
Attachment #8430795 - Flags: review?(bgrinstead) → review+
Attachment #8430795 - Attachment is obsolete: true
Attachment #8430850 - Flags: review+
Keywords: checkin-needed
https://hg.mozilla.org/integration/fx-team/rev/0a7752f9805a

Landed without a Try run since it was a css-only change. That said, please try to use commit messages that explain what the patch is doing instead of restating the problem it's solving. Thanks :)
https://developer.mozilla.org/en-US/docs/Developer_Guide/Committing_Rules_and_Responsibilities#Checkin_comment
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
(In reply to Ryan VanderMeulen [:RyanVM UTC-4] from comment #6)
> https://hg.mozilla.org/integration/fx-team/rev/0a7752f9805a
> 
> Landed without a Try run since it was a css-only change. That said, please
> try to use commit messages that explain what the patch is doing instead of
> restating the problem it's solving. Thanks :)
> https://developer.mozilla.org/en-US/docs/Developer_Guide/
> Committing_Rules_and_Responsibilities#Checkin_comment

Sorry, I'll keep that in mind next time :/
https://hg.mozilla.org/mozilla-central/rev/0a7752f9805a
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 32
QA Whiteboard: [good first verify]
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: