mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-19 17:01:37 +03:00
fix(tui): use the action disabled token for inactive key hints (#55452)
This commit is contained in:
committed by
GitHub
Unverified
parent
c0d41d2b26
commit
b474b84259
@@ -98,7 +98,7 @@ export function PromptFooter(props: {
|
||||
</Match>
|
||||
<Match when={props.showDetails && layout().shortcuts}>
|
||||
<text
|
||||
fg={interactive() ? props.context.theme.text.base : props.context.theme.text.formfield.disabled}
|
||||
fg={interactive() ? props.context.theme.text.base : props.context.theme.text.action.primary.disabled}
|
||||
attributes={interactive() ? 0 : TextAttributes.DIM}
|
||||
flexShrink={0}
|
||||
>
|
||||
@@ -109,7 +109,7 @@ export function PromptFooter(props: {
|
||||
</Switch>
|
||||
<Show when={props.showDetails && layout().shortcuts}>
|
||||
<text
|
||||
fg={interactive() ? props.context.theme.text.base : props.context.theme.text.formfield.disabled}
|
||||
fg={interactive() ? props.context.theme.text.base : props.context.theme.text.action.primary.disabled}
|
||||
attributes={interactive() ? 0 : TextAttributes.DIM}
|
||||
wrapMode="none"
|
||||
flexShrink={0}
|
||||
|
||||
@@ -809,7 +809,7 @@ export function DiffViewerContent(props: {
|
||||
{(shortcut) => (
|
||||
<text
|
||||
id="diff-help-shortcut"
|
||||
fg={props.muted ? theme.text.formfield.disabled : theme.text.base}
|
||||
fg={props.muted ? theme.text.action.primary.disabled : theme.text.base}
|
||||
attributes={props.muted ? TextAttributes.DIM : 0}
|
||||
selectable={false}
|
||||
flexShrink={0}
|
||||
@@ -1111,7 +1111,7 @@ export function DiffViewerContent(props: {
|
||||
/>
|
||||
<box height={1} flexShrink={0} flexDirection="row" paddingLeft={2} paddingRight={2}>
|
||||
<text
|
||||
fg={props.panel?.focused ? theme.background.action.primary.focused : theme.text.formfield.disabled}
|
||||
fg={props.panel?.focused ? theme.background.action.primary.focused : theme.text.action.primary.disabled}
|
||||
attributes={props.panel?.focused ? 0 : TextAttributes.DIM}
|
||||
flexGrow={1}
|
||||
minWidth={0}
|
||||
|
||||
Reference in New Issue
Block a user