Match the terminal's colours: auto from its background, and a terminal theme
auto now reads the background through OpenTUI's palette detector (OSC 11) and falls back to dark. The new terminal theme builds the palette from the detected background, foreground and ANSI colours, and shows in settings.
This commit is contained in:
1 parent
c1a7376aa8
commit
f18fc9c68d
7 files changed
+143
-12
No files matched your search
@@ -21,7 +21,7 @@ const LABELS: { readonly [K in keyof T3tuiConfig]: { readonly label: string; rea
|
||||
values: { off: "off", sound: "bell", notifications: "desktop notifications", "notifications-and-sound": "bell and desktop notifications" },
|
||||
},
|
||||
inAppNotificationsEnabled: { label: "In-app alerts", help: "a line at the bottom for other threads", values: { true: "on", false: "off" } },
|
||||
theme: { label: "Colours", help: "from the next start", values: { auto: "match the terminal", dark: "dark", light: "light" } },
|
||||
theme: { label: "Colours", help: "from the next start", values: { auto: "dark or light, as the terminal is", dark: "dark", light: "light", terminal: "the terminal's own colours" } },
|
||||
};
|
||||
|
||||
/** t3tui's own settings, in display order, each cycled with enter. */
|
||||
|
||||
Reference in new issue
Block a user