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 ;
|
TUPLE: style-stream < filter-writer style ;
|
||||||
INSTANCE: style-stream output-stream
|
INSTANCE: style-stream output-stream
|
||||||
|
|
||||||
DEFER: inherit-style
|
|
||||||
|
|
||||||
<PRIVATE
|
<PRIVATE
|
||||||
|
|
||||||
: nested-style ( style style-stream -- style stream )
|
: nested-style ( style style-stream -- style stream )
|
||||||
[ style>> inherit-style ] [ stream>> ] bi ; inline
|
[ style>> swap assoc-union ] [ stream>> ] bi ; inline
|
||||||
|
|
||||||
PRIVATE>
|
PRIVATE>
|
||||||
|
|
||||||
|
@ -149,18 +147,6 @@ CONSTANT: standard-table-style
|
||||||
{ table-border T{ rgba f 0.8 0.8 0.8 1.0 } }
|
{ 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
|
! Input history
|
||||||
TUPLE: input string ;
|
TUPLE: input string ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue