From 210f487d052bc3579f66bffff9cc0be3fe892ad5 Mon Sep 17 00:00:00 2001 From: Keith Winstein Date: Thu, 13 Oct 2011 00:02:14 -0400 Subject: [PATCH] More attractive notification bar --- terminaloverlay.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/terminaloverlay.cpp b/terminaloverlay.cpp index 029c191..16f0e20 100644 --- a/terminaloverlay.cpp +++ b/terminaloverlay.cpp @@ -154,7 +154,9 @@ void NotificationEngine::render_notification( void ) bool dirty = false; OverlayCell template_cell( now + 1100, 0 /* row */, -1 /* col */, 0 /* background_color */ ); - template_cell.replacement.renditions.inverse = true; + template_cell.replacement.renditions.bold = true; + template_cell.replacement.renditions.foreground_color = 37; + template_cell.replacement.renditions.background_color = 44; OverlayCell current( template_cell ); @@ -218,7 +220,8 @@ void NotificationEngine::apply( Framebuffer &fb ) const assert( fb.ds.get_height() > 0 ); Cell notification_bar( 0 ); - notification_bar.renditions.inverse = true; + notification_bar.renditions.foreground_color = 37; + notification_bar.renditions.background_color = 44; notification_bar.contents.push_back( 0x20 ); for ( int i = 0; i < fb.ds.get_width(); i++ ) {