diff options
author | Michael Hutchinson <mhutchinson@novell.com> | 2010-04-19 01:45:14 +0400 |
---|---|---|
committer | Michael Hutchinson <mhutchinson@novell.com> | 2010-04-19 01:45:14 +0400 |
commit | 41a45b06ca76d66c0eecbbbcb78a078747646170 (patch) | |
tree | 5a5e5877178658797fb382bb78bcd654b39a251d /main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking | |
parent | c22a52a5fa4890ad5675f2ff02421d9609a9870f (diff) |
* MonoDevelop.Components.Docking/DockItemContainer.cs: Remove the
horizontal gradient on the docked pad header, as it clashes with the
vertical gradient on the pad toolbars.
svn path=/trunk/monodevelop/; revision=155690
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking/DockItemContainer.cs | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking/DockItemContainer.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking/DockItemContainer.cs index 43af768044..5c2e6915df 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking/DockItemContainer.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking/DockItemContainer.cs @@ -256,12 +256,8 @@ namespace MonoDevelop.Components.Docking HslColor gcol = frame.Style.Background (Gtk.StateType.Normal); if (pointerHover) - gcol.L *= 1.1; - else - gcol.L *= 1; - - if (gcol.L > 1) - gcol.L = 1; + gcol.L *= 1.05; + gcol.L = Math.Min (1, gcol.L); using (Cairo.Context cr = Gdk.CairoHelper.Create (a.Event.Window)) { cr.NewPath (); @@ -271,16 +267,10 @@ namespace MonoDevelop.Components.Docking cr.RelLineTo (-rect.Width, 0); cr.RelLineTo (0, -rect.Height); cr.ClosePath (); - Cairo.Gradient pat = new Cairo.LinearGradient (0, 0, rect.Width, rect.Height); - Cairo.Color color1 = gcol; - pat.AddColorStop (0, color1); - color1.A = 0.3; - pat.AddColorStop (1, color1); - cr.Pattern = pat; + cr.Pattern = new Cairo.SolidPattern (gcol); cr.FillPreserve (); } -// header.GdkWindow.DrawRectangle (gc, true, rect); header.GdkWindow.DrawRectangle (frame.Style.DarkGC (Gtk.StateType.Normal), false, rect); foreach (Widget child in header.Children) |