Fix: i18n config dialog
This commit is contained in:
parent
381ee88e94
commit
20481c9180
|
@ -7,6 +7,10 @@
|
|||
"message": "Add Style",
|
||||
"description": "Title of the page for adding styles"
|
||||
},
|
||||
"alphaChannel": {
|
||||
"message": "Alpha channel",
|
||||
"description": "Label of alpha channel input"
|
||||
},
|
||||
"appliesAdd": {
|
||||
"message": "Add",
|
||||
"description": "Label for the button to add an 'applies' entry"
|
||||
|
|
|
@ -33,8 +33,14 @@ function configDialog(style) {
|
|||
let appendChild;
|
||||
if (va.type === 'color') {
|
||||
va.inputColor = $element({tag: 'input', type: 'color'});
|
||||
// FIXME: i18n
|
||||
va.inputAlpha = $element({tag: 'input', type: 'range', min: 0, max: 1, title: 'Opacity', step: 'any'});
|
||||
va.inputAlpha = $element({
|
||||
tag: 'input',
|
||||
type: 'range',
|
||||
min: 0,
|
||||
max: 1,
|
||||
title: chrome.i18n.getMessage('alphaChannel'),
|
||||
step: 'any'
|
||||
});
|
||||
va.inputColor.onchange = va.inputAlpha.oninput = () => {
|
||||
va.dirty = true;
|
||||
const color = colorParser.parse(va.inputColor.value);
|
||||
|
|
Loading…
Reference in New Issue
Block a user