io.styles: change style-stream to inherit all styles by default.
parent
dbfca14c8a
commit
2b2eb4be59
|
@ -61,12 +61,10 @@ C: <ignore-close-stream> ignore-close-stream
|
|||
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>
|
||||
|
||||
|
@ -149,18 +147,6 @@ CONSTANT: standard-table-style
|
|||
{ 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 ;
|
||||
|
||||
|
|
Loading…
Reference in New Issue