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/adaptive colors: remove some references from documentation
Adorian Doran675ec9817573
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Theme development/Reference.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Theme development/Reference.htmlindex 576765c112..99475a2c50 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Theme development/Reference.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Theme development/Reference.html@@ -227,9 +227,6 @@ body.electron:not(.native-titlebar) {</tbody></table></figure>-<p>With these values, colored text stays at a contrast of at least 4.5:1- against the page, and so does the theme's own text on every background;- borders stay at 3:1.</p><p>The limits apply while a note is displayed, so a change to them affectsevery note at once. The note itself keeps each color as it was picked,in its <code>color</code>, <code>background-color</code> or <code>border-color</code> style,diff --git a/docs/User Guide/User Guide/Theme development/Reference.md b/docs/User Guide/User Guide/Theme development/Reference.mdindex fd3cf758f7..edd21208d8 100644--- a/docs/User Guide/User Guide/Theme development/Reference.md+++ b/docs/User Guide/User Guide/Theme development/Reference.md@@ -225,6 +225,4 @@ The defaults are:| `table-border` | `max-lightness: 60`, `max-chroma: 150` | `min-lightness: 47`, `max-chroma: 150` || `table-background` | `min-lightness: 90`, `max-chroma: 20` | `max-lightness: 30`, `max-chroma: 30` |-With these values, colored text stays at a contrast of at least 4.5:1 against the page, and so does the theme's own text on every background; borders stay at 3:1.-The limits apply while a note is displayed, so a change to them affects every note at once. The note itself keeps each color as it was picked, in its `color`, `background-color` or `border-color` style, and a second time in a `--tn-color`, `--tn-background` or `--tn-border-color` variable, which the adaptation reads.\ No newline at end of filediff --git a/packages/share-theme/src/styles/adaptive-colors.css b/packages/share-theme/src/styles/adaptive-colors.cssindex e21cb42566..a520902588 100644--- a/packages/share-theme/src/styles/adaptive-colors.css+++ b/packages/share-theme/src/styles/adaptive-colors.css@@ -22,7 +22,7 @@/* Adaptive table border color limits */--adaptive-table-border-light-max-lightness: 60;--adaptive-table-border-light-max-chroma: 150;- /* Higher than in the app, for 3:1 against the lighter dark page. */+ /* Higher than in the app, for the share theme's lighter dark page. */--adaptive-table-border-dark-min-lightness: 52;--adaptive-table-border-dark-max-chroma: 150;