Skip to content

Commit 2ac96a7

Browse files
author
Miguel Solorio
authored
Merge pull request microsoft#86855 from microsoft/misolori/scm-ruler-decorations
Update scm colors in ruler to match editor colors
2 parents 9c43386 + bbe6e10 commit 2ac96a7

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { URI } from 'vs/base/common/uri';
2020
import { ISCMService, ISCMRepository, ISCMProvider } from 'vs/workbench/contrib/scm/common/scm';
2121
import { ModelDecorationOptions } from 'vs/editor/common/model/textModel';
2222
import { registerThemingParticipant, ITheme, ICssStyleCollector, themeColorFromId, IThemeService } from 'vs/platform/theme/common/themeService';
23-
import { registerColor } from 'vs/platform/theme/common/colorRegistry';
23+
import { registerColor, transparent } from 'vs/platform/theme/common/colorRegistry';
2424
import { Color, RGBA } from 'vs/base/common/color';
2525
import { ICodeEditor, IEditorMouseEvent, MouseTargetType } from 'vs/editor/browser/editorBrowser';
2626
import { registerEditorAction, registerEditorContribution, ServicesAccessor, EditorAction } from 'vs/editor/browser/editorExtensions';
@@ -842,10 +842,9 @@ export const minimapGutterDeletedBackground = registerColor('minimapGutter.delet
842842
hc: new Color(new RGBA(252, 93, 109))
843843
}, nls.localize('minimapGutterDeletedBackground', "Minimap gutter background color for lines that are deleted."));
844844

845-
const overviewRulerDefault = new Color(new RGBA(0, 122, 204, 0.6));
846-
export const overviewRulerModifiedForeground = registerColor('editorOverviewRuler.modifiedForeground', { dark: overviewRulerDefault, light: overviewRulerDefault, hc: overviewRulerDefault }, nls.localize('overviewRulerModifiedForeground', 'Overview ruler marker color for modified content.'));
847-
export const overviewRulerAddedForeground = registerColor('editorOverviewRuler.addedForeground', { dark: overviewRulerDefault, light: overviewRulerDefault, hc: overviewRulerDefault }, nls.localize('overviewRulerAddedForeground', 'Overview ruler marker color for added content.'));
848-
export const overviewRulerDeletedForeground = registerColor('editorOverviewRuler.deletedForeground', { dark: overviewRulerDefault, light: overviewRulerDefault, hc: overviewRulerDefault }, nls.localize('overviewRulerDeletedForeground', 'Overview ruler marker color for deleted content.'));
845+
export const overviewRulerModifiedForeground = registerColor('editorOverviewRuler.modifiedForeground', { dark: transparent(editorGutterModifiedBackground, 0.6), light: transparent(editorGutterModifiedBackground, 0.6), hc: transparent(editorGutterModifiedBackground, 0.6) }, nls.localize('overviewRulerModifiedForeground', 'Overview ruler marker color for modified content.'));
846+
export const overviewRulerAddedForeground = registerColor('editorOverviewRuler.addedForeground', { dark: transparent(editorGutterAddedBackground, 0.6), light: transparent(editorGutterAddedBackground, 0.6), hc: transparent(editorGutterAddedBackground, 0.6) }, nls.localize('overviewRulerAddedForeground', 'Overview ruler marker color for added content.'));
847+
export const overviewRulerDeletedForeground = registerColor('editorOverviewRuler.deletedForeground', { dark: transparent(editorGutterDeletedBackground, 0.6), light: transparent(editorGutterDeletedBackground, 0.6), hc: transparent(editorGutterDeletedBackground, 0.6) }, nls.localize('overviewRulerDeletedForeground', 'Overview ruler marker color for deleted content.'));
849848

850849
class DirtyDiffDecorator extends Disposable {
851850

0 commit comments

Comments
 (0)