= {};
if (previewChecked === 'background') {
style.backgroundColor = color;
} else if (previewChecked === 'foreground') {
style.color = color;
}
const usernameHandler = (event: Event) => {
this.onInput(event, id, 'username');
};
const colorHandler = (event: Event) => {
this.onInput(event, id, 'color');
};
const removeHandler = () => {
this.removeColor(id);
};
return html`
`;
});
return html`
<${Setting} ...${this.props}>
Assign custom colors to usernames.
You can enter multiple usernames separated by a comma if you want them
to use the same color.
${editors}
/>
`;
}
}