Buttons now change color depending on state. Added colorPalette config entry

This commit is contained in:
FlorianZahn
2021-10-09 02:43:39 +02:00
parent 44f9ab9806
commit 907bd68e4e
7 changed files with 112 additions and 30 deletions

View File

@@ -44,7 +44,8 @@ interface SBConfig {
autoHideInfoButton: boolean,
autoSkipOnMusicVideos: boolean,
highlightCategoryUpdate: boolean,
wikiPages: SBMap<string, string>
wikiPages: SBMap<string, string>,
colorPalette: SBMap<string, string>
// What categories should be skipped
categorySelections: CategorySelection[],
@@ -211,6 +212,11 @@ const Config: SBObject = {
["mute", "https://wiki.sponsor.ajay.app/w/Mute_Segment"],
]),
colorPalette: new SBMap("colorPalette", [
["SponsorBlockRed", "#780303"],
["SponsorBlockWhite", "#ffffff"]
]),
// Preview bar
barTypes: {
"preview-chooseACategory": {