Skip to content

Commit

Permalink
hotfix light mode
Browse files Browse the repository at this point in the history
  • Loading branch information
spessasus committed Oct 6, 2024
1 parent ed9ca9e commit 1a7a410
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 21 deletions.
6 changes: 5 additions & 1 deletion src/website/js/synthesizer_ui/methods/synthui_selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ export class Selector
presetLock.innerHTML = this.locked ? getLockSVG(ICON_SIZE) : getUnlockSVG(ICON_SIZE);
this.locale.bindObjectProperty(presetLock, "title", LOCALE_PATH + "channelController.presetReset.description", this.localeArgs);
presetLock.classList.add("voice_reset");
if(this.mainButton.classList.contains("voice_selector_light"))
{
presetLock.classList.add("voice_reset_light");
}
presetLock.onclick = () => {
this.locked = !this.locked;
this.lockCallback(this.locked);
Expand Down Expand Up @@ -245,7 +249,7 @@ export class Selector

toggleMode()
{
this.mainButton.classList.toggle("voice_selector_light")
this.mainButton.classList.toggle("voice_selector_light");
}

/**
Expand Down
1 change: 0 additions & 1 deletion src/website/js/synthesizer_ui/methods/toggle_dark_mode.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export function toggleDarkMode()
controller.reverb.toggleMode();
controller.brightness.toggleMode();
controller.preset.toggleMode();
controller.presetReset.classList.toggle("voice_reset_light");
controller.drumsToggle.classList.toggle("mute_button_light");
controller.muteButton.classList.toggle("mute_button_light");
})
Expand Down
Loading

0 comments on commit 1a7a410

Please sign in to comment.