fix: up highlight made legible for transparent bg, bring back mouse nav
This commit is contained in:
@@ -39,6 +39,19 @@ export function usePreferencesItems(): SettingItem[] {
|
||||
app.setTheme(THEME_LABELS[next].value);
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "transparentBackground",
|
||||
label: "Transparent Background",
|
||||
kind: "toggle",
|
||||
display: () =>
|
||||
settings().transparentBackground ? "On" : "Off",
|
||||
help: () =>
|
||||
`Let the terminal's own background show through (no app background fill).\nType: toggle\nDefault: false\nCurrent: ${settings().transparentBackground ? "On" : "Off"}\nSpace/Enter to toggle.`,
|
||||
toggle: () =>
|
||||
app.updateSettings({
|
||||
transparentBackground: !settings().transparentBackground,
|
||||
}),
|
||||
},
|
||||
{
|
||||
id: "fontSize",
|
||||
label: "Font Size",
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*
|
||||
* Renders entirely through `<PaneRow>` (parent | current | preview):
|
||||
* parent = previous depth's list (sections at depth 1, items at depth 2);
|
||||
* blank placeholder at depth 0 (1/7 slot kept).
|
||||
* blank placeholder at depth 0 (1/5 slot kept).
|
||||
* current = the current-depth list (or editor at depth 2); the only
|
||||
* focusable column.
|
||||
* preview = help/preview text for the hovered item in current.
|
||||
@@ -424,7 +424,12 @@ function Row(props: {
|
||||
: props.focused
|
||||
? theme.border
|
||||
: undefined;
|
||||
const fg = () => (props.focused && props.active ? theme.surface : theme.text);
|
||||
const fg = () =>
|
||||
props.focused && props.active
|
||||
? theme.surface
|
||||
: props.focused
|
||||
? theme.selectedListItemText ?? theme.text
|
||||
: theme.text;
|
||||
const ref = useScrollIntoView(() => props.focused);
|
||||
return (
|
||||
<box
|
||||
|
||||
Reference in New Issue
Block a user