Closed
Bug 1064373
Opened 10 years ago
Closed 10 years ago
Make the Timeline overview graph themable
Categories
(DevTools :: Performance Tools (Profiler/Timeline), defect)
DevTools
Performance Tools (Profiler/Timeline)
Tracking
(firefox37 verified, firefox38 verified)
VERIFIED
FIXED
Firefox 37
People
(Reporter: vporof, Assigned: jsantell)
References
Details
Attachments
(2 files, 3 obsolete files)
86.79 KB,
image/png
|
Details | |
23.16 KB,
patch
|
jsantell
:
review+
|
Details | Diff | Splinter Review |
Similar to bug 1049820. The graph is drawn a canvas, so theming isn't supported yet.
Updated•10 years ago
|
Flags: qe-verify+
Assignee | ||
Updated•10 years ago
|
Assignee | ||
Updated•10 years ago
|
Blocks: perf-tool-v2
Assignee | ||
Comment 1•10 years ago
|
||
Need to wait for force reload graph feature to land before running tests here, but looking good so far.
Assignee | ||
Comment 2•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
No longer blocks: perf-tool-v2
Comment 3•10 years ago
|
||
Nice! Can you make sure the firebug theme gets handled as well ? (Probably with light theme colors)
Assignee | ||
Comment 4•10 years ago
|
||
Hm, unfamiliar with Firebug themeing, any quick pointers to that? Isn't that in a different repo?
Comment 5•10 years ago
|
||
(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).
Summary: Bug 1049820 - Make the Timeline overview graph themable → Make the Timeline overview graph themable
Assignee | ||
Comment 6•10 years ago
|
||
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)
Reporter | ||
Comment 7•10 years ago
|
||
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+
Assignee | ||
Comment 8•10 years ago
|
||
Attachment #8537594 -
Attachment is obsolete: true
Attachment #8538141 -
Flags: review+
Assignee | ||
Comment 9•10 years ago
|
||
Will work without bug 1087877, but won't update colors between renders. Probably should hold off on landing until that lands.
Assignee | ||
Comment 10•10 years ago
|
||
Rebased against some timeline changes, try: https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=a7c232e14f74
Attachment #8538141 -
Attachment is obsolete: true
Attachment #8544247 -
Flags: review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 11•10 years ago
|
||
Comment 12•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 37
Comment 13•10 years ago
|
||
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
Assignee | ||
Comment 14•10 years ago
|
||
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
Comment 15•10 years ago
|
||
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)
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•