Closed Bug 1064373 Opened 10 years ago Closed 10 years ago

Make the Timeline overview graph themable

Categories

(DevTools :: Performance Tools (Profiler/Timeline), defect)

defect
Not set
normal

Tracking

(firefox37 verified, firefox38 verified)

VERIFIED FIXED
Firefox 37
Tracking Status
firefox37 --- verified
firefox38 --- verified

People

(Reporter: vporof, Assigned: jsantell)

References

Details

Attachments

(2 files, 3 obsolete files)

Similar to bug 1049820. The graph is drawn a canvas, so theming isn't supported yet.
Depends on: 1050386
Flags: qe-verify+
Assignee: nobody → jsantell
Status: NEW → ASSIGNED
Depends on: 1087877
Need to wait for force reload graph feature to land before running tests here, but looking good so far.
No longer blocks: perf-tool-v2
Blocks: 1110550
Nice! Can you make sure the firebug theme gets handled as well ? (Probably with light theme colors)
Hm, unfamiliar with Firebug themeing, any quick pointers to that? Isn't that in a different repo?
(In reply to Jordan Santell [:jsantell] [@jsantell] from comment #4) > Hm, unfamiliar with Firebug themeing, any quick pointers to that? Isn't that > in a different repo? Instead of (theme === "light"), use (theme !== "dark"), so all themes created by add-ons will have the light colors. To test the firebug theme, you can try firebug.next (v3 alpha).
Depends on: 1110952
Summary: Bug 1049820 - Make the Timeline overview graph themable → Make the Timeline overview graph themable
Thoughts on this approach, and r? if it looks good. If it looks good, should add Mike to r? as well for the css-colors change.
Attachment #8535320 - Attachment is obsolete: true
Attachment #8537594 - Flags: review?(vporof)
Comment on attachment 8537594 [details] [diff] [review] 1064373-timeline-dark-theme.patch Review of attachment 8537594 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/devtools/timeline/widgets/markers-overview.js @@ +58,5 @@ > > MarkersOverview.prototype = Heritage.extend(AbstractCanvasGraph.prototype, { > clipheadLineColor: OVERVIEW_CLIPHEAD_LINE_COLOR, > selectionLineColor: OVERVIEW_SELECTION_LINE_COLOR, > + fixedHeight: OVERVIEW_HEADER_HEIGHT + OVERVIEW_BODY_HEIGHT, Bad rebase. There's a fixedHeight getter in here. @@ +222,5 @@ > return scaledStep; > } > + }, > + > + setTheme: function (theme) { Comment pls. ::: browser/devtools/timeline/widgets/memory-overview.js @@ +72,5 @@ > this.dataOffsetX = interval.startTime; > LineGraphWidget.prototype.setData.call(this, memory); > + }, > + > + setTheme: function (theme) { Ditto. ::: toolkit/devtools/css-color.js @@ +467,5 @@ > + alpha = 1; > + } > + > + let { r, g, b } = color._getRGBATuple(); > + return "rgba(" + r + ", " + g + ", " + b + ", " + alpha + ")"; Very nice.
Attachment #8537594 - Flags: review?(vporof) → review+
Will work without bug 1087877, but won't update colors between renders. Probably should hold off on landing until that lands.
Attachment #8538141 - Attachment is obsolete: true
Attachment #8544247 - Flags: review+
Flags: in-testsuite+
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 37
Verified fixed on Aurora 37.0a2 (2015-01-19) and Nightly 38.0a1 (2015-01-18), using Ubuntu 12.04 32-bit, Mac OS X 10.9.5 and Windows 8 32-bit. There's one potential inconsistency on Linux - the "Memory" checkbox is using the system theme's hover style instead of the dark one that's used across Firefox's interface. It's worth mentioning that this is a behavior occurring in the toolbox options as well, here's a screenshot [1]. I'm not sure if this is intended, so please let me know if I should file a separate bug for it. [1] http://i.imgur.com/Tqnbn0I.png
Status: RESOLVED → VERIFIED
Thanks Andrei; That's not intentional, but the Timeline tool is not being promoted or discussed, as it will be moved in the new performance tool (combination of Timeline, and the current profiler/performance tool) (bug 1075567) for the next uplift (Fx38). The themeable aspect of the timeline tool and current profiler will be applied to the new performance tool in bug 1110550, where we won't want issues like this, as the new performance tool will be heavily promoted. I think this is fine for now, but we'll have to investigate why this is and see if it also occurs in the new performance tool
Sorry for the spam. Moving bugs to Firefox :: Developer Tools: Performance Tools (Profiler/Timeline). dkl
Component: Developer Tools: Timeline → Developer Tools: Performance Tools (Profiler/Timeline)
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: