コード例 #1
0
        public override void FillColorTheme(ColorTheme theme)
        {
            // Get the static defaults
            base.FillColorTheme(theme);

            // Override with the values from Visual Studio's Fonts and Colours dialog
            theme.SetGDIColor(PresentationAssistantThemeColor.PresentationAssistantWindowBorder,
                              VS11ThemeManager.GetThemedGDIColor(vsUiShell5, PresentationAssistantVsColours.BorderColourKey));
            theme.SetGDIColor(PresentationAssistantThemeColor.PresentationAssistantWindowBackground,
                              VS11ThemeManager.GetThemedGDIColor(vsUiShell5, PresentationAssistantVsColours.BackgroundColourKey));
            theme.SetGDIColor(PresentationAssistantThemeColor.PresentationAssistantWindowForeground,
                              VS11ThemeManager.GetThemedGDIColor(vsUiShell5, PresentationAssistantVsColours.ForegroundColourKey));
        }
コード例 #2
0
/*
 *      private void FillDarkTheme(ColorTheme theme)
 *      {
 *          theme.SetGDIColor(PresentationAssistantThemeColor.PresentationAssistantWindowBorder, Color.Black);
 *          theme.SetGDIColor(PresentationAssistantThemeColor.PresentationAssistantWindowBackground, Color.FromArgb(0x49, 0x75, 0x49));
 *          theme.SetGDIColor(PresentationAssistantThemeColor.PresentationAssistantWindowForeground, Color.Black);
 *      }
 */

        private void FillLightTheme(ColorTheme theme)
        {
            theme.SetGDIColor(PresentationAssistantThemeColor.PresentationAssistantWindowBorder, Color.FromArgb(0xD1, 0xD1, 0xD1));
            theme.SetGDIColor(PresentationAssistantThemeColor.PresentationAssistantWindowBackground, Color.FromArgb(0xBA, 0xEE, 0xBA));
            theme.SetGDIColor(PresentationAssistantThemeColor.PresentationAssistantWindowForeground, Color.Black);
        }