Skip to content

Commit 3ece0e3

Browse files
authored
Merge pull request #1476 from afarber/1461-yolo-color-change
feat(cli): use dim colors for YOLO/auto-accept mode borders
2 parents fb3a95e + 5d20848 commit 3ece0e3

File tree

18 files changed

+68
-2
lines changed

18 files changed

+68
-2
lines changed

packages/cli/src/ui/colors.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ export const Colors: ColorsTheme = {
3838
get AccentRed() {
3939
return themeManager.getActiveTheme().colors.AccentRed;
4040
},
41+
get AccentYellowDim() {
42+
return themeManager.getActiveTheme().colors.AccentYellowDim;
43+
},
44+
get AccentRedDim() {
45+
return themeManager.getActiveTheme().colors.AccentRedDim;
46+
},
4147
get DiffAdded() {
4248
return themeManager.getActiveTheme().colors.DiffAdded;
4349
},

packages/cli/src/ui/components/InputPrompt.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -714,10 +714,10 @@ export const InputPrompt: React.FC<InputPromptProps> = ({
714714
statusColor = theme.ui.symbol;
715715
statusText = t('Shell mode');
716716
} else if (showYoloStyling) {
717-
statusColor = theme.status.error;
717+
statusColor = theme.status.errorDim;
718718
statusText = t('YOLO mode');
719719
} else if (showAutoAcceptStyling) {
720-
statusColor = theme.status.warning;
720+
statusColor = theme.status.warningDim;
721721
statusText = t('Accepting edits');
722722
}
723723

packages/cli/src/ui/themes/ansi-light.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ const ansiLightColors: ColorsTheme = {
1818
AccentGreen: 'green',
1919
AccentYellow: 'orange',
2020
AccentRed: 'red',
21+
AccentYellowDim: 'orange',
22+
AccentRedDim: 'red',
2123
DiffAdded: '#E5F2E5',
2224
DiffRemoved: '#FFE5E5',
2325
Comment: 'gray',

packages/cli/src/ui/themes/ansi.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ const ansiColors: ColorsTheme = {
1818
AccentGreen: 'green',
1919
AccentYellow: 'yellow',
2020
AccentRed: 'red',
21+
AccentYellowDim: 'yellow',
22+
AccentRedDim: 'red',
2123
DiffAdded: '#003300',
2224
DiffRemoved: '#4D0000',
2325
Comment: 'gray',

packages/cli/src/ui/themes/atom-one-dark.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ const atomOneDarkColors: ColorsTheme = {
1717
AccentGreen: '#98c379',
1818
AccentYellow: '#e6c07b',
1919
AccentRed: '#e06c75',
20+
AccentYellowDim: '#8B7530',
21+
AccentRedDim: '#8B3A4A',
2022
DiffAdded: '#39544E',
2123
DiffRemoved: '#562B2F',
2224
Comment: '#5c6370',

packages/cli/src/ui/themes/ayu-light.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ const ayuLightColors: ColorsTheme = {
1717
AccentGreen: '#86b300',
1818
AccentYellow: '#f2ae49',
1919
AccentRed: '#f07171',
20+
AccentYellowDim: '#8B7000',
21+
AccentRedDim: '#993333',
2022
DiffAdded: '#C6EAD8',
2123
DiffRemoved: '#FFCCCC',
2224
Comment: '#ABADB1',

packages/cli/src/ui/themes/ayu.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ const ayuDarkColors: ColorsTheme = {
1717
AccentGreen: '#AAD94C',
1818
AccentYellow: '#FFB454',
1919
AccentRed: '#F26D78',
20+
AccentYellowDim: '#8B7530',
21+
AccentRedDim: '#8B3A4A',
2022
DiffAdded: '#293022',
2123
DiffRemoved: '#3D1215',
2224
Comment: '#646A71',

packages/cli/src/ui/themes/dracula.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ const draculaColors: ColorsTheme = {
1717
AccentGreen: '#50fa7b',
1818
AccentYellow: '#fff783',
1919
AccentRed: '#ff5555',
20+
AccentYellowDim: '#8B7530',
21+
AccentRedDim: '#8B3A4A',
2022
DiffAdded: '#11431d',
2123
DiffRemoved: '#6e1818',
2224
Comment: '#6272a4',

packages/cli/src/ui/themes/github-dark.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ const githubDarkColors: ColorsTheme = {
1717
AccentGreen: '#85E89D',
1818
AccentYellow: '#FFAB70',
1919
AccentRed: '#F97583',
20+
AccentYellowDim: '#8B7530',
21+
AccentRedDim: '#8B3A4A',
2022
DiffAdded: '#3C4636',
2123
DiffRemoved: '#502125',
2224
Comment: '#6A737D',

packages/cli/src/ui/themes/github-light.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ const githubLightColors: ColorsTheme = {
1717
AccentGreen: '#008080',
1818
AccentYellow: '#990073',
1919
AccentRed: '#d14',
20+
AccentYellowDim: '#8B7000',
21+
AccentRedDim: '#993333',
2022
DiffAdded: '#C6EAD8',
2123
DiffRemoved: '#FFCCCC',
2224
Comment: '#998',

0 commit comments

Comments
 (0)