File tree Expand file tree Collapse file tree
OvEditor/src/OvEditor/Core Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,9 +37,8 @@ class ProjectHubPanel : public OvUI::Panels::PanelWindow
3737 m_projectName (p_projectName)
3838 {
3939 resizable = false ;
40- closable = true ;
41- collapsable = false ;
4240 movable = false ;
41+ titleBar = false ;
4342
4443 std::filesystem::create_directories (std::string (getenv (" APPDATA" )) + " \\ OverloadTech\\ OvEditor\\ " );
4544
@@ -285,7 +284,7 @@ void OvEditor::Core::ProjectHub::SetupContext()
285284 windowSettings.height = 580 ;
286285 windowSettings.maximized = false ;
287286 windowSettings.resizable = false ;
288- windowSettings.decorated = false ;
287+ windowSettings.decorated = true ;
289288
290289 /* Window creation */
291290 m_device = std::make_unique<OvWindowing::Context::Device>(deviceSettings);
Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ namespace OvUI::Panels
9696 bool bringToFrontOnFocus = true ;
9797 bool collapsable = false ;
9898 bool allowInputs = true ;
99+ bool titleBar = true ;
99100
100101 OvTools::Eventing::Event<> OpenEvent;
101102 OvTools::Eventing::Event<> CloseEvent;
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ namespace OvUI::Settings
2727 bool bringToFrontOnFocus = true ;
2828 bool collapsable = false ;
2929 bool allowInputs = true ;
30+ bool titleBar = true ;
3031 bool autoSize = false ;
3132 };
3233}
Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ void OvUI::Panels::PanelWindow::_Draw_Impl()
104104 if (!collapsable) windowFlags |= ImGuiWindowFlags_NoCollapse;
105105 if (!allowInputs) windowFlags |= ImGuiWindowFlags_NoInputs;
106106 if (!scrollable) windowFlags |= ImGuiWindowFlags_NoScrollWithMouse | ImGuiWindowFlags_NoScrollbar;
107+ if (!titleBar) windowFlags |= ImGuiWindowFlags_NoTitleBar;
107108
108109 ImVec2 minSizeConstraint = Internal::Converter::ToImVec2 (minSize);
109110 ImVec2 maxSizeConstraint = Internal::Converter::ToImVec2 (maxSize);
You can’t perform that action at this time.
0 commit comments