mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2026-02-01 15:21:12 +03:00
lightmode -> dark mode
This commit is contained in:
@@ -52,7 +52,7 @@ interface SBConfig {
|
||||
},
|
||||
scrollToEditTimeUpdate: boolean,
|
||||
categoryPillUpdate: boolean,
|
||||
lightMode: boolean,
|
||||
darkMode: boolean,
|
||||
|
||||
skipKeybind: Keybind,
|
||||
startSponsorKeybind: Keybind,
|
||||
@@ -208,7 +208,7 @@ const Config: SBObject = {
|
||||
autoSkipOnMusicVideos: false,
|
||||
scrollToEditTimeUpdate: false, // false means the tooltip will be shown
|
||||
categoryPillUpdate: false,
|
||||
lightMode: false,
|
||||
darkMode: true,
|
||||
|
||||
/**
|
||||
* 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).
|
||||
|
||||
@@ -11,7 +11,7 @@ async function init() {
|
||||
|
||||
await utils.wait(() => Config.config !== null);
|
||||
|
||||
if (Config.config.lightMode) {
|
||||
if (!Config.config.darkMode) {
|
||||
document.documentElement.setAttribute("data-theme", "light");
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ async function init() {
|
||||
|
||||
await utils.wait(() => Config.config !== null);
|
||||
|
||||
if (Config.config.lightMode) {
|
||||
if (!Config.config.darkMode) {
|
||||
document.documentElement.setAttribute("data-theme", "light");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user