From 6f44953bab04557921aa18c423296668575300a0 Mon Sep 17 00:00:00 2001 From: Plom Heller Date: Wed, 16 Sep 2026 18:31:54 +0200 Subject: [PATCH] Make default colors display more expressive than raw one. --- src/bricksplom/misc.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/bricksplom/misc.py b/src/bricksplom/misc.py index 7cce3cf..9229916 100644 --- a/src/bricksplom/misc.py +++ b/src/bricksplom/misc.py @@ -264,6 +264,14 @@ class BrickColor(Textfiled, Lookupable): tuple[Self, ...]]]]: return super().sorters() | {TOK_SORT_BOX: cls._by_box_sorter('color')} + def show( + self + ) -> str: + text = f'{self.id_indented()} ' + text += 'solid' if self.solid else 'trans' + text += f' {self.wavelength}' + return text + def raw( self ) -> str: -- 2.30.2