当前位置: 首页>>代码示例>>C#>>正文


C# Cairo.Color.ToGdkColor方法代码示例

本文整理汇总了C#中Cairo.Color.ToGdkColor方法的典型用法代码示例。如果您正苦于以下问题:C# Cairo.Color.ToGdkColor方法的具体用法?C# Cairo.Color.ToGdkColor怎么用?C# Cairo.Color.ToGdkColor使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Cairo.Color的用法示例。


在下文中一共展示了Cairo.Color.ToGdkColor方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: UpdateStyle

		void UpdateStyle ()
		{
			var scheme = SyntaxModeService.GetColorStyle (IdeApp.Preferences.ColorScheme);
			if (!scheme.FitsIdeSkin (IdeApp.Preferences.UserInterfaceSkin))
				scheme = SyntaxModeService.GetDefaultColorStyle (IdeApp.Preferences.UserInterfaceSkin);
			
			Theme.SetSchemeColors (scheme);
			Theme.Font = FontService.SansFont.CopyModified (Styles.FontScale11);
			Theme.ShadowColor = Styles.PopoverWindow.ShadowColor.ToCairoColor ();
			foreColor = Styles.PopoverWindow.DefaultTextColor.ToCairoColor ();

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

			if (this.Visible)
				QueueDraw ();
		}
开发者ID:vvarshne,项目名称:monodevelop,代码行数:17,代码来源:ParameterInformationWindow.cs

示例2: ParameterInformationWindow

        public ParameterInformationWindow()
        {
            TypeHint = Gdk.WindowTypeHint.Tooltip;
            this.SkipTaskbarHint = true;
            this.SkipPagerHint = true;
            this.AllowShrink = false;
            this.AllowGrow = false;
            this.CanFocus = false;
            this.CanDefault = false;
            Mono.TextEditor.PopupWindow.WindowTransparencyDecorator.Attach (this);

            headlabel = new MonoDevelop.Components.FixedWidthWrapLabel ();
            headlabel.Indent = -20;

            headlabel.FontDescription = FontService.GetFontDescription ("Editor").CopyModified (1.1);

            headlabel.Wrap = Pango.WrapMode.WordChar;
            headlabel.BreakOnCamelCasing = false;
            headlabel.BreakOnPunctuation = false;
            descriptionBox.Spacing = 4;
            VBox vb = new VBox (false, 0);
            vb.PackStart (headlabel, true, true, 0);
            vb.PackStart (descriptionBox, true, true, 0);

            HBox hb = new HBox (false, 0);
            hb.PackStart (vb, true, true, 0);

            vb2.Spacing = 4;
            vb2.PackStart (hb, true, true, 0);
            ContentBox.Add (vb2);
            var scheme = Mono.TextEditor.Highlighting.SyntaxModeService.GetColorStyle (IdeApp.Preferences.ColorScheme);
            Theme.SetSchemeColors (scheme);

            foreColor = scheme.PlainText.Foreground;
            headlabel.ModifyFg (StateType.Normal, foreColor.ToGdkColor ());
            ShowAll ();
            DesktopService.RemoveWindowShadow (this);
        }
开发者ID:brantwedel,项目名称:monodevelop,代码行数:38,代码来源:ParameterInformationWindow.cs

示例3: SetDefaultScheme

		internal void SetDefaultScheme ()
		{
			var scheme = Mono.TextEditor.Highlighting.SyntaxModeService.GetColorStyle (IdeApp.Preferences.ColorScheme);
			Theme.SetSchemeColors (scheme);
			foreColor = scheme.PlainText.Foreground;
			headLabel.ModifyFg (StateType.Normal, foreColor.ToGdkColor ());
		}
开发者ID:Kalnor,项目名称:monodevelop,代码行数:7,代码来源:TooltipInformationWindow.cs

示例4: OnShown

		protected override void OnShown ()
		{
			var scheme = SyntaxModeService.GetColorStyle (IdeApp.Preferences.ColorScheme);
			Theme.SetSchemeColors (scheme);
			foreColor = scheme.PlainText.Foreground;
			headlabel.ModifyFg (StateType.Normal, foreColor.ToGdkColor ());

			base.OnShown ();
		}
开发者ID:gAdrev,项目名称:monodevelop,代码行数:9,代码来源:ParameterInformationWindow.cs


注:本文中的Cairo.Color.ToGdkColor方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。