ENH use plain text function

This commit is contained in:
Nathan Dwarshuis 2021-07-10 19:28:49 -04:00
parent a7db545cd3
commit b057d98cdd
2 changed files with 4 additions and 6 deletions

2
core

@ -1 +1 @@
Subproject commit 9a9a86cdacf0cbbcc37eb2db908ec4ade78d3e99 Subproject commit fe7f073acd35fea54ecba747dd6d0bff708143a0

View File

@ -44,8 +44,7 @@ M.right_text_style = _G_Widget_.text_style(
) )
local _bare_text = function(pt, text, style) local _bare_text = function(pt, text, style)
local fmt = _G_Widget_.text_format(false, false) return _G_Widget_.plainText(pt, text, style)
return _G_Widget_.Text(pt, text, style, fmt)
end end
local _left_text = function(pt, text) local _left_text = function(pt, text)
@ -77,7 +76,7 @@ M.Header = function(x, y, w, s)
-- -- slant = HEADER_FONT_SLANT, -- -- slant = HEADER_FONT_SLANT,
-- -- weight = HEADER_FONT_WEIGHT -- -- weight = HEADER_FONT_WEIGHT
-- }, -- },
text = _G_Widget_.Text( text = _G_Widget_.plainText(
_G_Widget_.make_point(x, y), _G_Widget_.make_point(x, y),
s, s,
_G_Widget_.text_style( _G_Widget_.text_style(
@ -85,8 +84,7 @@ M.Header = function(x, y, w, s)
_G_Patterns_.HEADER_FG, _G_Patterns_.HEADER_FG,
'left', 'left',
'top' 'top'
), )
_G_Widget_.text_format(false, false)
), ),
bottom_y = bottom_y, bottom_y = bottom_y,
-- underline = _G_Widget_.Line{ -- underline = _G_Widget_.Line{