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.
 
 
 

33 lines
738 B

<?php
namespace App\Menus;
use PhpSchool\CliMenu\Builder\CliMenuBuilder;
/**
* Default Styles
*
* @author Björn Hase, Tentakelfabrik
* @license http://opensource.org/licenses/MIT The MIT License
* @link https://gitea.tentakelfabrik.de/Tentakelfabrik/mcp
*
*/
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;
}
}