TUPLE: style-stream < filter-writer style ;
INSTANCE: style-stream output-stream
-DEFER: inherit-style
-
<PRIVATE
: nested-style ( style style-stream -- style stream )
- [ style>> inherit-style ] [ stream>> ] bi ; inline
+ [ style>> swap assoc-union ] [ stream>> ] bi ; inline
PRIVATE>
{ table-border T{ rgba f 0.8 0.8 0.8 1.0 } }
}
-<PRIVATE
-
-: inherit? ( format -- ? )
- HS{
- foreground background font-name font-size font-style
- } in? ;
-
-PRIVATE>
-
-: inherit-style ( child parent -- child' )
- [ drop inherit? ] assoc-filter swap assoc-union! ;
-
! Input history
TUPLE: input string ;