fix(outline): add tab-switch refresh and dark mode styles

Amit Haridas
This commit is contained in:
2026-04-06 11:05:54 +05:30
parent b1a5784bcc
commit 7a3493e54f
2 changed files with 10 additions and 0 deletions
+3
View File
@@ -456,6 +456,9 @@ class TabManager {
if (tab?.filePath) { if (tab?.filePath) {
ipcRenderer.send('set-current-file', tab.filePath); ipcRenderer.send('set-current-file', tab.filePath);
} }
// Refresh outline panel for new tab content
if (outlinePanelContainer?._refreshOutline) outlinePanelContainer._refreshOutline();
} }
switchToNextTab() { switchToNextTab() {
+7
View File
@@ -295,3 +295,10 @@ body[class*="dark"] .git-file:hover {
.outline-empty p { margin: 4px 0; } .outline-empty p { margin: 4px 0; }
.outline-hint { font-family: monospace; font-size: 12px; opacity: 0.7; } .outline-hint { font-family: monospace; font-size: 12px; opacity: 0.7; }
.outline-footer { padding: 8px 12px; border-top: 1px solid var(--border-color, #e5e7eb); font-size: 11px; color: var(--text-muted, #9ca3af); } .outline-footer { padding: 8px 12px; border-top: 1px solid var(--border-color, #e5e7eb); font-size: 11px; color: var(--text-muted, #9ca3af); }
/* Outline dark mode */
body[class*="dark"] .outline-item { color: #9ca3af; }
body[class*="dark"] .outline-item:hover { background: #374151; color: #e5e7eb; }
body[class*="dark"] .outline-item.active { color: #8b9aff; background: rgba(139, 154, 255, 0.1); border-left-color: #8b9aff; }
body[class*="dark"] .outline-empty { color: #6b7280; }
body[class*="dark"] .outline-footer { border-color: #333; color: #6b7280; }