From a0ae45b403adcddf277fd301487724d19270922b Mon Sep 17 00:00:00 2001 From: Aydin Hassan Date: Tue, 1 Dec 2020 19:39:19 +0100 Subject: [PATCH] Center menu --- src/Factory/MenuFactory.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Factory/MenuFactory.php b/src/Factory/MenuFactory.php index 3249018d..31f622cc 100644 --- a/src/Factory/MenuFactory.php +++ b/src/Factory/MenuFactory.php @@ -76,6 +76,7 @@ function (CliMenu $menu) use ($exerciseRenderer, $eventDispatcher, $exercise) { ->setExitButtonText('EXIT') ->setBackgroundColour($c->get('bgColour')) ->setForegroundColour($c->get('fgColour')) + ->setMarginAuto() ->setWidth(70) ->modifySelectableStyle(function (SelectableStyle $style) { $style