From 8fabc6119c524b7190c9e4454c00ccbb7db5a874 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 27 Mar 2012 10:34:38 +0000 Subject: Use gui_ interface to get system colours, rather than nosoption_. svn path=/trunk/netsurf/; revision=13736 --- desktop/tree.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/desktop/tree.c b/desktop/tree.c index 8bb066630..c52dc0723 100644 --- a/desktop/tree.c +++ b/desktop/tree.c @@ -187,38 +187,38 @@ void tree_setup_colours(void) { /* 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"); } -- cgit v1.2.3