mirror of
https://github.com/powerline/powerline.git
synced 2025-07-26 23:35:04 +02:00
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…
x
Reference in New Issue
Block a user