本文整理汇总了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 ();
}
示例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);
}
示例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 ());
}
示例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 ();
}