Files
codex/codex-cli/src/components/vendor/ink-select/theme.js
Ilan Bigio 59a180ddec Initial commit
Signed-off-by: Ilan Bigio <ilan@openai.com>
2025-04-16 12:56:08 -04:00

33 lines
626 B
JavaScript

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;