use last urgency colors for "x more" message
This commit is contained in:
		
							parent
							
								
									712148dfad
								
							
						
					
					
						commit
						820c4ee013
					
				
							
								
								
									
										4
									
								
								dunst.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								dunst.c
									
									
									
									
									
								
							| @ -246,6 +246,7 @@ drawmsg(void) { | |||||||
|     msg_queue_t *cur_msg = msgqueue; |     msg_queue_t *cur_msg = msgqueue; | ||||||
|     char hidden[128]; |     char hidden[128]; | ||||||
|     int hidden_count = 0; |     int hidden_count = 0; | ||||||
|  |     int hidden_color_idx = NORM; | ||||||
|     dc->x = 0; |     dc->x = 0; | ||||||
|     dc->y = 0; |     dc->y = 0; | ||||||
|     dc->h = 0; |     dc->h = 0; | ||||||
| @ -304,12 +305,13 @@ drawmsg(void) { | |||||||
|         drawtext(dc, cur_msg->msg, cur_msg->colors); |         drawtext(dc, cur_msg->msg, cur_msg->colors); | ||||||
| 
 | 
 | ||||||
|         dc->y += font_h; |         dc->y += font_h; | ||||||
|  |         hidden_color_idx = cur_msg->urgency; | ||||||
|         cur_msg = cur_msg->next; |         cur_msg = cur_msg->next; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     if(hidden_count) { |     if(hidden_count) { | ||||||
|         drawrect(dc, 0, dc->y, width, font_h, True, BG(dc, colors[NORM])); |         drawrect(dc, 0, dc->y, width, font_h, True, BG(dc, colors[NORM])); | ||||||
|         drawtext(dc, hidden, colors[NORM]); |         drawtext(dc, hidden, colors[hidden_color_idx]); | ||||||
|         dc->y += font_h; |         dc->y += font_h; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Sascha Kruse
						Sascha Kruse