internal VisualAssistMargin(IVisualAssistUtil visualAssistUtil, IEditorFormatMap editorFormatMap) { _visualAssistUtil = visualAssistUtil; _visualAssistUtil.IsRegistryFixNeededChanged += IsRegistryFixNeededChanged; InitializeComponent(); Background = editorFormatMap.GetBackgroundBrush(EditorFormatDefinitionNames.Margin, MarginFormatDefinition.DefaultColor); }
internal VisualAssistMargin(IVisualAssistUtil visualAssistUtil, IEditorFormatMap editorFormatMap) { _visualAssistUtil = visualAssistUtil; _visualAssistUtil.IsRegistryFixNeededChanged += IsRegistryFixNeededChanged; InitializeComponent(); Background = editorFormatMap.GetBackgroundBrush(EditorFormatDefinitionNames.Margin, MarginFormatDefinition.DefaultColor); }
internal ConflictingKeyBindingMargin(IKeyBindingService service, IEditorFormatMap formatMap, ILegacySettings legacySettings) { _keyBindingService = service; _legacySettings = legacySettings; _control = new ConflictingKeyBindingMarginControl(); _control.Background = formatMap.GetBackgroundBrush(EditorFormatDefinitionNames.Margin, MarginFormatDefinition.DefaultColor); _control.ConfigureClick += OnConfigureClick; _control.IgnoreClick += OnIgnoreClick; _keyBindingService.ConflictingKeyBindingStateChanged += OnStateChanged; OnStateChanged(this, EventArgs.Empty); }
internal ConflictingKeyBindingMargin(IKeyBindingService service, IEditorFormatMap formatMap, IVimApplicationSettings vimApplicationSettings) { _keyBindingService = service; _vimApplicationSettings = vimApplicationSettings; _control = new ConflictingKeyBindingMarginControl(); _control.Background = formatMap.GetBackgroundBrush(EditorFormatDefinitionNames.Margin, MarginFormatDefinition.DefaultColor); _control.ConfigureClick += OnConfigureClick; _control.IgnoreClick += OnIgnoreClick; _keyBindingService.ConflictingKeyBindingStateChanged += OnStateChanged; OnStateChanged(this, EventArgs.Empty); }
private void UpdateTheme() { _toastControl.Background = _editorFormatMap.GetBackgroundBrush(EditorFormatDefinitionNames.Margin, MarginFormatDefinition.DefaultColor); }