예제 #1
0
        void UpdateStyles(object sender = null, EventArgs e = null)
        {
            highlightStyle = SyntaxHighlightingService.GetEditorTheme(IdeApp.Preferences.ColorScheme);
            if (!highlightStyle.FitsIdeTheme(IdeApp.Preferences.UserInterfaceTheme))
            {
                highlightStyle = SyntaxHighlightingService.GetDefaultColorStyle(Ide.IdeApp.Preferences.UserInterfaceTheme);
            }

            if (IsRealized)
            {
                store.Foreach((model, path, iter) => {
                    model.EmitRowChanged(path, iter);
                    return(false);
                });
            }
        }
예제 #2
0
        void UpdateStyle()
        {
            var scheme = SyntaxHighlightingService.GetEditorTheme(IdeApp.Preferences.ColorScheme);

            if (!scheme.FitsIdeTheme(IdeApp.Preferences.UserInterfaceTheme))
            {
                scheme = SyntaxHighlightingService.GetDefaultColorStyle(IdeApp.Preferences.UserInterfaceTheme);
            }

            Theme.SetSchemeColors(scheme);
            Theme.Font        = FontService.SansFont.CopyModified(Styles.FontScale11).ToXwtFont();
            Theme.ShadowColor = Styles.PopoverWindow.ShadowColor;
            foreColor         = Styles.PopoverWindow.DefaultTextColor.ToCairoColor();

            headlabel.ModifyFg(StateType.Normal, foreColor.ToGdkColor());
            headlabel.FontDescription = FontService.GetFontDescription("Editor").CopyModified(Styles.FontScale11);

            //if (this.Visible)
            //	QueueDraw ();
        }
        internal void SetDefaultScheme()
        {
            var scheme = SyntaxHighlightingService.GetEditorTheme(IdeApp.Preferences.ColorScheme);

            if (!scheme.FitsIdeTheme(IdeApp.Preferences.UserInterfaceTheme))
            {
                scheme = SyntaxHighlightingService.GetDefaultColorStyle(IdeApp.Preferences.UserInterfaceTheme);
            }

            Theme.SetSchemeColors(scheme);
            foreColor = Styles.PopoverWindow.DefaultTextColor.ToCairoColor();
            headLabel.ModifyFg(StateType.Normal, foreColor.ToGdkColor());
            headLabel.FontDescription = IdeServices.FontService.GetFontDescription("Editor").CopyModified(Styles.FontScale11);
            Theme.Font        = IdeServices.FontService.SansFont.CopyModified(Styles.FontScale11).ToXwtFont();
            Theme.ShadowColor = Styles.PopoverWindow.ShadowColor;
                        #pragma warning disable CS0612 // Type or member is obsolete
            if (this.Visible)
            {
                ShowOverload();
            }
                        #pragma warning restore CS0612
        }