From 24b8f7063c0834854eded74d653f88bd0baad097 Mon Sep 17 00:00:00 2001 From: Matt Peterson Date: Thu, 6 Apr 2017 14:17:34 -0400 Subject: [PATCH] Change defaults for text opacity and padding --- src/scripts/room.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/room.js b/src/scripts/room.js index d67a950..50eaf14 100644 --- a/src/scripts/room.js +++ b/src/scripts/room.js @@ -112,7 +112,7 @@ export class Room { switch (v.t) { case 't': // text - alpha = def(v.s.opacity, 0.5); + alpha = def(v.s.opacity, 1); let textStyle = new PIXI.TextStyle(); textStyle.fill = parseColor(def(v.s.color, '#ffffff')); textStyle.stroke = v.s.stroke? parseColor(v.s.stroke) : undefined; @@ -139,7 +139,7 @@ export class Room { // def({baseline: 1, middle: 0.5}[baseline], 0), textStyle.align, baseline); if (background !== undefined) { - let padding = def(v.s.backgroundPadding, 0.15); + let padding = def(v.s.backgroundPadding, 0.3); let bg = new PIXI.Graphics(); bg.beginFill(background); bg.drawRoundedRect(-padding, -padding, text.width+2*padding, text.height+2*padding, 0.1);