mirror of
https://github.com/openai/codex.git
synced 2026-04-28 08:34:54 +00:00
32
codex-cli/src/components/vendor/ink-select/theme.js
vendored
Normal file
32
codex-cli/src/components/vendor/ink-select/theme.js
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
const theme = {
|
||||
styles: {
|
||||
container: () => ({
|
||||
flexDirection: "column",
|
||||
}),
|
||||
option: ({ isFocused }) => ({
|
||||
gap: 1,
|
||||
paddingLeft: isFocused ? 0 : 2,
|
||||
}),
|
||||
selectedIndicator: () => ({
|
||||
color: "green",
|
||||
}),
|
||||
focusIndicator: () => ({
|
||||
color: "blue",
|
||||
}),
|
||||
label({ isFocused, isSelected }) {
|
||||
let color;
|
||||
if (isSelected) {
|
||||
color = "green";
|
||||
}
|
||||
if (isFocused) {
|
||||
color = "blue";
|
||||
}
|
||||
return { color };
|
||||
},
|
||||
highlightedText: () => ({
|
||||
bold: true,
|
||||
}),
|
||||
},
|
||||
};
|
||||
export const styles = theme.styles;
|
||||
export default theme;
|
||||
Reference in New Issue
Block a user