mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-21 10:16:03 +00:00
fix(tui): distinguish permission option states
This commit is contained in:
committed by
opencode-agent[bot]
parent
ad8e6b1fb6
commit
7a6a51cd8b
@@ -703,9 +703,11 @@ function Prompt<const T extends Record<string, string>>(props: {
|
||||
<box
|
||||
paddingLeft={1}
|
||||
paddingRight={1}
|
||||
backgroundColor={themeV2.background.action.primary(
|
||||
option === store.selected ? "focused" : "default",
|
||||
)}
|
||||
backgroundColor={
|
||||
option === store.selected
|
||||
? themeV2.background.action.primary("focused")
|
||||
: themeV2.background.action.secondary()
|
||||
}
|
||||
onMouseOver={() => setStore("selected", option)}
|
||||
onMouseUp={() => {
|
||||
setStore("selected", option)
|
||||
@@ -713,9 +715,11 @@ function Prompt<const T extends Record<string, string>>(props: {
|
||||
}}
|
||||
>
|
||||
<text
|
||||
fg={themeV2.text.action.primary(
|
||||
option === store.selected ? "focused" : "default",
|
||||
)}
|
||||
fg={
|
||||
option === store.selected
|
||||
? themeV2.text.action.primary("focused")
|
||||
: themeV2.text.action.secondary()
|
||||
}
|
||||
>
|
||||
{props.options[option]}
|
||||
</text>
|
||||
|
||||
Reference in New Issue
Block a user