From 876a5cd8c8fdd4f6f0e0a3035e559059dbb8e3bd Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Thu, 26 Jun 2008 16:21:49 -0400 Subject: Change colors of text splash screen to configured colors We pass colors into configure, so we should use them --- src/libplybootsplash/ply-text-pulser.c | 2 +- src/splash-plugins/text/Makefile.am | 6 +++++- src/splash-plugins/text/plugin.c | 10 ++++++++++ 3 files changed, 16 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/libplybootsplash/ply-text-pulser.c b/src/libplybootsplash/ply-text-pulser.c index 34630bb..f22f41d 100644 --- a/src/libplybootsplash/ply-text-pulser.c +++ b/src/libplybootsplash/ply-text-pulser.c @@ -128,7 +128,7 @@ animate_at_time (ply_text_pulser_t *pulser, pulser->column + pulser->spinner_position, pulser->row); - ply_window_set_background_color (pulser->window, PLY_WINDOW_COLOR_WHITE); + ply_window_set_background_color (pulser->window, PLY_WINDOW_COLOR_GREEN); write (STDOUT_FILENO, " ", strlen (" ")); ply_window_set_background_color (pulser->window, PLY_WINDOW_COLOR_DEFAULT); } diff --git a/src/splash-plugins/text/Makefile.am b/src/splash-plugins/text/Makefile.am index 075230a..ccf8093 100644 --- a/src/splash-plugins/text/Makefile.am +++ b/src/splash-plugins/text/Makefile.am @@ -8,7 +8,11 @@ INCLUDES = -I$(top_srcdir) \ plugindir = $(libdir)/plymouth plugin_LTLIBRARIES = text.la -text_la_CFLAGS = $(PLYMOUTH_CFLAGS) +text_la_CFLAGS = $(PLYMOUTH_CFLAGS) \ + -DPLYMOUTH_BACKGROUND_COLOR=$(background_color) \ + -DPLYMOUTH_BACKGROUND_END_COLOR=$(background_end_color) \ + -DPLYMOUTH_BACKGROUND_START_COLOR=$(background_start_color) + text_la_LDFLAGS = -module -avoid-version -export-dynamic text_la_LIBADD = $(PLYMOUTH_LIBS) \ ../../libply/libply.la \ diff --git a/src/splash-plugins/text/plugin.c b/src/splash-plugins/text/plugin.c index 8fa553f..216e482 100644 --- a/src/splash-plugins/text/plugin.c +++ b/src/splash-plugins/text/plugin.c @@ -104,6 +104,16 @@ start_animation (ply_boot_splash_plugin_t *plugin) assert (plugin != NULL); assert (plugin->loop != NULL); + ply_window_set_color_hex_value (plugin->window, + PLY_WINDOW_COLOR_BROWN, + PLYMOUTH_BACKGROUND_END_COLOR); + ply_window_set_color_hex_value (plugin->window, + PLY_WINDOW_COLOR_BLUE, + PLYMOUTH_BACKGROUND_START_COLOR); + ply_window_set_color_hex_value (plugin->window, + PLY_WINDOW_COLOR_GREEN, + PLYMOUTH_BACKGROUND_COLOR); + ply_window_set_background_color (plugin->window, PLY_WINDOW_COLOR_BLUE); ply_window_clear_screen (plugin->window); ply_window_hide_text_cursor (plugin->window); -- cgit