Closed
Bug 1150112
Opened 10 years ago
Closed 10 years ago
Timeline markers should respond to theme changes
Categories
(DevTools :: Performance Tools (Profiler/Timeline), defect)
Tracking
(firefox40 fixed)
RESOLVED
FIXED
Firefox 40
Tracking | Status | |
---|---|---|
firefox40 | --- | fixed |
People
(Reporter: jsantell, Assigned: jsantell)
References
Details
Attachments
(1 file, 2 obsolete files)
13.44 KB,
patch
|
jsantell
:
review+
|
Details | Diff | Splinter Review |
Right now timeline markers are only for "light theme" -- these should have a dark theme equivilent, and switch when toggling themes.
Assignee | ||
Updated•10 years ago
|
Blocks: perf-polish
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → jsantell
Assignee | ||
Comment 1•10 years ago
|
||
Working on the colors in bug 947242.
Changed waterfall view and marker details to just use CSS. Markers overview now reacts to theme changes
https://treeherder.mozilla.org/#/jobs?repo=try&revision=62091261a4ff
Attachment #8587512 -
Flags: review?(vporof)
Comment 2•10 years ago
|
||
Comment on attachment 8587512 [details] [diff] [review]
1150112-marker-colors.patch
Review of attachment 8587512 [details] [diff] [review]:
-----------------------------------------------------------------
UUUUUGH these colors are horrible. My eyes are hurting.
I also expect this to break some tests. This comment: https://dxr.mozilla.org/mozilla-central/source/browser/devtools/shared/timeline/global.js#25
::: browser/devtools/shared/timeline/markers-overview.js
@@ +169,5 @@
> let top = headerHeight + style.group * groupHeight + groupPadding / 2;
> let height = groupHeight - groupPadding;
>
> + let color = getColor(style.colorName, this.theme);
> +
Nit: extra newline.
@@ +222,5 @@
> * and updates the internal styling to match. Requires a redraw
> * to see the effects.
> */
> setTheme: function (theme) {
> + this.theme = theme = theme || "light";
= theme = theme = theme
::: browser/devtools/shared/timeline/waterfall.js
@@ +431,5 @@
> sidebar.setAttribute("width", WATERFALL_SIDEBAR_WIDTH);
> sidebar.setAttribute("align", "center");
>
> let bullet = this._document.createElement("hbox");
> +
Nit: extra newline.
::: browser/themes/shared/devtools/performance.inc.css
@@ +433,5 @@
> +.marker-details-bullet.highlight-pink,
> +.waterfall-marker-bar.highlight-pink,
> +.waterfall-marker-bullet.highlight-pink {
> + background-color: var(--theme-highlight-pink);
> + border-color: var(--theme-highlight-pink);
The background color shouldn't be the same as the border color. Otherwise, why even have a border?
Attachment #8587512 -
Flags: review?(vporof)
Assignee | ||
Comment 3•10 years ago
|
||
Looks like most of the timeline tests are still in /timeline -- made bug 1150696 for this.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=341b66a172ea
Attachment #8587512 -
Attachment is obsolete: true
Attachment #8587655 -
Flags: review?(vporof)
Comment 4•10 years ago
|
||
Comment on attachment 8587655 [details] [diff] [review]
1150112-marker-colors.patch
Review of attachment 8587655 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/themes/shared/devtools/performance.inc.css
@@ -57,5 @@
> width: 8px;
> height: 8px;
> margin: 0 8px;
> - border: 1px solid;
> - border-radius: 1px;
Should still keep the border-radius, no? Here and everywhere else.
Attachment #8587655 -
Flags: review?(vporof) → review+
Assignee | ||
Comment 5•10 years ago
|
||
I like the squares, but wfm
Attachment #8587655 -
Attachment is obsolete: true
Attachment #8587721 -
Flags: review+
Assignee | ||
Comment 6•10 years ago
|
||
Intermittents in try for bug 1134500, but looks like that got handled
Keywords: checkin-needed
Comment 7•10 years ago
|
||
Comment 8•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 40
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•