@@ -16,6 +16,8 @@ import { CodeLensContribution } from 'vs/editor/contrib/codelens/browser/codelen
1616import { localize } from 'vs/nls' ;
1717import { IContextMenuService } from 'vs/platform/contextview/browser/contextView' ;
1818import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation' ;
19+ import { attachToggleStyler } from 'vs/platform/theme/common/styler' ;
20+ import { IThemeService } from 'vs/platform/theme/common/themeService' ;
1921import { autorun , derivedObservable , IObservable , ITransaction , ObservableValue , transaction } from 'vs/workbench/contrib/audioCues/browser/observable' ;
2022import { InputState , ModifiedBaseRangeState } from 'vs/workbench/contrib/mergeEditor/browser/model/modifiedBaseRange' ;
2123import { applyObservableDecorations , setFields } from 'vs/workbench/contrib/mergeEditor/browser/utils' ;
@@ -101,6 +103,7 @@ export class InputCodeEditorView extends CodeEditorView {
101103 public readonly inputNumber : 1 | 2 ,
102104 @IInstantiationService instantiationService : IInstantiationService ,
103105 @IContextMenuService contextMenuService : IContextMenuService ,
106+ @IThemeService themeService : IThemeService ,
104107 ) {
105108 super ( instantiationService ) ;
106109
@@ -216,7 +219,7 @@ export class InputCodeEditorView extends CodeEditorView {
216219 }
217220 } ) ) ;
218221 } ,
219- createView : ( item , target ) => new MergeConflictGutterItemView ( item , target , contextMenuService ) ,
222+ createView : ( item , target ) => new MergeConflictGutterItemView ( item , target , contextMenuService , themeService ) ,
220223 } )
221224 ) ;
222225 }
@@ -240,6 +243,7 @@ export class MergeConflictGutterItemView extends Disposable implements IGutterIt
240243 item : ModifiedBaseRangeGutterItemInfo ,
241244 private readonly target : HTMLElement ,
242245 contextMenuService : IContextMenuService ,
246+ themeService : IThemeService
243247 ) {
244248 super ( ) ;
245249
@@ -248,6 +252,9 @@ export class MergeConflictGutterItemView extends Disposable implements IGutterIt
248252 target . classList . add ( 'merge-accept-gutter-marker' ) ;
249253
250254 const checkBox = new Toggle ( { isChecked : false , title : localize ( 'accept' , "Accept" ) , icon : Codicon . check } ) ;
255+
256+ this . _register ( attachToggleStyler ( checkBox , themeService ) ) ;
257+
251258 this . _register (
252259 dom . addDisposableListener ( checkBox . domNode , dom . EventType . MOUSE_DOWN , ( e ) => {
253260 if ( e . button === 2 ) {
0 commit comments