r13736 tlsa - /trunk/netsurf/desktop/tree.c

netsurf at semichrome.net netsurf at semichrome.net
Tue Mar 27 11:34:38 BST 2012


Author: tlsa
Date: Tue Mar 27 05:34:38 2012
New Revision: 13736

URL: http://source.netsurf-browser.org?rev=13736&view=rev
Log:
Use gui_ interface to get system colours, rather than nosoption_.

Modified:
    trunk/netsurf/desktop/tree.c

Modified: trunk/netsurf/desktop/tree.c
URL: http://source.netsurf-browser.org/trunk/netsurf/desktop/tree.c?rev=13736&r1=13735&r2=13736&view=diff
==============================================================================
--- trunk/netsurf/desktop/tree.c (original)
+++ trunk/netsurf/desktop/tree.c Tue Mar 27 05:34:38 2012
@@ -187,38 +187,38 @@
 {
 	/* Background colour */
 	plot_style_fill_tree_background.fill_colour =
-			nsoption_colour(sys_colour_Window);
+			gui_system_colour_char("Window");
 
 	/* Selection background colour */
 	plot_style_fill_tree_selected.fill_colour =
-			nsoption_colour(sys_colour_Highlight);
+			gui_system_colour_char("Highlight");
 
 	/* Furniture line colour */
 	plot_style_stroke_tree_furniture.stroke_colour = blend_colour(
-			nsoption_colour(sys_colour_Window), 
-			nsoption_colour(sys_colour_WindowText));
+			gui_system_colour_char("Window"), 
+			gui_system_colour_char("WindowText"));
 
 	/* Furniture fill colour */
 	plot_style_fill_tree_furniture.fill_colour =
-			nsoption_colour(sys_colour_Window);
+			gui_system_colour_char("Window");
 
 	/* Text colour */
-	plot_fstyle.foreground = nsoption_colour(sys_colour_WindowText);
-	plot_fstyle.background = nsoption_colour(sys_colour_Window);
+	plot_fstyle.foreground = gui_system_colour_char("WindowText");
+	plot_fstyle.background = gui_system_colour_char("Window");
 	plot_fstyle_def_folder.foreground =
-			nsoption_colour(sys_colour_InfoText);
+			gui_system_colour_char("InfoText");
 	plot_fstyle_def_folder.background =
-			nsoption_colour(sys_colour_Window);
+			gui_system_colour_char("Window");
 
 	/* Selected text colour */
 	plot_fstyle_selected.foreground =
-			nsoption_colour(sys_colour_HighlightText);
+			gui_system_colour_char("HighlightText");
 	plot_fstyle_selected.background =
-			nsoption_colour(sys_colour_Highlight);
+			gui_system_colour_char("Highlight");
 	plot_fstyle_selected_def_folder.foreground =
-			nsoption_colour(sys_colour_HighlightText);
+			gui_system_colour_char("HighlightText");
 	plot_fstyle_selected_def_folder.background =
-			nsoption_colour(sys_colour_Highlight);
+			gui_system_colour_char("Highlight");
 }
 
 




More information about the netsurf-commits mailing list