cherry pick from previously broken and abandoned branch

colorize buttons and ratio bar

Resolves #218
Using user options (#387)

edit color schemes

logistics for the added options

handles storage, change, initialize
This commit is contained in:
Yvon Cui committed 2022-01-18 09:54:17 -05:00
1 parent 510c083c77
commit b476c60fe0
7 files changed
+210 -8

No files matched your search

+27
View File
@@ -110,12 +110,39 @@ function storageChangeHandler(changes, area) {
changes.disableVoteSubmission.newValue
);
}
if (changes.coloredThumbs !== undefined) {
handleColoredThumbsChangeEvent(
changes.coloredThumbs.newValue
);
}
if (changes.coloredBar !== undefined) {
handleColoredBarChangeEvent(
changes.coloredBar.newValue
);
}
if (changes.colorTheme !== undefined) {
handleColorThemeChangeEvent(
changes.colorTheme.newValue
);
}
}
function handleDisableVoteSubmissionChangeEvent(value) {
extConfig.disableVoteSubmission = value;
}
function handleColoredThumbsChangeEvent(value) {
extConfig.coloredThumbs = value;
}
function handleColoredBarChangeEvent(value) {
extConfig.coloredBar = value;
}
function handleColorThemeChangeEvent(value) {
extConfig.colorTheme = value;
}
export {
sendVote,
sendVideoIds,