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:
@@ -59,10 +59,19 @@ describe("resolveSyntaxColors", () => {
|
||||
});
|
||||
|
||||
it("dark-only themes ignore the color scheme", () => {
|
||||
for (const id of ["dracula", "nord"] as const) {
|
||||
for (const id of ["dracula"] as const) {
|
||||
expect(resolveSyntaxColors(id, "light")).toEqual(resolveSyntaxColors(id, "dark"));
|
||||
}
|
||||
});
|
||||
|
||||
it("nord uses a dark text palette in light mode", () => {
|
||||
const light = resolveSyntaxColors("nord", "light");
|
||||
const dark = resolveSyntaxColors("nord", "dark");
|
||||
|
||||
expect(light).not.toEqual(dark);
|
||||
expect(light.variable).toBe("#2e3440");
|
||||
expect(light.comment).toBe("#6b7280");
|
||||
});
|
||||
});
|
||||
|
||||
describe("isSyntaxThemeId", () => {
|
||||
|
||||
Reference in New Issue
Block a user