Add text color based off luminance for full video label

This commit is contained in:
Ajay
2022-02-05 22:23:11 -05:00
parent 0ac4ef7a4b
commit e8307a2af7
3 changed files with 55 additions and 3 deletions

View File

@@ -54,6 +54,14 @@ interface SBConfig {
categoryPillUpdate: boolean,
darkMode: boolean,
// Used to cache calculated text color info
categoryPillColors: {
[key in Category]: {
lastColor: string,
textColor: string
}
}
skipKeybind: Keybind,
startSponsorKeybind: Keybind,
submitKeybind: Keybind,
@@ -210,6 +218,8 @@ const Config: SBObject = {
categoryPillUpdate: false,
darkMode: true,
categoryPillColors: {},
/**
* Default keybinds should not set "code" as that's gonna be different based on the user's locale. They should also only use EITHER ctrl OR alt modifiers (or none).
* Using ctrl+alt, or shift may produce a different character that we will not be able to recognize in different locales.