gnome setup: Fix text color of unfocused treeview selections
This commit is contained in:
parent
c57cf08f74
commit
161d18e3c3
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue