Browse Source

Updating docs/sample themes

Noah 8 years ago
parent
commit
507d6e273a
3 changed files with 12 additions and 2 deletions
  1. 1 1
      THEMES.md
  2. 1 1
      renderer/patterns.js
  3. 10 0
      settings/themes.json

+ 1 - 1
THEMES.md View File

60
 
60
 
61
 ### Wave options
61
 ### Wave options
62
 
62
 
63
-* `pattern` - What waveform shape to draw. Current options are `wave`, `bars`, `roundBars`, `pixel`, `bricks`, and `equalizer` (default: `wave`)
63
+* `pattern` - What waveform shape to draw. Current options are `wave`, `bars`, `line`, `curve`, `roundBars`, `pixel`, `bricks`, and `equalizer` (default: `wave`)
64
 * `waveTop` - How many pixels from the top edge to start the waveform (default: `0`)
64
 * `waveTop` - How many pixels from the top edge to start the waveform (default: `0`)
65
 * `waveBottom` - How many pixels from the top edge to end the waveform (default: same as `height`)
65
 * `waveBottom` - How many pixels from the top edge to end the waveform (default: same as `height`)
66
 * `waveLeft` - How many pixels from the left edge to start the waveform (default: `0`)
66
 * `waveLeft` - How many pixels from the left edge to start the waveform (default: `0`)

+ 1 - 1
renderer/patterns.js View File

158
 
158
 
159
     context.fillStyle = options.waveColor;
159
     context.fillStyle = options.waveColor;
160
     context.strokeStyle = options.waveColor;
160
     context.strokeStyle = options.waveColor;
161
-    context.lineWidth = 3;
161
+    context.lineWidth = 5;
162
 
162
 
163
     var line = d3.line()
163
     var line = d3.line()
164
       .context(context);
164
       .context(context);

+ 10 - 0
settings/themes.json View File

51
     "captionBottom": 660,
51
     "captionBottom": 660,
52
     "captionTop": null
52
     "captionTop": null
53
   },
53
   },
54
+  "Line": {
55
+    "backgroundColor": "#edc951",
56
+    "foregroundColor": "#00a0b0",
57
+    "pattern": "line"
58
+  },
59
+  "Curve": {
60
+    "backgroundColor": "#00a0b0",
61
+    "foregroundColor": "#edc951",
62
+    "pattern": "curve"
63
+  },
54
   "Bricks": {
64
   "Bricks": {
55
     "backgroundColor": "#8771aa",
65
     "backgroundColor": "#8771aa",
56
     "foregroundColor": "#fff",
66
     "foregroundColor": "#fff",