Skip to content

Build your personal knowledge base with Trilium Notes

client/note tree item tinting: tweak colors for the light theme

Adorian Doran1aad2d8c09a4
diff --git a/apps/client/src/services/css_class_manager.ts b/apps/client/src/services/css_class_manager.ts
index ad4ac1a415..c716ec0019 100644
--- a/apps/client/src/services/css_class_manager.ts
+++ b/apps/client/src/services/css_class_manager.ts
@@ -72,13 +72,13 @@ function adjustColorLightness(color: ColorInstance, lightThemeMaxLightness: numb
let darkThemeBackgroundColor = "unset";
let lightThemeBackgroundColor = "unset";
-
+
const hslColor = color.hsl();
const hue = hslColor.hue();
if (color.saturationl() > 0) {
darkThemeBackgroundColor = Color({h: hue, s: 20, l: 33, alpha: .4}).hexa();
- lightThemeBackgroundColor = Color({h: hue, s: 100, l: 25, alpha: .1}).hexa();
+ lightThemeBackgroundColor = Color({h: hue, s: 37, l: 89, alpha: 1}).hexa();
}
return {lightThemeColor, lightThemeBackgroundColor, darkThemeColor, darkThemeBackgroundColor};
diff --git a/apps/client/src/stylesheets/theme-next/base.css b/apps/client/src/stylesheets/theme-next/base.css
index 9b9ffc8878..a33da2bc5c 100644
--- a/apps/client/src/stylesheets/theme-next/base.css
+++ b/apps/client/src/stylesheets/theme-next/base.css
@@ -95,7 +95,7 @@
--tree-item-light-theme-max-color-lightness: 60;
/* The minimum perceptual lightness for the custom color in the dark theme (%): */
- --tree-item-dark-theme-min-color-lightness: 60;
+ --tree-item-dark-theme-min-color-lightness: 65;
}
body.backdrop-effects-disabled {