Skip to content

Commit

Permalink
Merge branch 'develop' into adv-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Jan 22, 2025
2 parents eaa33ac + 7bf2eca commit db5fc2f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions library/lua/gui/widgets/text_area/text_area_content.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ function TextAreaContent:init()
self.cursor = nil

self.main_pen = dfhack.pen.parse({
fg=self.text_pen,
bg=COLOR_RESET,
bold=true
})
self.sel_pen = dfhack.pen.parse({
fg=self.text_pen,
bg=self.pen_selection,
bold=true
})
}, self.text_pen)

if type(self.pen_selection) == 'number' then
self.sel_pen = dfhack.pen.parse(self.main_pen, nil, self.pen_selection)
else
self.sel_pen = dfhack.pen.parse(self.pen_selection)
end

local TextWrapper = self.one_line_mode and OneLineWrappedText or WrappedText
self.wrapped_text = TextWrapper{
Expand Down Expand Up @@ -281,7 +281,7 @@ function TextAreaContent:onRenderBody(dc)
:string(line)
end

dc:pen({fg=self.text_pen, bg=COLOR_RESET})
dc:pen({bg=COLOR_RESET}, self.text_pen)
end

if self.debug then
Expand Down

0 comments on commit db5fc2f

Please sign in to comment.