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
client/collections/board: update colors
Adorian Doran8a14eefdef3c
diff --git a/apps/client/src/stylesheets/theme-next-dark.css b/apps/client/src/stylesheets/theme-next-dark.cssindex ac9668d438..dc90f88cb4 100644--- a/apps/client/src/stylesheets/theme-next-dark.css+++ b/apps/client/src/stylesheets/theme-next-dark.css@@ -397,6 +397,7 @@--space-usage-donut-hover-saturation: 90%;--space-usage-donut-hover-lightness: 80%;+ --board-column-background: #3b3b3b;--board-column-background-saturation: 14%;--board-column-background-lightness: 23%;diff --git a/apps/client/src/stylesheets/theme-next-light.css b/apps/client/src/stylesheets/theme-next-light.cssindex cee10b1e04..33a9f3b518 100644--- a/apps/client/src/stylesheets/theme-next-light.css+++ b/apps/client/src/stylesheets/theme-next-light.css@@ -396,6 +396,7 @@--space-usage-donut-hover-saturation: 57%;--space-usage-donut-hover-lightness: 68%;+ --board-column-background: #e7e7e7;--board-column-background-saturation: 26%;--board-column-background-lightness: 86%;diff --git a/apps/client/src/widgets/collections/board/index.css b/apps/client/src/widgets/collections/board/index.cssindex 7d0bf63e01..da5bc2668f 100644--- a/apps/client/src/widgets/collections/board/index.css+++ b/apps/client/src/widgets/collections/board/index.css@@ -1,5 +1,6 @@/* Defaults for a theme that sets none of its own; the light values, the app's own default look. */:where(:root) {+ --board-column-background: #e7e7e7;--board-column-background-saturation: 26%;--board-column-background-lightness: 86%;@@ -11,6 +12,8 @@--board-focus-outline-saturation: 55%;--board-focus-outline-lightness: 45%;+ /* Follows the theme of its own accord, so neither theme has to name it again. */+ --board-focus-outline-plain-color: var(--link-color);}.board-view {@@ -41,19 +44,13 @@ body.mobile .board-view-container {}.board-view-container .board-column {- /* No hue of its own: the same lightness, drained of colour. */- --board-column-hue: 0;- --board-column-saturation: 0%;-width: 250px;flex-shrink: 0;border: 2px solid transparent;border-radius: 8px;- background-color: hsl(- var(--board-column-hue),- var(--board-column-saturation),- var(--board-column-background-lightness)- );+ /* A column with no colour of its own is painted rather than composed: the tinted shades come+ from one lightness, which does not answer for a plain one as well. */+ background-color: var(--board-column-background);transition: border-color 0.2s ease;overflow-y: auto;max-height: 100%;@@ -72,8 +69,11 @@ body.mobile .board-view-container .board-add-column {}.board-view-container .board-column.with-hue {- --board-column-hue: var(--board-column-custom-hue);- --board-column-saturation: var(--board-column-background-saturation);+ background-color: hsl(+ var(--board-column-custom-hue),+ var(--board-column-background-saturation),+ var(--board-column-background-lightness)+ );}.board-view-container .board-column.drag-over {@@ -281,8 +281,9 @@ body.mobile .board-view-container .board-add-column {}.board-view-container :focus {- /* Falls back where nothing around carries a hue, which is every board until one is coloured. */- outline: 3px solid var(--board-focus-outline-color, var(--input-focus-outline-color));+ /* The plain colour stands where nothing around carries a hue, which is every board until one+ is coloured. */+ outline: 3px solid var(--board-focus-outline-color, var(--board-focus-outline-plain-color));outline-offset: 0;}