From 7a55a2e6cea66699aaed901bc9e649d79026aa6b Mon Sep 17 00:00:00 2001 From: Asmageddon Date: Fri, 1 Jun 2012 22:06:37 +0200 Subject: [PATCH] Set default priority for file priority dialog to 'Normal', added colors --- deluge/ui/console/modes/torrentdetail.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/deluge/ui/console/modes/torrentdetail.py b/deluge/ui/console/modes/torrentdetail.py index a7b72a8e6..578c14649 100644 --- a/deluge/ui/console/modes/torrentdetail.py +++ b/deluge/ui/console/modes/torrentdetail.py @@ -579,10 +579,11 @@ class TorrentDetail(BaseMode, component.Component): func = lambda idx, data, we=was_empty: self.do_priority(idx, data, we) if self.marked: self.popup = SelectablePopup(self,"Set File Priority", func) - self.popup.add_line("_Do Not Download",data=deluge.common.FILE_PRIORITY["Do Not Download"]) + self.popup.add_line("_Do Not Download",data=deluge.common.FILE_PRIORITY["Do Not Download"], foreground="red") self.popup.add_line("_Normal Priority",data=deluge.common.FILE_PRIORITY["Normal Priority"]) - self.popup.add_line("_High Priority",data=deluge.common.FILE_PRIORITY["High Priority"]) - self.popup.add_line("H_ighest Priority",data=deluge.common.FILE_PRIORITY["Highest Priority"]) + self.popup.add_line("_High Priority",data=deluge.common.FILE_PRIORITY["High Priority"], foreground="yellow") + self.popup.add_line("H_ighest Priority",data=deluge.common.FILE_PRIORITY["Highest Priority"], foreground="green") + self.popup._selected = 1 def __mark_unmark(self,idx): """