Skip to content

Commit a500bcf

Browse files
authored
Fix colors (#60)
1 parent c573e1b commit a500bcf

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/NewCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,15 +287,15 @@ protected function validateArguments()
287287
*/
288288
protected function showStatamicTitleArt()
289289
{
290-
$this->output->write(PHP_EOL."\e[38;2;255;51;167m $$\ $$\ $$\
290+
$this->output->write(PHP_EOL."<fg=#FF269E> $$\ $$\ $$\
291291
$$ | $$ | \__|
292292
$$$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\$$$$\ $$\ $$$$$$$\
293293
$$ _____|\_$$ _| \____$$\\_$$ _| \____$$\ $$ _$$ _$$\ $$ |$$ _____|
294294
\$$$$$$\ $$ | $$$$$$$ | $$ | $$$$$$$ |$$ / $$ / $$ |$$ |$$ /
295295
\____$$\ $$ |$$\ $$ __$$ | $$ |$$\ $$ __$$ |$$ | $$ | $$ |$$ |$$ |
296296
$$$$$$$ | \\$$$$ |\\$$$$$$$ | \\$$$$ |\\$$$$$$$ |$$ | $$ | $$ |$$ |\\$$$$$$$\
297297
\_______/ \____/ \_______| \____/ \_______|\__| \__| \__|\__| \_______|
298-
\e[39m".PHP_EOL);
298+
</>".PHP_EOL);
299299

300300
return $this;
301301
}

src/Theme/Teal.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace Statamic\Cli\Theme;
44

5+
use Symfony\Component\Console\Terminal;
6+
57
trait Teal
68
{
79
public function cyan(string $text): string
@@ -11,6 +13,8 @@ public function cyan(string $text): string
1113

1214
public function teal(string $text): string
1315
{
14-
return "\e[38;2;1;215;176m{$text}\e[39m";
16+
$color = Terminal::getColorMode()->convertFromHexToAnsiColorCode('01D7B0');
17+
18+
return "\e[3{$color}m{$text}\e[39m";
1519
}
1620
}

0 commit comments

Comments
 (0)