Fix item pane section button icons in light and dark themes.

Wire stroke context properties for Lucide SVG toolbar icons and set light/dark icon URLs on open-in-window and adaptive-height buttons.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
yhy
2026-08-29 23:54:45 +08:00
co-authored by Cursor
parent 36b806378f
commit 54f004a56c
4 changed files with 75 additions and 25 deletions
+2
View File
@@ -3,6 +3,7 @@ import { getLocaleID, getString } from "../../utils/locale";
import { ChatView } from "./chatView";
import {
applyAdaptiveHeight,
applyItemPaneSectionButtonIcons,
buildItemPaneSectionButtons,
onItemPaneSectionToggle,
prepareItemPaneBody,
@@ -62,6 +63,7 @@ export function registerChatPane() {
views.set(body, view);
await view.mount();
applyAdaptiveHeight(body, "chat");
applyItemPaneSectionButtonIcons(body);
const section = body.closest("collapsible-section");
if (section?.hasAttribute("open")) {
refreshSectionOpenHeight(body);