Skip to content

Commit

Permalink
Refactor gui/journal text editor to dedicated TextArea widget
Browse files Browse the repository at this point in the history
The widget is now stored in `core`, so its not visible in this PR
  • Loading branch information
wiktor-obrebski committed Oct 8, 2024
1 parent 036ddb3 commit 2c31993
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3,433 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 2c31993

Please sign in to comment.