make color of separators used in alternative user interface customizable

This commit is contained in:
Andrzej Rybczak
2009-09-06 12:15:39 +02:00
parent 7079bf0584
commit 3aa0f6a03b
5 changed files with 14 additions and 2 deletions

View File

@@ -269,6 +269,7 @@ void DefaultConfiguration(ncmpcpp_config &conf)
conf.main_highlight_color = conf.main_color;
conf.progressbar_color = clDefault;
conf.statusbar_color = clDefault;
conf.alternative_ui_separator_color = clBlack;
conf.active_column_color = clRed;
conf.window_border = brGreen;
conf.active_window_border = brRed;
@@ -884,6 +885,11 @@ void ReadConfiguration(ncmpcpp_config &conf)
if (!v.empty())
conf.statusbar_color = IntoColor(v);
}
else if (cl.find("alternative_ui_separator_color") != std::string::npos)
{
if (!v.empty())
conf.alternative_ui_separator_color = IntoColor(v);
}
else if (cl.find("active_column_color") != std::string::npos)
{
if (!v.empty())