Skip to content

Build your personal knowledge base with Trilium Notes

style/quick edit dialog: add support for the dark color scheme

Adorian Doran8c165c040153
diff --git a/apps/client/src/stylesheets/theme-next-dark.css b/apps/client/src/stylesheets/theme-next-dark.css
index c9ac615086..d3bf6bd5a3 100644
--- a/apps/client/src/stylesheets/theme-next-dark.css
+++ b/apps/client/src/stylesheets/theme-next-dark.css
@@ -294,4 +294,10 @@ body ::-webkit-calendar-picker-indicator {
body .todo-list input[type="checkbox"]:not(:checked):before {
border-color: var(--muted-text-color) !important;
+}
+
+.tinted-quick-edit-dialog {
+ --modal-background-color: hsl(var(--custom-color-hue), 30.3%, 17.5%);
+ --modal-border-color: hsl(var(--custom-color-hue), 33%, 41%);
+ --promoted-attribute-card-background-color: hsl(var(--custom-color-hue), 23.9%, 32%);
}
\ No newline at end of file
diff --git a/apps/client/src/stylesheets/theme-next-light.css b/apps/client/src/stylesheets/theme-next-light.css
index 631d443b13..21c5279933 100644
--- a/apps/client/src/stylesheets/theme-next-light.css
+++ b/apps/client/src/stylesheets/theme-next-light.css
@@ -270,4 +270,10 @@
* The --custom-color-hue variable contains the hue of the user-selected note color.
* This value is unset for gray tones. */
--custom-bg-color: hsl(var(--custom-color-hue), 37%, 89%, 1);
+}
+
+.tinted-quick-edit-dialog {
+ --modal-background-color: hsl(var(--custom-color-hue), 56%, 96%);
+ --modal-border-color: hsl(var(--custom-color-hue), 33%, 41%);
+ --promoted-attribute-card-background-color: hsl(var(--custom-color-hue), 40%, 88%);
}
\ No newline at end of file
diff --git a/apps/client/src/stylesheets/theme-next/dialogs.css b/apps/client/src/stylesheets/theme-next/dialogs.css
index e7a5405e8d..ed617991c3 100644
--- a/apps/client/src/stylesheets/theme-next/dialogs.css
+++ b/apps/client/src/stylesheets/theme-next/dialogs.css
@@ -421,12 +421,4 @@ div.tn-tool-dialog {
.note-type-chooser-dialog div.note-type-dropdown .dropdown-item span.bx {
margin-inline-end: .25em;
-}
-
-/* QUICK EDIT DIALOG */
-
-.tinted-quick-edit-dialog {
- --modal-background-color: hsl(var(--custom-color-hue), 56%, 96%);
- --modal-border-color: hsl(var(--custom-color-hue), 33%, 41%);
- --promoted-attribute-card-background-color: hsl(var(--custom-color-hue), 40%, 88%);
}
\ No newline at end of file