optional indentation guides in the compose/YAML editor

This commit is contained in:
jarek committed 2026-08-16 08:15:30 +02:00
1 parent cda446a232
commit 0a08c94287
10 files changed
+109 -15

No files matched your search

+8 -4
View File
@@ -16,7 +16,8 @@ const DEFAULT_THEME_SETTINGS = {
editorFont: 'system-mono',
animateIcons: true,
coloredActionButtons: false,
actionIconSize: 'normal'
actionIconSize: 'normal',
editorIndentGuides: false
};
export const GET: RequestHandler = async () => {
@@ -31,7 +32,8 @@ export const GET: RequestHandler = async () => {
editorFont,
animateIcons,
coloredActionButtons,
actionIconSize
actionIconSize,
editorIndentGuides
] = await Promise.all([
getSetting('theme_light'),
getSetting('theme_dark'),
@@ -42,7 +44,8 @@ export const GET: RequestHandler = async () => {
getSetting('theme_editor_font'),
getSetting('animate_icons'),
getSetting('colored_action_buttons'),
getSetting('action_icon_size')
getSetting('action_icon_size'),
getSetting('editor_indent_guides')
]);
return json({
@@ -55,7 +58,8 @@ export const GET: RequestHandler = async () => {
editorFont: editorFont ?? DEFAULT_THEME_SETTINGS.editorFont,
animateIcons: animateIcons ?? DEFAULT_THEME_SETTINGS.animateIcons,
coloredActionButtons: coloredActionButtons ?? DEFAULT_THEME_SETTINGS.coloredActionButtons,
actionIconSize: actionIconSize ?? DEFAULT_THEME_SETTINGS.actionIconSize
actionIconSize: actionIconSize ?? DEFAULT_THEME_SETTINGS.actionIconSize,
editorIndentGuides: editorIndentGuides ?? DEFAULT_THEME_SETTINGS.editorIndentGuides
});
} catch (error) {
console.error('Failed to get theme settings:', error);