Skip to content

Commit 197600f

Browse files
committed
fix(tui): preserve migrated primary colors
1 parent 342b003 commit 197600f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/tui/src/theme/v2/v1-migrate.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function migrateMode(theme: Theme, mode: "light" | "dark"): ThemeFile["light"] {
2929
subdued: color("textMuted"),
3030
action: {
3131
primary: {
32-
default: color("text"),
32+
default: selected,
3333
$disabled: color("textMuted"),
3434
$focused: selected,
3535
},
@@ -60,7 +60,7 @@ function migrateMode(theme: Theme, mode: "light" | "dark"): ThemeFile["light"] {
6060
overlay: color("backgroundMenu"),
6161
},
6262
action: {
63-
primary: { default: color("background"), $focused: color("primary") },
63+
primary: { default: color("primary"), $focused: color("primary") },
6464
secondary: {
6565
default: "$background.default",
6666
$focused: color("backgroundElement"),
@@ -133,7 +133,7 @@ function migrateMode(theme: Theme, mode: "light" | "dark"): ThemeFile["light"] {
133133
default: "$background.surface.offset",
134134
action: {
135135
primary: {
136-
default: "$background.surface.offset",
136+
default: color("primary"),
137137
$focused: color("primary"),
138138
},
139139
secondary: {

0 commit comments

Comments
 (0)