Skip to content

Commit

Permalink
Comments UI with high contrast themes. (#170113)
Browse files Browse the repository at this point in the history
Fixes #170024
  • Loading branch information
alexr00 committed Dec 27, 2022
1 parent a97d52a commit 953f7f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -8,11 +8,12 @@ import { Color } from 'vs/base/common/color';
import { ContentWidgetPositionPreference, ICodeEditor, IContentWidgetPosition } from 'vs/editor/browser/editorBrowser';
import { IModelDecorationOptions, OverviewRulerLane } from 'vs/editor/common/model';
import { ModelDecorationOptions } from 'vs/editor/common/model/textModel';
import { darken, listInactiveSelectionBackground, registerColor } from 'vs/platform/theme/common/colorRegistry';
import { darken, editorForeground, listInactiveSelectionBackground, registerColor } from 'vs/platform/theme/common/colorRegistry';
import { themeColorFromId } from 'vs/platform/theme/common/themeService';
import { IEditorDecorationsCollection } from 'vs/editor/common/editorCommon';

export const overviewRulerCommentingRangeForeground = registerColor('editorGutter.commentRangeForeground', { dark: listInactiveSelectionBackground, light: darken(listInactiveSelectionBackground, .05), hcDark: Color.white, hcLight: Color.black }, nls.localize('editorGutterCommentRangeForeground', 'Editor gutter decoration color for commenting ranges.'));
registerColor('editorGutter.commentGlyphForground', { dark: editorForeground, light: editorForeground, hcDark: Color.black, hcLight: Color.white }, nls.localize('editorGutterCommentGlyphForeground', 'Editor gutter decoration color for commenting glyphs.'));

export class CommentGlyphWidget {
public static description = 'comment-glyph-widget';
Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/comments/browser/media/review.css
Expand Up @@ -501,7 +501,7 @@ div.preview.inline .monaco-editor .comment-range-glyph {
width: 9px;
left: -6px;
z-index: 10;
color: var(--vscode-editor-foreground);
color: var(--vscode-editorGutter-commentGlyphForground);
text-align: center;
display: flex;
flex-direction: row;
Expand Down

0 comments on commit 953f7f4

Please sign in to comment.