From 82c63c49134a6fca91d908792438e6284dc4cebf Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 27 Dec 2008 13:06:26 +0000 Subject: Fix text color configuration --- src/ui/ui.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/ui/ui.cc') diff --git a/src/ui/ui.cc b/src/ui/ui.cc index b06e29b..de32db4 100644 --- a/src/ui/ui.cc +++ b/src/ui/ui.cc @@ -94,6 +94,7 @@ void func_ui(std::string const &args) global_ui->list(); } else if (command.compare("restart") == 0) { global_ui->load(); + global_ui->apply_render_options(); } else { help(); } @@ -370,15 +371,19 @@ void UI::load() } } else if (ini.in_section("text")) { - } else if (ini.got_key_color("bold", color)) { + + if (ini.got_key_color("bold", color)) { ui_palette->set_bold(color); + } else if (ini.got_key_color("fancy", color)) { ui_palette->set_fancy(color); + } else if (ini.got_key_color("warning", color)) { ui_palette->set_warning(color); + } else if (ini.got_key_color("error", color)) { ui_palette->set_error(color); - continue; + } } } } @@ -416,6 +421,7 @@ void UI::load() void UI::apply_render_options() { + con_debug << " initializing text colors" << std::endl; // apply palette colors paint::assign_color('N', palette()->text()); paint::assign_color('D', palette()->debug()); -- cgit v1.2.3