示例#1
0
        void drawHVBox(Gdk.EventExpose evnt, Gdk.Window GdkWindow, Gdk.Rectangle alloc)
        {
            if (VisualStyle.TabStyle == DockTabStyle.Normal)
             {
            Gdk.GC gc = new Gdk.GC(GdkWindow);
            gc.RgbFgColor = VisualStyle.InactivePadBackgroundColor.Value;

            evnt.Window.DrawRectangle(gc, true, alloc);
            gc.Dispose();

            Gdk.GC bgc = new Gdk.GC(GdkWindow);
            var c = new HslColor(VisualStyle.PadBackgroundColor.Value);
            c.L *= 0.7;
            bgc.RgbFgColor = c;
            evnt.Window.DrawLine(bgc, alloc.X, alloc.Y + alloc.Height - 1, alloc.X + alloc.Width - 1, alloc.Y + alloc.Height - 1);
            bgc.Dispose();
             }
        }
示例#2
0
 protected override void OnRealized()
 {
     base.OnRealized ();
     HslColor cLight = new HslColor (Style.Background (Gtk.StateType.Normal));
     HslColor cDark = cLight;
     cLight.L *= 0.9;
     cDark.L *= 0.8;
 }