gnome setup: Fix text color of unfocused treeview selections

This commit is contained in:
Hylke Bons 2013-10-11 23:36:01 +02:00
parent c57cf08f74
commit 161d18e3c3

View file

@ -688,15 +688,10 @@ namespace SparkleShare {
string markup = (string) model.GetValue (iter, 2); string markup = (string) model.GetValue (iter, 2);
TreeSelection selection = (column.TreeView as TreeView).Selection; TreeSelection selection = (column.TreeView as TreeView).Selection;
if (selection.IterIsSelected (iter)) { if (selection.IterIsSelected (iter))
if (column.TreeView.HasFocus) markup = markup.Replace (SecondaryTextColor, SecondaryTextColorSelected);
markup = markup.Replace (SecondaryTextColor, SecondaryTextColorSelected); else
else
markup = markup.Replace (SecondaryTextColorSelected, SecondaryTextColor);
} else {
markup = markup.Replace (SecondaryTextColorSelected, SecondaryTextColor); markup = markup.Replace (SecondaryTextColorSelected, SecondaryTextColor);
}
(cell as CellRendererText).Markup = markup; (cell as CellRendererText).Markup = markup;
} }