Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Krüger <mkrueger@novell.com>2010-08-19 14:54:55 +0400
committerMike Krüger <mkrueger@novell.com>2010-08-19 14:54:55 +0400
commit55f9c6d05730aaa53593cb0559b2af5e33c8ba4c (patch)
treecf679578b442910b35e97b6fe26d9be94d99d2a9 /main/src/core/MonoDevelop.Ide/MonoDevelop.Components
parent5508fa8129fe5de08a7da56e6a0b0fc3768d9211 (diff)
Fixed tooltip theming (dark colors).
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Components')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Components/GtkUtil.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/GtkUtil.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/GtkUtil.cs
index 4f3be4f6fe..7f89c13366 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/GtkUtil.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/GtkUtil.cs
@@ -200,7 +200,6 @@ namespace MonoDevelop.Components
}
col.CellSetCellData (tree.Model, iter, false, false);
-
int x = 0;
int th = 0;
CellRenderer[] renderers = col.CellRenderers;
@@ -224,9 +223,14 @@ namespace MonoDevelop.Components
Gdk.Rectangle rect = Allocation;
col.CellSetCellData (tree.Model, iter, false, false);
int x = 1;
+ Gdk.Color save = Gdk.Color.Zero;
foreach (CellRenderer cr in col.CellRenderers) {
if (!cr.Visible)
continue;
+ if (cr is CellRendererText) {
+ save = ((CellRendererText)cr).ForegroundGdk;
+ ((CellRendererText)cr).ForegroundGdk = Style.Foreground (State);
+ }
int sp, wi, he, xo, yo;
col.CellGetPosition (cr, out sp, out wi);
Gdk.Rectangle colcrect = new Gdk.Rectangle (x, rect.Y, wi, rect.Height - 2);
@@ -236,6 +240,9 @@ namespace MonoDevelop.Components
Gdk.Rectangle crect = new Gdk.Rectangle (colcrect.X + leftMargin, colcrect.Y + rightMargin + 1, wi, he);
cr.Render (this.GdkWindow, tree, colcrect, crect, rect, CellRendererState.Focused);
x += colcrect.Width + col.Spacing + 1;
+ if (cr is CellRendererText) {
+ ((CellRendererText)cr).ForegroundGdk = save;
+ }
}
return true;
}