ui.gadgets.panes: simplify <styled-label>.
parent
69d6f7ccfb
commit
a4b6397dc8
|
@ -338,14 +338,12 @@ M: pane-stream stream-write-table
|
|||
swap " " <word-break-gadget> apply-character-style add-gadget drop ;
|
||||
|
||||
: <styled-label> ( style text -- gadget )
|
||||
[
|
||||
<label>
|
||||
apply-font-style
|
||||
apply-background-style
|
||||
apply-image-style
|
||||
] keep [ blank? ] all? [
|
||||
apply-presentation-style
|
||||
] unless nip ;
|
||||
nip ;
|
||||
|
||||
: pane-text ( string style gadget -- )
|
||||
[ swap <styled-label> ] [ swap add-gadget drop ] bi* ;
|
||||
|
|
Loading…
Reference in New Issue