Skip to content

Commit

Permalink
Merge pull request #1327 from wiktor-obrebski/refactor/text-area-to-w…
Browse files Browse the repository at this point in the history
…idgets

Refactor `gui/journal` text editor to dedicated `TextArea` widget
  • Loading branch information
myk002 authored Nov 28, 2024
2 parents bbad80a + df6b940 commit d61fc69
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3,434 deletions.
3 changes: 1 addition & 2 deletions gui/journal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ local gui = require 'gui'
local widgets = require 'gui.widgets'
local utils = require 'utils'
local json = require 'json'
local text_editor = reqscript('internal/journal/text_editor')
local shifter = reqscript('internal/journal/shifter')
local table_of_contents = reqscript('internal/journal/table_of_contents')

Expand Down Expand Up @@ -113,7 +112,7 @@ function JournalWindow:init()
interior_b=true,
frame_style_t=false,
},
text_editor.TextEditor{
widgets.TextArea{
view_id='journal_editor',
frame={t=1, b=3, l=25, r=0},
resize_min={w=30, h=10},
Expand Down
Loading

0 comments on commit d61fc69

Please sign in to comment.