From f68527f418e80055671c37438275f68ba2ac619f Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Fri, 23 Sep 2022 16:50:20 +0200 Subject: [PATCH] Added config reading --- modules/Grid/Grid.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/Grid/Grid.cpp b/modules/Grid/Grid.cpp index 68b9b48..dad75d1 100644 --- a/modules/Grid/Grid.cpp +++ b/modules/Grid/Grid.cpp @@ -98,8 +98,11 @@ void Grid::setup(cairo_t* context, const cairo_rectangle_t& rect) { } void Grid::configure() { - // do something with _j["key"] - + _d = _j["dist"]; + _wait = _j["wait"]; + _fade = _j["fade"]; + _border = _j["border"]; + _new.bg = Color {_j["bg"]}; } int Grid::fps() const {