aboutsummaryrefslogtreecommitdiff
path: root/src/bootstrap.cpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-06-23 17:05:43 +0200
committerHampusM <hampus@hampusmat.com>2022-06-23 18:24:48 +0200
commita570e494bca43c30d7ec91d293051c0c818509b5 (patch)
tree4eea8c16d1434893ca51b721c5498ece65c836aa /src/bootstrap.cpp
parentec5c7cbccc533bacab661e991e7011584d3bb47f (diff)
feat: add statusline mode styling
Diffstat (limited to 'src/bootstrap.cpp')
-rw-r--r--src/bootstrap.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bootstrap.cpp b/src/bootstrap.cpp
index 0b9d972..12f7369 100644
--- a/src/bootstrap.cpp
+++ b/src/bootstrap.cpp
@@ -79,6 +79,12 @@ auto bootstrap() noexcept -> yacppdic::DIContainer
return std::make_unique<Matrix<char>>(bounds);
});
+ di_container.bind<IMatrixFactory<ComponentElement>>().to_factory(
+ [](const Bounds &bounds)
+ {
+ return std::make_unique<Matrix<ComponentElement>>(bounds);
+ });
+
di_container.bind<IStatusLineFactory>().to_factory(
[&di_container](const Bounds &size)
{