Remove Theme Previewer

This commit is contained in:
2024-04-20 13:04:03 +02:00
parent 01235727c7
commit bb6a52bd4b
3 changed files with 0 additions and 9 deletions

View File

@ -336,7 +336,6 @@
<select id="theme-selector" class="ml-4 border mb-2 <select id="theme-selector" class="ml-4 border mb-2
text-sm rounded-lg block p-2.5"> text-sm rounded-lg block p-2.5">
</select> </select>
<div id="theme-previewer"></div>
</div> </div>
</div> </div>
<!-- Editor mode selection --> <!-- Editor mode selection -->

View File

@ -34,7 +34,6 @@ export const singleElements = {
midi_channels_scripts: "midi-channels-scripts", midi_channels_scripts: "midi-channels-scripts",
midi_clock_ppqn: "midi-clock-ppqn-input", midi_clock_ppqn: "midi-clock-ppqn-input",
theme_selector: "theme-selector", theme_selector: "theme-selector",
theme_previewer: "theme-previewer",
load_demo_songs: "load-demo-songs", load_demo_songs: "load-demo-songs",
normal_mode_button: "normal-mode", normal_mode_button: "normal-mode",
vim_mode_button: "vim-mode", vim_mode_button: "vim-mode",

View File

@ -310,7 +310,6 @@ export const installInterfaceLogic = (app: Editor) => {
for (const [key, _] of Object.entries(selected_theme)) { for (const [key, _] of Object.entries(selected_theme)) {
theme_preview += `<p class="inline text-${key} bg-${key}">█</div>`; theme_preview += `<p class="inline text-${key} bg-${key}">█</div>`;
} }
app.interface.theme_previewer.innerHTML = theme_preview;
}); });
app.interface.settings_button.addEventListener("click", () => { app.interface.settings_button.addEventListener("click", () => {
@ -336,12 +335,6 @@ export const installInterfaceLogic = (app: Editor) => {
// @ts-ignore // @ts-ignore
let selected_theme = colors[app.settings.theme as string]; let selected_theme = colors[app.settings.theme as string];
let theme_preview = "<div class='ml-6'>";
for (const [key, _] of Object.entries(selected_theme)) {
theme_preview += `<p class="inline text-${key} bg-${key}">█</p>`;
}
theme_preview += "</div>";
app.interface.theme_previewer.innerHTML = theme_preview;
// Populate the font family selector // Populate the font family selector
const doughNudgeRange = app.interface.dough_nudge_range as HTMLInputElement; const doughNudgeRange = app.interface.dough_nudge_range as HTMLInputElement;
doughNudgeRange.value = app.dough_nudge.toString(); doughNudgeRange.value = app.dough_nudge.toString();