fix(settings): use theme-aware Project Structure icons

Цей коміт міститься в:
l0ng-ai committed 2026-12-04 22:59:23 +08:00
1 джерело b747e81cb6
коміт a33c46465b
5 files changed
+30 -6

No files matched your search

+11
Переглянути файл
@@ -853,6 +853,17 @@ describe("Settings dialog", () => {
const nav = within(psDialog).getByRole("navigation", { name: "Project Structure sections" });
expect(within(nav).getByText("Project Settings")).toBeInTheDocument();
expect(within(nav).getByText("Platform Settings")).toBeInTheDocument();
const navIcons = within(nav)
.getAllByRole("button")
.map((button) => button.querySelector("svg")!);
expect(navIcons).toHaveLength(7);
for (const icon of navIcons) {
expect(icon).toHaveAttribute("width", "14");
expect(icon).toHaveAttribute("height", "14");
expect(icon.innerHTML).toContain("currentColor");
expect(icon.innerHTML).not.toMatch(/#[0-9a-f]{3,8}\b/i);
}
expect(new Set(navIcons.map((icon) => icon.innerHTML)).size).toBe(navIcons.length);
expect(within(nav).getByRole("button", { name: "Project" })).toHaveAttribute("aria-current", "page");
await act(async () => {
fireEvent.click(within(nav).getByRole("button", { name: "Modules" }));
+6 -6
Переглянути файл
@@ -2144,7 +2144,7 @@ const NAV_GROUPS: Array<{
{
id: "project",
label: "Project",
icon: "folder",
icon: "toolwindow-project",
searchLabels: [
"Project name",
"Project SDK",
@@ -2158,7 +2158,7 @@ const NAV_GROUPS: Array<{
{
id: "modules",
label: "Modules",
icon: "module",
icon: "module-outline",
searchLabels: [
...MODULE_SEARCH_LABELS.sources,
...MODULE_SEARCH_LABELS.paths,
@@ -2168,19 +2168,19 @@ const NAV_GROUPS: Array<{
{
id: "dependencies",
label: "Dependencies",
icon: "build-dependencies",
icon: "hierarchy",
searchLabels: ["Project Dependencies", "Add Project…"],
},
{
id: "libraries",
label: "Libraries",
icon: "folder-library",
icon: "library-outline",
searchLabels: ["Library Details", "Resolved Build & SDK Libraries", "Classes", "Sources", "Scope", "JAR"],
},
{
id: "facets",
label: "Facets",
icon: "file-config",
icon: "layers",
searchLabels: [
"Framework Facets",
"Framework",
@@ -2194,7 +2194,7 @@ const NAV_GROUPS: Array<{
{
id: "artifacts",
label: "Artifacts",
icon: "file-archive",
icon: "artifact",
searchLabels: [
"Packaging Artifacts",
"JAR",