Mercurial Hosting > editor
changeset 23:e4af9e024d63
work
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 09 Apr 2025 08:58:42 -0600 |
parents | b2d9b3836c2b |
children | da93a58e24aa |
files | editor.luan |
diffstat | 1 files changed, 16 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
diff -r b2d9b3836c2b -r e4af9e024d63 editor.luan --- a/editor.luan Tue Apr 08 23:03:22 2025 -0600 +++ b/editor.luan Wed Apr 09 08:58:42 2025 -0600 @@ -190,20 +190,23 @@ end local function make_find_dialog(window) - local dialog = new_dialog(window.frame) - local root = dialog.component - root.set_layout(new_box_layout(root,"y_axis")) - root.add_all{ - new_panel{ - layout = new_flow_layout("left") - --border = create_empty_border(8,8,8,8) - border = create_line_border(int_to_color(0)) + local dialog = new_dialog{ + owner_frame = window.frame + content_pane = new_panel{ + layout = function(this) return new_box_layout(this,"y_axis") end children = { - new_button{ - text = "Find Next" - } - new_button{ - text = "Find Previous" + new_panel{ + layout = new_flow_layout("left") + --border = create_empty_border(8,8,8,8) + border = create_line_border(int_to_color(0)) + children = { + new_button{ + text = "Find Next" + } + new_button{ + text = "Find Previous" + } + } } } }