Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(note-badges): show colored badges under the legacy theme
Elian Dorand4680a35dade
diff --git a/apps/client/src/stylesheets/theme-next-dark.css b/apps/client/src/stylesheets/theme-next-dark.cssindex 9dff38dd85..59eb201fda 100644--- a/apps/client/src/stylesheets/theme-next-dark.css+++ b/apps/client/src/stylesheets/theme-next-dark.css@@ -229,18 +229,6 @@--badge-background-color: #ffffff1a;--badge-text-color: var(--muted-text-color);- --badge-temporaraily-editable-background-color: #297331;- --badge-read-only-background-color: #af4340;- --badge-office-preview-background-color: #3f5470;- --badge-share-background-color: #4d4d4d;- --badge-snippet-background-color: #4d4d4d;- --badge-template-background-color: #7d6f52;- --badge-template-text-color: white;- --badge-clipped-note-background-color: #295773;- --badge-doc-url-background-color: #1e5c42;- --badge-execute-background-color: #604180;- --badge-active-content-background-color: rgb(12, 68, 70);---note-icon-background-color: #444444;--note-icon-color: #d4d4d4;--note-icon-hover-background-color: #555555;diff --git a/apps/client/src/stylesheets/theme-next-light.css b/apps/client/src/stylesheets/theme-next-light.cssindex cea6678381..73b0678fe2 100644--- a/apps/client/src/stylesheets/theme-next-light.css+++ b/apps/client/src/stylesheets/theme-next-light.css@@ -221,18 +221,6 @@--badge-background-color: #00000011;--badge-text-color: var(--muted-text-color);- --badge-temporaraily-editable-background-color: #35a64c;- --badge-read-only-background-color: #c8302c;- --badge-office-preview-background-color: #566d87;- --badge-share-background-color: #6b6b6b;- --badge-snippet-background-color: #6b6b6b;- --badge-template-background-color: #ece0c0;- --badge-template-text-color: #5a4a26;- --badge-clipped-note-background-color: #2284c0;- --badge-doc-url-background-color: #2e7d5e;- --badge-execute-background-color: #7b47af;- --badge-active-content-background-color: rgb(27, 164, 168);---note-icon-background-color: #4f4f4f;--note-icon-color: white;--note-icon-hover-background-color: #737373;diff --git a/apps/client/src/widgets/layout/NoteBadges.css b/apps/client/src/widgets/layout/NoteBadges.cssindex 5e5e07c61c..a653da1ecf 100644--- a/apps/client/src/widgets/layout/NoteBadges.css+++ b/apps/client/src/widgets/layout/NoteBadges.css@@ -15,6 +15,34 @@overflow: hidden;--badge-radius: 12px;+ body.light-theme & {+ --badge-temporaraily-editable-background-color: #35a64c;+ --badge-read-only-background-color: #c8302c;+ --badge-office-preview-background-color: #566d87;+ --badge-share-background-color: #6b6b6b;+ --badge-snippet-background-color: #6b6b6b;+ --badge-template-background-color: #ece0c0;+ --badge-template-text-color: #5a4a26;+ --badge-clipped-note-background-color: #2284c0;+ --badge-doc-url-background-color: #2e7d5e;+ --badge-execute-background-color: #7b47af;+ --badge-active-content-background-color: rgb(27, 164, 168);+ }++ body.dark-theme & {+ --badge-temporaraily-editable-background-color: #297331;+ --badge-read-only-background-color: #af4340;+ --badge-office-preview-background-color: #3f5470;+ --badge-share-background-color: #4d4d4d;+ --badge-snippet-background-color: #4d4d4d;+ --badge-template-background-color: #7d6f52;+ --badge-template-text-color: white;+ --badge-clipped-note-background-color: #295773;+ --badge-doc-url-background-color: #1e5c42;+ --badge-execute-background-color: #604180;+ --badge-active-content-background-color: rgb(12, 68, 70);+ }+.ext-badge {&.temporarily-editable-badge {--color: var(--badge-temporaraily-editable-background-color)}&.read-only-badge {--color: var(--badge-read-only-background-color);}