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.

29 lines
556 B

4 years ago
  1. <?php
  2. namespace App\Menus;
  3. use PhpSchool\CliMenu\Builder\CliMenuBuilder;
  4. /**
  5. *
  6. *
  7. *
  8. */
  9. class StylesFactory
  10. {
  11. /**
  12. * Adding default styles for menus
  13. *
  14. *
  15. * @param CliMenuBuilder $builder [description]
  16. */
  17. public function setMenuStyles(CliMenuBuilder $builder)
  18. {
  19. $builder->setWidth($builder->getTerminal()->getWidth());
  20. $builder->setBorderLeftWidth(4);
  21. $builder->setBorderColour('magenta');
  22. $builder->setMargin(2);
  23. $builder->setPadding(2, 4);
  24. return $builder;
  25. }
  26. }