Bug 1406285 - Part 6: Apply computed timing graph color by animation type. r=gl

MozReview-Commit-ID: 7MR7Es9HaO1

--HG--
extra : rebase_source : 32b36bb3491fab4c6c62b922a9bd034fd539783c
This commit is contained in:
Daisuke Akatsuka 2018-01-18 12:43:28 +09:00
Родитель ad1112c3ca
Коммит 32e5aaaef8
2 изменённых файлов: 14 добавлений и 2 удалений

Просмотреть файл

@ -39,7 +39,7 @@ class AnimationItem extends PureComponent {
return dom.li(
{
className: "animation-item"
className: `animation-item ${ animation.state.type }`
},
AnimationTarget(
{

Просмотреть файл

@ -56,6 +56,18 @@
background-color: var(--animation-even-background-color);
}
.animation-item.cssanimation {
--computed-timing-graph-color: var(--theme-contrast-background);
}
.animation-item.csstransition {
--computed-timing-graph-color: var(--theme-highlight-blue);
}
.animation-item.scriptanimation {
--computed-timing-graph-color: var(--theme-graphs-green);
}
/* Animation Target */
.animation-target {
align-items: center;
@ -82,7 +94,7 @@
}
.animation-computed-timing-path path {
fill: lime;
fill: var(--computed-timing-graph-color);
vector-effect: non-scaling-stroke;
transform: scale(1, -1);
}