browser/devtools/tilt/tilt-visualizer-style.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/devtools/tilt/tilt-visualizer-style.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,46 @@
     1.4 +/* -*- Mode: javascript, tab-width: 2, indent-tabs-mode: nil, c-basic-offset: 2 -*- */
     1.5 +/* vim: set ts=2 et sw=2 tw=80: */
     1.6 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +"use strict";
    1.10 +
    1.11 +let {TiltMath} = require("devtools/tilt/tilt-math");
    1.12 +let rgba = TiltMath.hex2rgba;
    1.13 +
    1.14 +/**
    1.15 + * Various colors and style settings used throughout Tilt.
    1.16 + */
    1.17 +module.exports = {
    1.18 +  canvas: {
    1.19 +    background: "linear-gradient(#454545 0%, #000 100%)",
    1.20 +  },
    1.21 +
    1.22 +  nodes: {
    1.23 +    highlight: {
    1.24 +      defaultFill: rgba("#555"),
    1.25 +      defaultStroke: rgba("#000"),
    1.26 +      defaultStrokeWeight: 1
    1.27 +    },
    1.28 +
    1.29 +    html: rgba("#8880"),
    1.30 +    body: rgba("#fff0"),
    1.31 +    h1: rgba("#e667af"),
    1.32 +    h2: rgba("#c667af"),
    1.33 +    h3: rgba("#a667af"),
    1.34 +    h4: rgba("#8667af"),
    1.35 +    h5: rgba("#8647af"),
    1.36 +    h6: rgba("#8627af"),
    1.37 +    div: rgba("#5dc8cd"),
    1.38 +    span: rgba("#67e46f"),
    1.39 +    table: rgba("#ff0700"),
    1.40 +    tr: rgba("#ff4540"),
    1.41 +    td: rgba("#ff7673"),
    1.42 +    ul: rgba("#4671d5"),
    1.43 +    li: rgba("#6c8cd5"),
    1.44 +    p: rgba("#aaa"),
    1.45 +    a: rgba("#123eab"),
    1.46 +    img: rgba("#ffb473"),
    1.47 +    iframe: rgba("#85004b")
    1.48 +  }
    1.49 +};

mercurial