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(collections/board): color cards for the legacy dark theme
Elian Dorana827c7ba3132
diff --git a/apps/client/src/stylesheets/theme-next-dark.css b/apps/client/src/stylesheets/theme-next-dark.cssindex 59eb201fda..b00d76fc6b 100644--- a/apps/client/src/stylesheets/theme-next-dark.css+++ b/apps/client/src/stylesheets/theme-next-dark.css@@ -403,39 +403,6 @@--space-usage-donut-hover-saturation: 90%;--space-usage-donut-hover-lightness: 80%;- --board-limit-exceeded-background: #e57373;- --board-limit-exceeded-outline: #e5737380;- --board-column-background: #3b3b3b;- --board-column-background-saturation: 14%;- --board-column-background-lightness: 23%;-- --board-item-background-saturation: 21%;- --board-item-background-lightness: 32%;-- --board-item-hover-background-saturation: 25%;- --board-item-hover-background-lightness: 35%;-- --board-drop-hint-background-saturation: 20%;- --board-drop-hint-background-lightness: 45%;- --board-drop-hint-color: #ffffffc9;-- --board-edit-backdrop: rgba(0, 0, 0, 0.3);-- --board-drop-placeholder-background: rgba(255, 255, 255, 0.1);- --board-column-drop-placeholder-background: rgba(255, 255, 255, 0.06);-- --board-text-saturation: 25%;- --board-text-lightness: 80%;- --board-muted-text-saturation: 18%;- --board-muted-text-lightness: 73%;- --board-column-header-text-saturation: 67%;- --board-column-header-text-lightness: 81%;- --board-column-header-muted-text-saturation: 18%;- --board-column-header-muted-text-lightness: 73%;-- --board-focus-outline-saturation: 60%;- --board-focus-outline-lightness: 70%;---space-usage-donut-selected-saturation: 90%;--space-usage-donut-selected-lightness: 80%;}diff --git a/apps/client/src/stylesheets/theme-next-light.css b/apps/client/src/stylesheets/theme-next-light.cssindex 73b0678fe2..cc5e4af3ab 100644--- a/apps/client/src/stylesheets/theme-next-light.css+++ b/apps/client/src/stylesheets/theme-next-light.css@@ -402,34 +402,6 @@--space-usage-donut-hover-saturation: 57%;--space-usage-donut-hover-lightness: 68%;- --board-limit-exceeded-background: #c62828;- --board-limit-exceeded-outline: #c6282880;- --board-column-background: #e7e7e7;- --board-column-background-saturation: 26%;- --board-column-background-lightness: 86%;-- --board-item-background-saturation: 100%;- --board-item-background-lightness: 96%;-- --board-item-hover-background-saturation: 100%;- --board-item-hover-background-lightness: 98.5%;-- --board-drop-hint-background-saturation: 50%;- --board-drop-hint-background-lightness: 75%;- --board-drop-hint-color: #000000bf;-- --board-text-saturation: 50%;- --board-text-lightness: 22%;- --board-muted-text-saturation: 20%;- --board-muted-text-lightness: 40%;- --board-column-header-text-saturation: 40%;- --board-column-header-text-lightness: 28%;- --board-column-header-muted-text-saturation: 20%;- --board-column-header-muted-text-lightness: 40%;-- --board-focus-outline-saturation: 50%;- --board-focus-outline-lightness: 34%;---space-usage-donut-selected-saturation: 35%;--space-usage-donut-selected-lightness: 45%;diff --git a/apps/client/src/widgets/collections/board/index.css b/apps/client/src/widgets/collections/board/index.cssindex 1bdd5c3026..fc1c2d2a1e 100644--- a/apps/client/src/widgets/collections/board/index.css+++ b/apps/client/src/widgets/collections/board/index.css@@ -55,9 +55,9 @@--board-selection-wedge-color: var(--main-border-color);/* The overlay on a carried card while it would drop at one end of a column, painted in the huethe card itself is. */- --board-drop-hint-background-saturation: 35%;- --board-drop-hint-background-lightness: 25%;- --board-drop-hint-color: #ffffff;+ --board-drop-hint-background-saturation: 50%;+ --board-drop-hint-background-lightness: 75%;+ --board-drop-hint-color: #000000bf;/* Dims the board while a card is being named. Kept light: it draws the eye to the field ratherthan hiding what is behind it. */--board-edit-backdrop: rgba(0, 0, 0, 0.15);@@ -68,17 +68,43 @@--board-column-header-muted-text-color: var(--muted-text-color);/* Saturation and lightness of the heading colors on a column with a hue. Only the hue comes fromthe note's color, and the theme sets the lightness, so a colored board is as light as a plain one. */- --board-column-header-text-saturation: 30%;- --board-column-header-text-lightness: 8%;+ --board-column-header-text-saturation: 40%;+ --board-column-header-text-lightness: 28%;--board-column-header-muted-text-saturation: 20%;--board-column-header-muted-text-lightness: 40%;- --board-focus-outline-saturation: 55%;- --board-focus-outline-lightness: 45%;+ --board-focus-outline-saturation: 50%;+ --board-focus-outline-lightness: 34%;/* Follows the theme of its own accord, so neither theme has to name it again. */--board-focus-outline-plain-color: var(--link-color);}+/* The same defaults for a dark theme. On `:root` so that a theme's own `:root` rule overrides them. */+:where(:root:has(> body.dark-theme)) {+ --board-limit-exceeded-background: #e57373;+ --board-limit-exceeded-outline: #e5737380;+ --board-column-background: #3b3b3b;+ --board-column-background-saturation: 14%;+ --board-column-background-lightness: 23%;++ --board-drop-hint-background-saturation: 20%;+ --board-drop-hint-background-lightness: 45%;+ --board-drop-hint-color: #ffffffc9;++ --board-edit-backdrop: rgba(0, 0, 0, 0.3);++ --board-drop-placeholder-background: rgba(255, 255, 255, 0.1);+ --board-column-drop-placeholder-background: rgba(255, 255, 255, 0.06);++ --board-column-header-text-saturation: 67%;+ --board-column-header-text-lightness: 81%;+ --board-column-header-muted-text-saturation: 18%;+ --board-column-header-muted-text-lightness: 73%;++ --board-focus-outline-saturation: 60%;+ --board-focus-outline-lightness: 70%;+}+.board-view {position: relative;height: 100%;diff --git a/apps/client/src/widgets/note_card.css b/apps/client/src/widgets/note_card.cssindex 8f81fa2531..8e3c12d323 100644--- a/apps/client/src/widgets/note_card.css+++ b/apps/client/src/widgets/note_card.css@@ -28,12 +28,26 @@--board-muted-text-color: var(--muted-text-color);/* Saturation and lightness of the text colors of a card with a hue. Only the hue comes from thenote's color, and the theme sets the lightness, so a colored card is as readable as a plain one. */- --board-text-saturation: 30%;- --board-text-lightness: 8%;+ --board-text-saturation: 50%;+ --board-text-lightness: 22%;--board-muted-text-saturation: 20%;--board-muted-text-lightness: 40%;}+/* The same defaults for a dark theme. On `:root` so that a theme's own `:root` rule overrides them. */+:where(:root:has(> body.dark-theme)) {+ --board-item-background-saturation: 21%;+ --board-item-background-lightness: 32%;++ --board-item-hover-background-saturation: 25%;+ --board-item-hover-background-lightness: 35%;++ --board-text-saturation: 25%;+ --board-text-lightness: 80%;+ --board-muted-text-saturation: 18%;+ --board-muted-text-lightness: 73%;+}+:where(.tn-note-card) {--board-item-hue: 0;--board-item-saturation: 0%;