Skip to content

Build your personal knowledge base with Trilium Notes

style(next)/scrollbars: restore the support for custom background color

Adorian Doran10ea58a3686a
diff --git a/src/public/stylesheets/theme-next-dark.css b/src/public/stylesheets/theme-next-dark.css
index 40740acd8e..2dbeb525c4 100644
--- a/src/public/stylesheets/theme-next-dark.css
+++ b/src/public/stylesheets/theme-next-dark.css
@@ -192,8 +192,8 @@
--scrollbar-thumb-color: #fdfdfd5c;
--scrollbar-thumb-hover-color: #ffffff7d;
+ --scrollbar-background-color: transparent;
--scrollbar-border-color: unset; /* Deprecated */
- --scrollbar-background-color: unset; /* Deprecated */
--link-color: lightskyblue;
diff --git a/src/public/stylesheets/theme-next-light.css b/src/public/stylesheets/theme-next-light.css
index 3bfe849ee1..46c116e391 100644
--- a/src/public/stylesheets/theme-next-light.css
+++ b/src/public/stylesheets/theme-next-light.css
@@ -191,8 +191,8 @@
--scrollbar-thumb-color: #0000005c;
--scrollbar-thumb-hover-color: #00000066;
+ --scrollbar-background-color: transparent;
--scrollbar-border-color: unset; /* Deprecated */
- --scrollbar-background-color: unset; /* Deprecated */
--link-color: blue;
diff --git a/src/public/stylesheets/theme-next/forms.css b/src/public/stylesheets/theme-next/forms.css
index 09dc1408c5..ce6663380d 100644
--- a/src/public/stylesheets/theme-next/forms.css
+++ b/src/public/stylesheets/theme-next/forms.css
@@ -674,6 +674,10 @@ input[type="range"] {
/* Scrollbar's body */
+::-webkit-scrollbar-track {
+ background-color: var(--scrollbar-background-color);
+}
+
::-webkit-scrollbar:vertical {
width: var(--scrollbar-thickness) !important;
}