Tune icons, different icons for true/false

This commit is contained in:
Chris 2024-10-03 17:00:51 +02:00
parent 0abca3d3a8
commit 466406733d

View File

@ -22,9 +22,10 @@ class TreeList implements Countable
private const TREE_INDENT = " ";
private const ICON_NUMERIC = "\u{f89f}";
private const ICON_STRING = "\u{f475}";
private const ICON_BOOL = "\u{f657}";
private const ICON_NULL = "\u{2400}";
private const ICON_STRING = "\u{f10e}";
private const ICON_BOOL_TRUE = "\u{f657}";
private const ICON_BOOL_FALSE = "\u{f630}";
private const ICON_NULL = "\u{f141}";
public function __construct(private Tree $tree)
{
@ -196,7 +197,7 @@ class TreeList implements Countable
'string' => self::ICON_STRING,
'integer' => self::ICON_NUMERIC,
'double' => self::ICON_NUMERIC,
'boolean' => self::ICON_BOOL,
'boolean' => ($entry->node->value)?self::ICON_BOOL_TRUE:self::ICON_BOOL_FALSE,
'NULL' => self::ICON_NULL,
default => self::ICON_STRING,
}." ";