TheExtension(ThemeFontSettingsService themeFontSettingsService) { var themeFontSettings = themeFontSettingsService.GetSettings(AppearanceCategoryConstants.TextEditor); themeFontSettings.PropertyChanged += ThemeFontSettings_PropertyChanged; Initialize(themeFontSettings.Active); }
TextAppearanceCategoryService(IThemeService themeService, ThemeFontSettingsService themeFontSettingsService, [ImportMany] TextAppearanceCategoryDefinition[] textAppearanceCategoryDefinitions) { themeService.ThemeChangedHighPriority += ThemeService_ThemeChangedHighPriority; categoryToTextAppearanceCategoryDefinition = new Dictionary <string, TextAppearanceCategory>(textAppearanceCategoryDefinitions.Length, StringComparer.Ordinal); foreach (var def in textAppearanceCategoryDefinitions) { Debug.Assert(!categoryToTextAppearanceCategoryDefinition.ContainsKey(def.Category)); categoryToTextAppearanceCategoryDefinition[def.Category] = new TextAppearanceCategory(def, themeFontSettingsService.GetSettings(def.Category)); } }
public CreateControlFlowGraphForMethod(IDocumentTabService documentTabService, IThemeService themeService, ThemeFontSettingsService fontService) { this.documentTabService = documentTabService; this.themeService = themeService; this.fontService = fontService; }