@@ -16,6 +16,8 @@ import { CodeLensContribution } from 'vs/editor/contrib/codelens/browser/codelen
16
16
import { localize } from 'vs/nls' ;
17
17
import { IContextMenuService } from 'vs/platform/contextview/browser/contextView' ;
18
18
import { 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' ;
19
21
import { autorun , derivedObservable , IObservable , ITransaction , ObservableValue , transaction } from 'vs/workbench/contrib/audioCues/browser/observable' ;
20
22
import { InputState , ModifiedBaseRangeState } from 'vs/workbench/contrib/mergeEditor/browser/model/modifiedBaseRange' ;
21
23
import { applyObservableDecorations , setFields } from 'vs/workbench/contrib/mergeEditor/browser/utils' ;
@@ -101,6 +103,7 @@ export class InputCodeEditorView extends CodeEditorView {
101
103
public readonly inputNumber : 1 | 2 ,
102
104
@IInstantiationService instantiationService : IInstantiationService ,
103
105
@IContextMenuService contextMenuService : IContextMenuService ,
106
+ @IThemeService themeService : IThemeService ,
104
107
) {
105
108
super ( instantiationService ) ;
106
109
@@ -216,7 +219,7 @@ export class InputCodeEditorView extends CodeEditorView {
216
219
}
217
220
} ) ) ;
218
221
} ,
219
- createView : ( item , target ) => new MergeConflictGutterItemView ( item , target , contextMenuService ) ,
222
+ createView : ( item , target ) => new MergeConflictGutterItemView ( item , target , contextMenuService , themeService ) ,
220
223
} )
221
224
) ;
222
225
}
@@ -240,6 +243,7 @@ export class MergeConflictGutterItemView extends Disposable implements IGutterIt
240
243
item : ModifiedBaseRangeGutterItemInfo ,
241
244
private readonly target : HTMLElement ,
242
245
contextMenuService : IContextMenuService ,
246
+ themeService : IThemeService
243
247
) {
244
248
super ( ) ;
245
249
@@ -248,6 +252,9 @@ export class MergeConflictGutterItemView extends Disposable implements IGutterIt
248
252
target . classList . add ( 'merge-accept-gutter-marker' ) ;
249
253
250
254
const checkBox = new Toggle ( { isChecked : false , title : localize ( 'accept' , "Accept" ) , icon : Codicon . check } ) ;
255
+
256
+ this . _register ( attachToggleStyler ( checkBox , themeService ) ) ;
257
+
251
258
this . _register (
252
259
dom . addDisposableListener ( checkBox . domNode , dom . EventType . MOUSE_DOWN , ( e ) => {
253
260
if ( e . button === 2 ) {
0 commit comments