File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -223,6 +223,13 @@ function graphite_main_window.draw_module(module)
223223 if with_menubar then
224224 if imgui .BeginMenuBar () then
225225 module .draw_menu ()
226+ local btn_width = autogui .button_size
227+ imgui .Dummy (imgui .GetContentRegionAvail ()- btn_width ,2 )
228+ if imgui .SimpleButton (
229+ imgui .font_icon (' window-close' ).. ' ##close'
230+ ) then
231+ module .visible = false
232+ end
226233 imgui .EndMenuBar ()
227234 end
228235 end
Original file line number Diff line number Diff line change 506506
507507function text_editor_gui .draw_window ()
508508 text_editor_gui .parse_errors ()
509- if imgui .SimpleButton (
510- imgui .font_icon (' window-close' ).. ' ##close'
511- ) then
512- text_editor_gui .visible = false
513- end
514- autogui .tooltip (' Hide editor' )
515- imgui .SameLine ()
516509 if imgui .SimpleButton (
517510 imgui .font_icon (' circle-play' )
518511 ) then
You can’t perform that action at this time.
0 commit comments