Skip to content

Build your personal knowledge base with Trilium Notes

style(next): improve the color contrast for switches

Adorian Doranb56b42bea05f
diff --git a/src/public/stylesheets/theme-next/forms.css b/src/public/stylesheets/theme-next/forms.css
index 9e3c7e2b5c..92d7f84d77 100644
--- a/src/public/stylesheets/theme-next/forms.css
+++ b/src/public/stylesheets/theme-next/forms.css
@@ -451,6 +451,14 @@ optgroup {
--icon-button-size: 28px;
}
+div.switch-widget {
+ --switch-off-track-background: var(--cmd-button-background-color);
+ --switch-on-track-background: var(--cmd-button-text-color);
+
+ --switch-off-thumb-background: var(--cmd-button-text-color);
+ --switch-on-thumb-background: var(--main-background-color);
+}
+
/* Links */
body a.tn-link,