mirror of
https://github.com/powerline/powerline.git
synced 2025-07-27 15:54:30 +02:00
parent
340bdc7a51
commit
b2cb5b1e94
@ -842,7 +842,7 @@ class EmailIMAPSegment(KwThreadedSegment):
|
|||||||
return [{
|
return [{
|
||||||
'contents': str(unread_count),
|
'contents': str(unread_count),
|
||||||
'highlight_group': ['email_alert_gradient', 'email_alert'],
|
'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