correction for tab theme

This commit is contained in:
2023-12-16 17:14:25 +01:00
parent 5eb4f29120
commit a7b8a846c0
2 changed files with 4 additions and 2 deletions

View File

@ -76,7 +76,7 @@
} }
.tab_panel { .tab_panel {
@apply inline-block lg:px-4 px-8 py-1 text-selection_foreground @apply inline-block lg:px-4 px-8 py-1 text-brightwhite
} }
.doc_header { .doc_header {
@ -518,7 +518,7 @@
<!-- Tabs for local files --> <!-- Tabs for local files -->
<div class="min-w-screen flex grow flex-col"> <div class="min-w-screen flex grow flex-col">
<ul id="local-script-tabs" class=" flex text-xl font-medium text-center neutral-900 space-x-1 lg:space-x-8"> <ul id="local-script-tabs" class=" flex text-xl font-medium text-center bg-background space-x-1 lg:space-x-8">
<li class="pl-5"> <li class="pl-5">
<a title="Local Script 1 (F1)" id="tab-1" class="tab_panel">1</a> <a title="Local Script 1 (F1)" id="tab-1" class="tab_panel">1</a>
</li> </li>

View File

@ -59,8 +59,10 @@ export const installInterfaceLogic = (app: Editor) => {
tabs[i].addEventListener("click", (event) => { tabs[i].addEventListener("click", (event) => {
// Updating the CSS accordingly // Updating the CSS accordingly
tabs[i].classList.add("bg-foreground"); tabs[i].classList.add("bg-foreground");
tabs[i].classList.add("text-selection_foreground");
for (let j = 0; j < tabs.length; j++) { for (let j = 0; j < tabs.length; j++) {
if (j != i) tabs[j].classList.remove("bg-foreground"); if (j != i) tabs[j].classList.remove("bg-foreground");
if (j != i) tabs[j].classList.remove("text-selection_foreground");
} }
app.currentFile().candidate = app.view.state.doc.toString(); app.currentFile().candidate = app.view.state.doc.toString();