Refine appearance settings and syntax highlighting

Keep parsed chat and tool detail content in sync with appearance token changes. Hide font-family controls on native, use One as the default syntax theme, add Swift highlighting, and give Nord a distinct light palette.
This commit is contained in:
Mohamed Boudra
2026-05-31 21:40:38 +07:00
parent 4cc72a84e8
commit 9f88b4e69c
21 changed files with 310 additions and 53 deletions
+15 -3
View File
@@ -180,8 +180,20 @@ const oneDark: RolePalette = {
operator: "#56b6c2",
};
// --- Nord (dark only) ----------------------------------------------------
const nord: RolePalette = {
// --- Nord (Snow Storm light / Polar Night dark) ---------------------------
const nordLight: RolePalette = {
base: "#2e3440",
keyword: "#5e81ac",
comment: "#6b7280",
string: "#4f6f3a",
number: "#8f5e91",
function: "#2e6f8e",
type: "#3b7f87",
tag: "#5e81ac",
attribute: "#8f5e91",
operator: "#5e81ac",
};
const nordDark: RolePalette = {
base: "#d8dee9",
keyword: "#81a1c1",
comment: "#616e88",
@@ -269,7 +281,7 @@ export function resolveSyntaxColors(
case "one":
return expandRolePalette(dark ? oneDark : oneLight);
case "nord":
return expandRolePalette(nord);
return expandRolePalette(dark ? nordDark : nordLight);
case "gruvbox":
return expandRolePalette(dark ? gruvboxDark : gruvboxLight);
case "solarized":