Esempio n. 1
0
        TheExtension(ThemeFontSettingsService themeFontSettingsService)
        {
            var themeFontSettings = themeFontSettingsService.GetSettings(AppearanceCategoryConstants.TextEditor);

            themeFontSettings.PropertyChanged += ThemeFontSettings_PropertyChanged;
            Initialize(themeFontSettings.Active);
        }
Esempio n. 2
0
 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));
     }
 }
Esempio n. 3
0
 public CreateControlFlowGraphForMethod(IDocumentTabService documentTabService, IThemeService themeService, ThemeFontSettingsService fontService)
 {
     this.documentTabService = documentTabService;
     this.themeService       = themeService;
     this.fontService        = fontService;
 }