gnome setup: Fix text color of unfocused treeview selections
This commit is contained in:
parent
c57cf08f74
commit
161d18e3c3
|
@ -688,16 +688,11 @@ namespace SparkleShare {
|
|||
string markup = (string) model.GetValue (iter, 2);
|
||||
TreeSelection selection = (column.TreeView as TreeView).Selection;
|
||||
|
||||
if (selection.IterIsSelected (iter)) {
|
||||
if (column.TreeView.HasFocus)
|
||||
if (selection.IterIsSelected (iter))
|
||||
markup = markup.Replace (SecondaryTextColor, SecondaryTextColorSelected);
|
||||
else
|
||||
markup = markup.Replace (SecondaryTextColorSelected, SecondaryTextColor);
|
||||
|
||||
} else {
|
||||
markup = markup.Replace (SecondaryTextColorSelected, SecondaryTextColor);
|
||||
}
|
||||
|
||||
(cell as CellRendererText).Markup = markup;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue