fix(app): show selected workspace in light theme (#3922)

Co-authored-by: Will Daubney <16829568+wdaubney@users.noreply.github.com>
This commit is contained in:
Will Daubney
2026-08-27 08:15:24 +00:00
committed by GitHub
co-authored by Will Daubney
parent f82886f284
commit 4e52125f5b
3 changed files with 38 additions and 8 deletions
+10 -7
View File
@@ -68,13 +68,16 @@ describe("Pure black theme", () => {
});
describe("Sidebar interaction surfaces", () => {
it.each([lightTheme, darkTheme])(
"derives hover and selection from the surface scale",
(theme) => {
expect(theme.colors.surfaceSidebarHover).toBe(theme.colors.surface1);
expect(theme.colors.surfaceSidebarSelected).toBe(theme.colors.surface2);
},
);
it("keeps Light selection distinct from the sidebar surface", () => {
expect(lightTheme.colors.surfaceSidebarHover).toBe(lightTheme.colors.surface1);
expect(lightTheme.colors.surfaceSidebarSelected).toBe(lightTheme.colors.surface3);
expect(lightTheme.colors.surfaceSidebarSelected).not.toBe(lightTheme.colors.surfaceSidebar);
});
it("derives Dark hover and selection from the first two raised surfaces", () => {
expect(darkTheme.colors.surfaceSidebarHover).toBe(darkTheme.colors.surface1);
expect(darkTheme.colors.surfaceSidebarSelected).toBe(darkTheme.colors.surface2);
});
});
describe("Built-in light theme", () => {
+1 -1
View File
@@ -254,7 +254,7 @@ export function buildLightSemanticColors(tint: LightThemeConfig) {
surfaceDiffEmpty: tint.surfaceDiffEmpty,
surfaceSidebar: tint.surfaceSidebar,
surfaceSidebarHover: tint.surface1,
surfaceSidebarSelected: tint.surface2,
surfaceSidebarSelected: tint.surface3,
surfaceWorkspace: tint.surface0,
interactionHighlight: "rgba(0, 0, 0, 0.06)",