Browse Source

Increase opacity of the T logo and lose the em dash, per Digital Design.

parisminton 7 years ago
parent
commit
07264ecee3
3 changed files with 3 additions and 14 deletions
  1. 2 13
      renderer/text-wrapper.js
  2. BIN
      settings/backgrounds/t_logo_dearsugars.png
  3. 1 1
      settings/themes.json

+ 2 - 13
renderer/text-wrapper.js View File

20
           wrap_width = right - left,
20
           wrap_width = right - left,
21
           max_width = 0,
21
           max_width = 0,
22
           words = smartquotes(txt + "").trim().replace(/\s\s+/g, " \n").split(/ /g),
22
           words = smartquotes(txt + "").trim().replace(/\s\s+/g, " \n").split(/ /g),
23
-          indent;
24
-
25
-      if (type === 'caption') {
26
-        // negative indentation for opening quotes
27
-        indent = 20;
28
-      }
29
-      else if (type === 'citation') {
30
-        // negative indentation for opening em dash
31
-        indent = 50;
32
-      }
23
+          indent = 20;
33
 
24
 
34
       if (bottom === null && top === null) {
25
       if (bottom === null && top === null) {
35
         top = 0;
26
         top = 0;
53
 
44
 
54
         } else {
45
         } else {
55
 
46
 
56
-          // automatically prepend em dash to citation
57
-          word = (type === 'citation' && i === 0) ? '— ' + word : word;
58
           lines[lines.length - 1].push(word);
47
           lines[lines.length - 1].push(word);
59
 
48
 
60
         }
49
         }
97
       lines.forEach(function(line, i){
86
       lines.forEach(function(line, i){
98
 
87
 
99
         if (/caption|citation/.test(type)) {
88
         if (/caption|citation/.test(type)) {
100
-          if (i === 0 && /^“|^—/.test(line[0])) {
89
+          if (i === 0 && /^“/.test(line[0])) {
101
             context.fillText(line.join(" "), x, y + i * (theme[type + 'LineHeight'] + theme[type + 'LineSpacing']));
90
             context.fillText(line.join(" "), x, y + i * (theme[type + 'LineHeight'] + theme[type + 'LineSpacing']));
102
           }
91
           }
103
           else {
92
           else {

BIN
settings/backgrounds/t_logo_dearsugars.png View File


+ 1 - 1
settings/themes.json View File

69
     "foregroundColor": "rgba(0, 0, 0, 0.9)",
69
     "foregroundColor": "rgba(0, 0, 0, 0.9)",
70
     "citationColor": "rgba(0, 0, 0, 0.9)",
70
     "citationColor": "rgba(0, 0, 0, 0.9)",
71
     "backgroundColor": "#91d2d2",
71
     "backgroundColor": "#91d2d2",
72
-    "backgroundImage": "t_logo_black.png",
72
+    "backgroundImage": "t_logo_dearsugars.png",
73
     "labelColor": "rgba(0, 0, 0, 0.9)",
73
     "labelColor": "rgba(0, 0, 0, 0.9)",
74
     "labelText": "Dear Sugars"
74
     "labelText": "Dear Sugars"
75
   },
75
   },