Skip to content

Commit aa497de

Browse files
author
Rachel Macfarlane
committed
Fixes microsoft#67140, Comments panel code font/color should match other places
1 parent d48e978 commit aa497de

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

src/vs/workbench/parts/comments/electron-browser/commentsPanel.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { CommentsDataFilter, CommentsDataSource, CommentsModelRenderer } from 'v
2020
import { ICommentService, IWorkspaceCommentThreadsEvent } from 'vs/workbench/parts/comments/electron-browser/commentService';
2121
import { IEditorService, ACTIVE_GROUP, SIDE_GROUP } from 'vs/workbench/services/editor/common/editorService';
2222
import { ICommandService } from 'vs/platform/commands/common/commands';
23-
import { textLinkForeground, textLinkActiveForeground, focusBorder } from 'vs/platform/theme/common/colorRegistry';
23+
import { textLinkForeground, textLinkActiveForeground, focusBorder, textPreformatForeground } from 'vs/platform/theme/common/colorRegistry';
2424
import { IOpenerService } from 'vs/platform/opener/common/opener';
2525
import { IStorageService } from 'vs/platform/storage/common/storage';
2626
import { ResourceLabels } from 'vs/workbench/browser/labels';
@@ -97,6 +97,11 @@ export class CommentsPanel extends Panel {
9797
content.push(`.comments-panel .commenst-panel-container a:focus { outline-color: ${focusColor}; }`);
9898
}
9999

100+
const codeTextForegroundColor = theme.getColor(textPreformatForeground);
101+
if (codeTextForegroundColor) {
102+
content.push(`.comments-panel .comments-panel-container .text code { color: ${codeTextForegroundColor}; }`);
103+
}
104+
100105
styleElement.innerHTML = content.join('\n');
101106
}
102107

src/vs/workbench/parts/comments/electron-browser/media/panel.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@
4141
overflow: hidden;
4242
}
4343

44+
.comments-panel .comments-panel-container .tree-container .comment-container .text code {
45+
font-family: Menlo, Monaco, Consolas, "Droid Sans Mono", "Courier New", monospace, "Droid Sans Fallback";
46+
}
47+
4448
.comments-panel .comments-panel-container .message-box-container {
4549
line-height: 22px;
4650
padding-left: 20px;

0 commit comments

Comments
 (0)