feat(ui): add customizable status line

Allow users to configure a custom shell command to display in the UI footer status line.
This commit is contained in:
wenshao 2026-04-06 07:10:50 +08:00
parent 6785a8d908
commit 6784f0c02c
10 changed files with 116 additions and 13 deletions

View file

@ -429,6 +429,16 @@ const SETTINGS_SCHEMA = {
description: 'The color theme for the UI.',
showInDialog: true,
},
statusLine: {
type: 'string',
label: 'Status Line',
category: 'UI',
requiresRestart: false,
default: undefined as string | undefined,
description:
'Shell command to execute periodically to display custom information in the status line (e.g., "curl -s api/rate-limit | jq .remaining").',
showInDialog: true,
},
customThemes: {
type: 'object',
label: 'Custom Themes',