Skip to content

Commit f62b68d

Browse files
refactor(theme): remove messageAssistant color token
1 parent 293bde9 commit f62b68d

4 files changed

Lines changed: 3 additions & 14 deletions

File tree

src/components/Messages/styles.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ export function getMessageColor(
77
): string | undefined {
88
switch (role) {
99
case ROLE.USER:
10-
return undefined;
1110
case ROLE.ASSISTANT:
12-
return theme.colors.messageAssistant;
11+
return undefined;
1312
case ROLE.SYSTEM:
1413
return theme.colors.messageSystem;
1514
default:

src/components/ThemeSettings.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,8 @@ export function ThemeSettings({
9494
{UI.HEADER_PREFIX} Preview
9595
</Text>
9696

97-
<Text>
98-
Assistant accent:{' '}
99-
<Text color={selectedTheme.colors.messageAssistant}>
100-
example reply
101-
</Text>
97+
<Text color={selectedTheme.colors.secondary}>
98+
Markdown and code styling follow the selected theme.
10299
</Text>
103100

104101
<Text>

src/constants/theme.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export const LIST: ThemeDefinition[] = [
1515
codeBorder: 'blue',
1616
command: 'blue',
1717
error: 'red',
18-
messageAssistant: 'blue',
1918
messageSystem: 'gray',
2019
modeAuto: 'magenta',
2120
modePlan: 'blue',
@@ -39,7 +38,6 @@ export const LIST: ThemeDefinition[] = [
3938
codeBorder: 'gray',
4039
command: 'cyan',
4140
error: 'red',
42-
messageAssistant: 'cyan',
4341
messageSystem: 'gray',
4442
modeAuto: 'magenta',
4543
modePlan: 'blue',
@@ -63,7 +61,6 @@ export const LIST: ThemeDefinition[] = [
6361
codeBorder: 'blue',
6462
command: 'cyan',
6563
error: 'red',
66-
messageAssistant: 'cyan',
6764
messageSystem: 'gray',
6865
modeAuto: 'magenta',
6966
modePlan: 'blue',
@@ -87,7 +84,6 @@ export const LIST: ThemeDefinition[] = [
8784
codeBorder: 'magenta',
8885
command: 'magenta',
8986
error: 'red',
90-
messageAssistant: 'magenta',
9187
messageSystem: 'gray',
9288
modeAuto: 'yellow',
9389
modePlan: 'magenta',
@@ -111,7 +107,6 @@ export const LIST: ThemeDefinition[] = [
111107
codeBorder: 'yellow',
112108
command: 'yellow',
113109
error: 'red',
114-
messageAssistant: 'yellow',
115110
messageSystem: 'gray',
116111
modeAuto: 'cyan',
117112
modePlan: 'blue',
@@ -135,7 +130,6 @@ export const LIST: ThemeDefinition[] = [
135130
codeBorder: 'yellow',
136131
command: 'yellow',
137132
error: 'red',
138-
messageAssistant: 'yellow',
139133
messageSystem: 'gray',
140134
modeAuto: 'cyan',
141135
modePlan: 'blue',

src/types/theme.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ export interface ThemeColors {
2323
codeBorder: ThemeColorName;
2424
command: ThemeColorName;
2525
error: ThemeColorName;
26-
messageAssistant: ThemeColorName;
2726
messageSystem: ThemeColorName;
2827
modeAuto: ThemeColorName;
2928
modePlan: ThemeColorName;

0 commit comments

Comments
 (0)