mirror of
https://github.com/transmission/transmission
synced 2025-03-10 22:22:58 +00:00
parent
342ea650df
commit
e40b3b05ba
1 changed files with 8 additions and 0 deletions
|
@ -211,6 +211,14 @@ static NSTimeInterval const kToggleProgressSeconds = 0.175;
|
|||
torrentCell.hoverControl = (row == self.controlButtonHoverRow);
|
||||
torrentCell.hoverReveal = (row == self.revealButtonHoverRow);
|
||||
torrentCell.hoverAction = (row == self.actionButtonHoverRow);
|
||||
|
||||
// if cell is selected, set backgroundStyle
|
||||
// then can provide alternate font color in TorrentCell - drawInteriorWithFrame
|
||||
NSIndexSet* selectedRowIndexes = self.selectedRowIndexes;
|
||||
if ([selectedRowIndexes containsIndex:row])
|
||||
{
|
||||
torrentCell.backgroundStyle = NSBackgroundStyleEmphasized;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue