Bug 1308268 - Use thinner stroke widths for grid outline. r?gl draft
authorMicah Tigley <tigleym@gmail.com>
Thu, 09 Feb 2017 19:50:36 -0700
changeset 481585 eb24dcb9c9485cae581243c2a94143e37daccf6c
parent 481583 d46ec93cf97844bf36fd8d3edbf544010262767c
child 545230 fd2ed28a32fb4446bd434d2a544081911e4bb02e
push id44855
push userbmo:tigleym@gmail.com
push dateFri, 10 Feb 2017 02:55:18 +0000
reviewersgl
bugs1308268
milestone54.0a1
Bug 1308268 - Use thinner stroke widths for grid outline. r?gl MozReview-Commit-ID: HZqVtySMWi4
devtools/client/inspector/layout/components/GridOutline.js
--- a/devtools/client/inspector/layout/components/GridOutline.js
+++ b/devtools/client/inspector/layout/components/GridOutline.js
@@ -45,16 +45,17 @@ module.exports = createClass({
   drawGridOutlineBorder(numberOfRows, numberOfCols) {
     return dom.rect(
       {
         id: "grid-outline-border",
         x: 1,
         y: 1,
         width: numberOfCols * 10,
         height: numberOfRows * 10,
+        strokeWidth: 0.75,
         stroke: "#9370DB",
         fill: "none"
       }
     );
   },
 
   processGridsToDraw(grids) {
     const highlightedGrids = [];
@@ -78,17 +79,17 @@ module.exports = createClass({
         y: rowNumber,
         width: 10,
         height: 10,
         onMouseOver: this.onMouseOverCell,
         onMouseOut: this.onMouseLeaveCell,
         stroke: "#9370DB",
         fill: "none",
         pointerEvents: "all",
-        strokeDasharray: [2, 2],
+        strokeDasharray: [0.5, 2],
       },
     );
   },
 
   renderFragment(gridFragment) {
     const { rows, cols } = gridFragment;
 
     const numberOfColLines = cols.lines.length - 1;