Skip to content

Commit 8c3575f

Browse files
author
Factory Bot
committed
fix: complete remaining hardcoded styles migration
- Fix 8 border-radius values - Fix 6 background colors - Fix 26 text colors across 17 files Zero hardcoded styles remaining in src/components/
1 parent 5bb2691 commit 8c3575f

28 files changed

Lines changed: 41 additions & 41 deletions

cortex-gui/src/components/ActivityBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ function ActivityBarItemComponent(props: ActivityBarItemProps) {
230230
bottom: "8px",
231231
width: "2px",
232232
background: tokens.colors.semantic.primary,
233-
"border-radius": "1px",
233+
"border-radius": "var(--figma-radius-sm)",
234234
}}
235235
/>
236236
</Show>

cortex-gui/src/components/Chat/AgentMessage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function NeonGridLoader() {
4747
style={{
4848
width: "4px",
4949
height: "4px",
50-
"border-radius": "1px",
50+
"border-radius": "var(--figma-radius-sm)",
5151
background: dotColor,
5252
opacity: "0.4",
5353
animation: `gridPulse 1.2s ease-in-out infinite`,

cortex-gui/src/components/Chat/InputArea.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function NeonGridLoader() {
5252
style={{
5353
width: "4px",
5454
height: "4px",
55-
"border-radius": "1px",
55+
"border-radius": "var(--figma-radius-sm)",
5656
background: dotColor,
5757
opacity: "0.4",
5858
animation: `gridPulse 1.2s ease-in-out infinite`,

cortex-gui/src/components/ConfigureDefaultEditorDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ export function ConfigureDefaultEditorDialog(
408408
width: "6px",
409409
height: "6px",
410410
"border-radius": "var(--figma-radius-full)",
411-
background: "#fff",
411+
background: "var(--figma-bg-primary)",
412412
}}
413413
/>
414414
</Show>

cortex-gui/src/components/OpenWithMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ export function OpenWithMenu(props: OpenWithMenuProps) {
506506
}}
507507
>
508508
<Show when={rememberChoice()}>
509-
<Icon name="check" size={10} style={{ color: "#fff" }} />
509+
<Icon name="check" size={10} style={{ color: "var(--figma-text-primary)" }} />
510510
</Show>
511511
</span>
512512

cortex-gui/src/components/SettingsDialog.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,7 @@ export function SettingsDialog(props: SettingsDialogProps) {
12411241
background: state.config.sandboxMode === mode.value ? "var(--jb-btn-primary-bg)" : "transparent",
12421242
}}>
12431243
<Show when={state.config.sandboxMode === mode.value}>
1244-
<Icon name="check" style={{ width: "12px", height: "12px", color: "#fff" }} />
1244+
<Icon name="check" style={{ width: "12px", height: "12px", color: "var(--figma-text-primary)" }} />
12451245
</Show>
12461246
</div>
12471247
<div>
@@ -1286,7 +1286,7 @@ export function SettingsDialog(props: SettingsDialogProps) {
12861286
background: state.config.approvalMode === mode.value ? "var(--jb-btn-primary-bg)" : "transparent",
12871287
}}>
12881288
<Show when={state.config.approvalMode === mode.value}>
1289-
<Icon name="check" style={{ width: "12px", height: "12px", color: "#fff" }} />
1289+
<Icon name="check" style={{ width: "12px", height: "12px", color: "var(--figma-text-primary)" }} />
12901290
</Show>
12911291
</div>
12921292
<div>
@@ -1785,7 +1785,7 @@ export function SettingsDialog(props: SettingsDialogProps) {
17851785
background: supermaven.state.enabled ? "var(--jb-btn-primary-bg)" : "transparent",
17861786
}}>
17871787
<Show when={supermaven.state.enabled}>
1788-
<Icon name="check" style={{ width: "12px", height: "12px", color: "#fff" }} />
1788+
<Icon name="check" style={{ width: "12px", height: "12px", color: "var(--figma-text-primary)" }} />
17891789
</Show>
17901790
</div>
17911791
<div style={{ flex: "1" }}>

cortex-gui/src/components/SystemSpecs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export function SystemSpecsDialog(props: SystemSpecsDialogProps) {
202202
<button
203203
onClick={props.onClose}
204204
class="w-8 h-8 flex items-center justify-center rounded-lg transition-colors"
205-
style={{ color: "#888" }}
205+
style={{ color: "var(--figma-text-inactive)" }}
206206
onMouseEnter={(e) => e.currentTarget.style.background = "var(--ui-panel-bg-lighter)"}
207207
onMouseLeave={(e) => e.currentTarget.style.background = "transparent"}
208208
>

cortex-gui/src/components/ai/tools/DiffViewer.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ export function DiffViewer(props: DiffViewerProps) {
280280
"border-radius": "var(--figma-radius-sm)",
281281
border: "none",
282282
background: "var(--vscode-chat-linesAddedForeground)",
283-
color: "#000",
283+
color: "var(--figma-text-primary)",
284284
cursor: "pointer",
285285
"font-size": "var(--vscode-chat-font-size-body-xs)",
286286
"font-weight": "500",
@@ -428,7 +428,7 @@ function UnifiedDiffView(props: UnifiedDiffViewProps) {
428428
"border-radius": "var(--figma-radius-sm)",
429429
border: "none",
430430
background: "var(--vscode-chat-linesAddedForeground)",
431-
color: "#000",
431+
color: "var(--figma-text-primary)",
432432
cursor: "pointer",
433433
"font-size": "10px",
434434
}}
@@ -624,7 +624,7 @@ function SplitDiffView(props: SplitDiffViewProps) {
624624
"border-radius": "var(--figma-radius-sm)",
625625
border: "none",
626626
background: "var(--vscode-chat-linesAddedForeground)",
627-
color: "#000",
627+
color: "var(--figma-text-primary)",
628628
cursor: "pointer",
629629
"font-size": "10px",
630630
}}

cortex-gui/src/components/debug/BreakpointWidget.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ export const BreakpointWidget: Component<BreakpointWidgetProps> = (props) => {
362362
"background-color": enabled()
363363
? "var(--vscode-button-background, var(--figma-info))"
364364
: "var(--vscode-input-background, var(--figma-bg-hover))",
365-
"border-radius": "9px",
365+
"border-radius": "var(--figma-radius-full)",
366366
position: "relative",
367367
transition: "background-color 0.2s",
368368
"margin-right": "8px",

cortex-gui/src/components/debugger/DataBreakpointDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ export function DataBreakpointDialog(props: DataBreakpointDialogProps) {
195195
<div style={{
196196
width: "4px",
197197
height: "4px",
198-
background: "#fff",
198+
background: "var(--figma-bg-primary)",
199199
"border-radius": "var(--figma-radius-full)",
200200
}} />
201201
</div>

0 commit comments

Comments
 (0)