Closed Bug 560831 Opened 15 years ago Closed 15 years ago

Allow theming of highlighter panels in inspector (reticle)

Categories

(DevTools :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: rcampbell, Assigned: rcampbell)

References

Details

Attachments

(1 file)

The PanelHighlighter should have some theme-able or preference-defined settings to define it's paramaters. The PanelHighlighter will be reimplemented in a subsequent Milestone to be more consistent with the original design document. see: https://wiki.mozilla.org/Firefox/Projects/Inspector#0.7
Adding simple styling on highlighter in CSS. Removed style-related methods and constructor from inspector code. Applied after style panel patches in bug 560692.
Assignee: nobody → rcampbell
Status: NEW → ASSIGNED
Attachment #441287 - Flags: review?(gavin.sharp)
Comment on attachment 441287 [details] [diff] [review] highlighter-panel-styling >--- a/browser/base/content/browser.css >+++ b/browser/base/content/browser.css >@@ -227,6 +227,9 @@ > #highlighter-panel { > -moz-appearance: none; > -moz-window-shadow: none; >+ background: -moz-linear-gradient(top -5deg, #ffdd88, #ffffbb); >+ border: none; >+ opacity: 0.35; > } None of that belongs in browser/base/.
Comment on attachment 441287 [details] [diff] [review] highlighter-panel-styling >diff --git a/browser/base/content/browser-inspector.js b/browser/base/content/browser-inspector.js > initializeHighlighter: function IUI_initializeHighlighter() > { >- this.highlighter = new PanelHighlighter(this.browser, this.highlightColor, >- this.highlightThickness, this.highlightOpacity); these properties on InspectorUI should be removed now too, right? >diff --git a/browser/base/content/browser.css b/browser/base/content/browser.css > #highlighter-panel { > -moz-appearance: none; > -moz-window-shadow: none; >+ background: -moz-linear-gradient(top -5deg, #ffdd88, #ffffbb); >+ border: none; >+ opacity: 0.35; > } dao's right, these should be in the themes/ browser.css rather than content/.
Attachment #441287 - Flags: review?(gavin.sharp) → review-
yes, those properties will go away in a subsequent patch (I think it's in one of the style or DOM panel patches). The theming on the highlighter panel was temporary. I'll be filing a follow-up bug for a highlighter redesign that should include those things. I stuck those in browser.css for temporary convenience.
this is largely dealt with in bug 560692 and bug 561782. Closing.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Verified Fixed using Build identifier: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:10.0a1) Gecko/20111020 Firefox/10.0a1.
Status: RESOLVED → VERIFIED
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: