Skip to content

Commit 9178af9

Browse files
author
Jakub Václav Flasar
committed
Disable client-side decorations for project hub window.
1 parent 4844ade commit 9178af9

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

Sources/Overload/OvEditor/src/OvEditor/Core/ProjectHub.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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);

Sources/Overload/OvUI/include/OvUI/Panels/PanelWindow.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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;

Sources/Overload/OvUI/include/OvUI/Settings/PanelWindowSettings.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
}

Sources/Overload/OvUI/src/OvUI/Panels/PanelWindow.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)