Simon Hunt
Committed by Gerrit Code Review

GUI -- App view -

- fix dialog button colors
- Capitalize action word

Change-Id: I11f619fe1f9055e4f5975e5c14c8b562e471fab7
...@@ -40,11 +40,8 @@ ...@@ -40,11 +40,8 @@
40 padding: 2px 6px; 40 padding: 2px 6px;
41 margin: 4px; 41 margin: 4px;
42 float: right; 42 float: right;
43 + /* color works for both light and dark themes */
44 + background-color: #c55;
45 + color: white;
43 } 46 }
44 47
45 -.light .dialog .dialog-button {
46 - background-color: #fec;
47 -}
48 -.dark .dialog .dialog-button {
49 - background-color: #369;
50 -}
......
...@@ -326,9 +326,13 @@ ...@@ -326,9 +326,13 @@
326 ['scroll down', 'See more apps'] 326 ['scroll down', 'See more apps']
327 ]); 327 ]);
328 328
329 + function capitalize(s) {
330 + return s ? s[0].toUpperCase() + s.slice(1) : s;
331 + }
332 +
329 function createConfirmationText(action, itemId) { 333 function createConfirmationText(action, itemId) {
330 var content = ds.createDiv(); 334 var content = ds.createDiv();
331 - content.append('p').text(action + ' ' + itemId); 335 + content.append('p').text(capitalize(action) + ' ' + itemId);
332 if (strongWarning[itemId]) { 336 if (strongWarning[itemId]) {
333 content.append('p').text(discouragement).classed('strong', true); 337 content.append('p').text(discouragement).classed('strong', true);
334 } 338 }
......