Re-enable light/dark switch; frame palette preview images

This commit is contained in:
trilium-share-gruvbox
2026-09-08 11:58:37 +02:00
parent f72463a2f5
commit 3a100364aa
6 changed files with 27 additions and 3 deletions
+2 -3
View File
@@ -69,11 +69,10 @@
const openGraphDomain = subRoot.note.getLabelValue("shareOpenGraphDomain"); const openGraphDomain = subRoot.note.getLabelValue("shareOpenGraphDomain");
%> %>
<title><%= pageTitle %></title> <title><%= pageTitle %></title>
<style>#site-header .theme-selection{display:none}</style>
<% if (pageUrl) { %><link rel="canonical" href="<%= pageUrl %>"><% } %> <% if (pageUrl) { %><link rel="canonical" href="<%= pageUrl %>"><% } %>
<script> <script>
// Theme is fixed to dark light/dark switching is disabled. // Site theme toggle (light/dark); default is dark.
const theme = "dark"; const theme = localStorage.getItem("theme") || "dark";
document.documentElement.classList.add(`theme-${theme}`); document.documentElement.classList.add(`theme-${theme}`);
window.glob = { window.glob = {
+5
View File
@@ -1897,3 +1897,8 @@ html.theme-light .hljs-attr { color: #4f6b00; }
z-index: 1000; z-index: 1000;
} }
} }
/* ---------- Palette preview images: subtle frame so bars stay visible on any background ---------- */
#content figure.image img.palette-img {
border: 1px solid var(--background-highlight);
border-radius: 6px;
}
+5
View File
@@ -1897,3 +1897,8 @@ html.theme-light .hljs-attr { color: #427b58; }
z-index: 1000; z-index: 1000;
} }
} }
/* ---------- Palette preview images: subtle frame so bars stay visible on any background ---------- */
#content figure.image img.palette-img {
border: 1px solid var(--background-highlight);
border-radius: 6px;
}
+5
View File
@@ -1897,3 +1897,8 @@ html.theme-light .hljs-attr { color: #556753; }
z-index: 1000; z-index: 1000;
} }
} }
/* ---------- Palette preview images: subtle frame so bars stay visible on any background ---------- */
#content figure.image img.palette-img {
border: 1px solid var(--background-highlight);
border-radius: 6px;
}
+5
View File
@@ -1902,3 +1902,8 @@ html.theme-light .hljs-attr { color: #586e75; }
z-index: 1000; z-index: 1000;
} }
} }
/* ---------- Palette preview images: subtle frame so bars stay visible on any background ---------- */
#content figure.image img.palette-img {
border: 1px solid var(--background-highlight);
border-radius: 6px;
}
+5
View File
@@ -1902,3 +1902,8 @@ html.theme-light .hljs-attr { color: #a0a6c2; }
z-index: 1000; z-index: 1000;
} }
} }
/* ---------- Palette preview images: subtle frame so bars stay visible on any background ---------- */
#content figure.image img.palette-img {
border: 1px solid var(--background-highlight);
border-radius: 6px;
}