OpenSource CLI-App to install and handle stuff related to Web-Server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

30 lines
556 B

<?php
namespace App\Menus;
use PhpSchool\CliMenu\Builder\CliMenuBuilder;
/**
*
*
*
*/
class StylesFactory
{
/**
* Adding default styles for menus
*
*
* @param CliMenuBuilder $builder [description]
*/
public function setMenuStyles(CliMenuBuilder $builder)
{
$builder->setWidth($builder->getTerminal()->getWidth());
$builder->setBorderLeftWidth(4);
$builder->setBorderColour('magenta');
$builder->setMargin(2);
$builder->setPadding(2, 4);
return $builder;
}
}