mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 07:15:51 +01:00
client: Improve group for no theme
This commit is contained in:
@@ -10,15 +10,16 @@ interface ColorTheme {
|
||||
export function listSyntaxHighlightingThemes() {
|
||||
const path = "node_modules/@highlightjs/cdn-assets/styles";
|
||||
const systemThemes = readThemesFromFileSystem(path);
|
||||
const allThemes = [
|
||||
{
|
||||
val: "none",
|
||||
title: t("code_block.theme_none")
|
||||
},
|
||||
...systemThemes
|
||||
];
|
||||
|
||||
return groupThemesByLightOrDark(allThemes);
|
||||
return {
|
||||
"": [
|
||||
{
|
||||
val: "none",
|
||||
title: t("code_block.theme_none")
|
||||
}
|
||||
],
|
||||
...groupThemesByLightOrDark(systemThemes)
|
||||
}
|
||||
}
|
||||
|
||||
function readThemesFromFileSystem(path: string): ColorTheme[] {
|
||||
|
||||
Reference in New Issue
Block a user