Author: lluis
Date: 2007-11-07 14:55:16 -0500 (Wed, 07 Nov 2007)
New Revision: 89155
Modified:
trunk/monodevelop/Extras/MonoDevelop.DesignerSupport/ChangeLog
trunk/monodevelop/Extras/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.PropertyGrid/PropertyGridTree.cs
Log:
* MonoDevelop.DesignerSupport.PropertyGrid/PropertyGridTree.cs: Use a
more convenient color for grup headers.
Modified: trunk/monodevelop/Extras/MonoDevelop.DesignerSupport/ChangeLog
===================================================================
--- trunk/monodevelop/Extras/MonoDevelop.DesignerSupport/ChangeLog
2007-11-07 19:30:32 UTC (rev 89154)
+++ trunk/monodevelop/Extras/MonoDevelop.DesignerSupport/ChangeLog
2007-11-07 19:55:16 UTC (rev 89155)
@@ -1,3 +1,8 @@
+2007-11-07 Lluis Sanchez Gual <[EMAIL PROTECTED]>
+
+ * MonoDevelop.DesignerSupport.PropertyGrid/PropertyGridTree.cs: Use a
more
+ convenient color for grup headers.
+
2007-11-02 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* MonoDevelop.DesignerSupport/BindingService.cs: Use RootCombine
instead of
Modified:
trunk/monodevelop/Extras/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.PropertyGrid/PropertyGridTree.cs
===================================================================
---
trunk/monodevelop/Extras/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.PropertyGrid/PropertyGridTree.cs
2007-11-07 19:30:32 UTC (rev 89154)
+++
trunk/monodevelop/Extras/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.PropertyGrid/PropertyGridTree.cs
2007-11-07 19:55:16 UTC (rev 89155)
@@ -440,18 +440,17 @@
class CellRendererProperty: CellRenderer
{
+ TreeView tree;
PropertyDescriptor property;
object instance;
int rowHeight;
- Gdk.Color darkColor;
PropertyEditorCell editorCell;
bool sensitive = true;
bool visible = true;
public CellRendererProperty (TreeView tree)
{
- darkColor = tree.Style.Backgrounds [(int)
Gtk.StateType.Normal];
-
+ this.tree = tree;
Xalign = 0;
Xpad = 3;
@@ -466,7 +465,7 @@
this.instance = instance;
this.property = property;
if (property == null) {
- this.CellBackgroundGdk = darkColor;
+ this.CellBackgroundGdk = tree.Style.MidColors
[(int) Gtk.StateType.Normal];
sensitive = true;
}
else {
@@ -552,9 +551,9 @@
class CellRendererPropertyGroup: CellRendererText
{
+ TreeView tree;
Pango.Layout layout;
bool isGroup;
- Gdk.Color darkColor;
bool sensitive = true;
public bool IsGroup {
@@ -562,7 +561,7 @@
set {
isGroup = value;
if (value)
- this.CellBackgroundGdk = darkColor;
+ this.CellBackgroundGdk =
tree.Style.MidColors [(int) Gtk.StateType.Normal];
else
this.CellBackground = null;
}
@@ -575,9 +574,9 @@
public CellRendererPropertyGroup (TreeView tree)
{
+ this.tree = tree;
layout = new Pango.Layout (tree.PangoContext);
layout.Wrap = Pango.WrapMode.Char;
- darkColor = tree.Style.Backgrounds [(int)
Gtk.StateType.Normal];
Pango.FontDescription des =
tree.Style.FontDescription.Copy();
layout.FontDescription = des;
@@ -630,7 +629,7 @@
window.DrawLayout (widget.Style.TextGC (state),
x, y, layout);
int bx = background_area.X +
background_area.Width - 1;
Gdk.GC gc = new Gdk.GC (window);
- gc.RgbFgColor = darkColor;
+ gc.RgbFgColor = tree.Style.MidColors [(int)
Gtk.StateType.Normal];
window.DrawLine (gc, bx, background_area.Y, bx,
background_area.Y + background_area.Height);
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches