Simon Hunt
Committed by Gerrit Code Review

GUI -- App view -

- fix dialog button colors
- Capitalize action word

Change-Id: I11f619fe1f9055e4f5975e5c14c8b562e471fab7
......@@ -40,11 +40,8 @@
padding: 2px 6px;
margin: 4px;
float: right;
/* color works for both light and dark themes */
background-color: #c55;
color: white;
}
.light .dialog .dialog-button {
background-color: #fec;
}
.dark .dialog .dialog-button {
background-color: #369;
}
......
......@@ -326,9 +326,13 @@
['scroll down', 'See more apps']
]);
function capitalize(s) {
return s ? s[0].toUpperCase() + s.slice(1) : s;
}
function createConfirmationText(action, itemId) {
var content = ds.createDiv();
content.append('p').text(action + ' ' + itemId);
content.append('p').text(capitalize(action) + ' ' + itemId);
if (strongWarning[itemId]) {
content.append('p').text(discouragement).classed('strong', true);
}
......