parent
340bdc7a51
commit
b2cb5b1e94
|
@ -842,7 +842,7 @@ class EmailIMAPSegment(KwThreadedSegment):
|
|||
return [{
|
||||
'contents': str(unread_count),
|
||||
'highlight_group': ['email_alert_gradient', 'email_alert'],
|
||||
'gradient_level': unread_count * 100.0 / max_msgs,
|
||||
'gradient_level': min(unread_count * 100.0 / max_msgs, 100),
|
||||
}]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue