diff --git a/src/graph.cpp b/src/graph.cpp index ce47a41..7ac5239 100644 --- a/src/graph.cpp +++ b/src/graph.cpp @@ -33,8 +33,7 @@ bool Graph::on_draw(const Cairo::RefPtr &cr) { graph_height = height - graph_y_start - scale_offset; // Grab text color from theme - auto sc = this->get_style_context(); - text_color = sc->get_color(); + text_color = this->get_style_context()->get_color(); // Draw it draw_title(cr);