fix(tui): distinguish permission option states
This commit is contained in:
parent
ad8e6b1fb6
commit
7a6a51cd8b
1 changed files with 10 additions and 6 deletions
|
|
@ -703,9 +703,11 @@ function Prompt<const T extends Record<string, string>>(props: {
|
||||||
<box
|
<box
|
||||||
paddingLeft={1}
|
paddingLeft={1}
|
||||||
paddingRight={1}
|
paddingRight={1}
|
||||||
backgroundColor={themeV2.background.action.primary(
|
backgroundColor={
|
||||||
option === store.selected ? "focused" : "default",
|
option === store.selected
|
||||||
)}
|
? themeV2.background.action.primary("focused")
|
||||||
|
: themeV2.background.action.secondary()
|
||||||
|
}
|
||||||
onMouseOver={() => setStore("selected", option)}
|
onMouseOver={() => setStore("selected", option)}
|
||||||
onMouseUp={() => {
|
onMouseUp={() => {
|
||||||
setStore("selected", option)
|
setStore("selected", option)
|
||||||
|
|
@ -713,9 +715,11 @@ function Prompt<const T extends Record<string, string>>(props: {
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<text
|
<text
|
||||||
fg={themeV2.text.action.primary(
|
fg={
|
||||||
option === store.selected ? "focused" : "default",
|
option === store.selected
|
||||||
)}
|
? themeV2.text.action.primary("focused")
|
||||||
|
: themeV2.text.action.secondary()
|
||||||
|
}
|
||||||
>
|
>
|
||||||
{props.options[option]}
|
{props.options[option]}
|
||||||
</text>
|
</text>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue