Skip to content

Commit fce3b91

Browse files
committed
Add default window sizes
1 parent 71b68fa commit fce3b91

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/gui/FileChooser.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ bool FileChooser::Draw()
9696

9797
ImGui::OpenPopup(_title.c_str());
9898

99+
ImGui::SetNextWindowSize(ImVec2(800, 600), ImGuiCond_FirstUseEver);
99100
if (ImGui::BeginPopupModal(_title.c_str(), &_visible, ImGuiWindowFlags_NoCollapse))
100101
{
101102
DrawNavButtons();

src/gui/HelpWindow.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ void HelpWindow::Draw()
3131
constexpr ImGuiTabBarFlags tabBarFlags = ImGuiTabBarFlags_None;
3232
constexpr ImGuiTableFlags tableFlags = ImGuiTableFlags_Borders | ImGuiTableFlags_RowBg;
3333

34+
ImGui::SetNextWindowSize(ImVec2(1000, 600), ImGuiCond_FirstUseEver);
3435
if (ImGui::Begin("Help", &_visible, windowFlags))
3536
{
3637
if (ImGui::BeginTabBar("Help Topics", tabBarFlags))

src/gui/SettingsWindow.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ void SettingsWindow::Draw()
4444
}
4545
windowId.append("###Settings");
4646

47+
ImGui::SetNextWindowSize(ImVec2(1050, 550), ImGuiCond_FirstUseEver);
4748
if (ImGui::Begin(windowId.c_str(), &_visible, windowFlags))
4849
{
4950
if (ImGui::BeginTabBar("projectM Settings", tabBarFlags))

0 commit comments

Comments
 (0)