Bug 1416106 - Part 9: Set styles to graph. r?gl draft
authorDaisuke Akatsuka <dakatsuka@mozilla.com>
Wed, 14 Feb 2018 23:18:13 +0900
changeset 755234 eb69e810f6a6759ac69d2fa563fabc6f6ef63863
parent 755233 5cf82cd2d674ffe2a455e82e4d6b5a6abf9ea9fa
child 755235 61c4770af2d8b8e31f66ec20a8279da544b805fc
push id99127
push userbmo:dakatsuka@mozilla.com
push dateThu, 15 Feb 2018 00:47:03 +0000
reviewersgl
bugs1416106
milestone60.0a1
Bug 1416106 - Part 9: Set styles to graph. r?gl MozReview-Commit-ID: J44bKeKxdZN
devtools/client/inspector/animation/components/keyframes-graph/KeyframesGraph.js
devtools/client/themes/animation.css
--- a/devtools/client/inspector/animation/components/keyframes-graph/KeyframesGraph.js
+++ b/devtools/client/inspector/animation/components/keyframes-graph/KeyframesGraph.js
@@ -27,17 +27,17 @@ class KeyframesGraph extends PureCompone
       property,
       simulateAnimation,
       type,
       values,
     } = this.props;
 
     return dom.div(
       {
-        className: "keyframes-graph",
+        className: `keyframes-graph ${ property }`
       },
       KeyframesGraphPath(
         {
           getComputedStyle,
           property,
           simulateAnimation,
           type,
           values,
--- a/devtools/client/themes/animation.css
+++ b/devtools/client/themes/animation.css
@@ -365,21 +365,36 @@
 }
 
 .keyframes-graph-path {
   height: 100%;
   width: 100%;
 }
 
 .keyframes-graph-path path {
-  fill: lime;
+  fill: #00b0bd88;
+  stroke: #00b0bd;
   vector-effect: non-scaling-stroke;
   transform: scale(1, -1);
 }
 
+.keyframes-graph.opacity .keyframes-graph-path path {
+  fill: #df00a988;
+  stroke: #df00a9;
+}
+
+.keyframes-graph.transform .keyframes-graph-path path {
+  fill: #ea800088;
+  stroke: #ea8000;
+}
+
+.keyframes-graph-path .color-path path {
+  stroke: none;
+}
+
 /* No Animation Panel */
 .animation-error-message {
   overflow: auto;
 }
 
 .animation-error-message > p {
   white-space: pre;
 }