diff --git a/juci/config.json b/juci/config.json index bcb8a45..7c0b9d1 100644 --- a/juci/config.json +++ b/juci/config.json @@ -1,7 +1,7 @@ { "source": { "colors": { - "text_color": "#333333", + "text_color": "black", "string": "#CC0000", "namespace_ref": "#990099", "type": "#0066FF", diff --git a/juci/source.cc b/juci/source.cc index 4069891..847b2cd 100644 --- a/juci/source.cc +++ b/juci/source.cc @@ -49,12 +49,13 @@ string Source::View::GetLineBeforeInsert() { return line; } -// Source::View::ApplyTheme() +// Source::View::ApplyConfig // Applies theme in textview void Source::View::ApplyConfig(const Source::Config &config) { override_font(Pango::FontDescription(config.font)); set_show_line_numbers(config.show_line_numbers); set_highlight_current_line(config.highlight_current_line); + this->override_background_color(Gdk::RGBA(config.background)); for (auto &item : config.tagtable()) { get_buffer()->create_tag(item.first)->property_foreground() = item.second; }