Skip to content

Commit

Permalink
Fix colors (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga authored Aug 14, 2023
1 parent c573e1b commit a500bcf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/NewCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,15 +287,15 @@ protected function validateArguments()
*/
protected function showStatamicTitleArt()
{
$this->output->write(PHP_EOL."\e[38;2;255;51;167m $$\ $$\ $$\
$this->output->write(PHP_EOL."<fg=#FF269E> $$\ $$\ $$\
$$ | $$ | \__|
$$$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\$$$$\ $$\ $$$$$$$\
$$ _____|\_$$ _| \____$$\\_$$ _| \____$$\ $$ _$$ _$$\ $$ |$$ _____|
\$$$$$$\ $$ | $$$$$$$ | $$ | $$$$$$$ |$$ / $$ / $$ |$$ |$$ /
\____$$\ $$ |$$\ $$ __$$ | $$ |$$\ $$ __$$ |$$ | $$ | $$ |$$ |$$ |
$$$$$$$ | \\$$$$ |\\$$$$$$$ | \\$$$$ |\\$$$$$$$ |$$ | $$ | $$ |$$ |\\$$$$$$$\
\_______/ \____/ \_______| \____/ \_______|\__| \__| \__|\__| \_______|
\e[39m".PHP_EOL);
</>".PHP_EOL);

return $this;
}
Expand Down
6 changes: 5 additions & 1 deletion src/Theme/Teal.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace Statamic\Cli\Theme;

use Symfony\Component\Console\Terminal;

trait Teal
{
public function cyan(string $text): string
Expand All @@ -11,6 +13,8 @@ public function cyan(string $text): string

public function teal(string $text): string
{
return "\e[38;2;1;215;176m{$text}\e[39m";
$color = Terminal::getColorMode()->convertFromHexToAnsiColorCode('01D7B0');

return "\e[3{$color}m{$text}\e[39m";
}
}

0 comments on commit a500bcf

Please sign in to comment.