summaryrefslogtreecommitdiffhomepage
path: root/main
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-21 15:59:43 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-21 15:59:43 +0200
commite33941d79bb2ab6ac328b0ed142bc0360f8fe694 (patch)
tree237288f200e23a88c8f7d9d2549527526888c338 /main
parent361d35b800f7f3f217324104bc181ef4a49e10e1 (diff)
ui resizing
Diffstat (limited to 'main')
-rw-r--r--main/imgui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/imgui.cpp b/main/imgui.cpp
index 0a90a3a1..878eabcd 100644
--- a/main/imgui.cpp
+++ b/main/imgui.cpp
@@ -83,7 +83,7 @@ void app::draw_editor_pane(tile_type& type, float main_menu_height)
{
ImGui::SetNextWindowPos({0, main_menu_height+style.WindowPadding.y});
ImGui::SetNextFrameWantCaptureKeyboard(false);
- ImGui::SetNextWindowSize({450, windowSize()[1] - main_menu_height - style.WindowPadding.y});
+ ImGui::SetNextWindowSize({440, windowSize()[1] - main_menu_height - style.WindowPadding.y});
if (const auto flags = ImGuiWindowFlags_(ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoSavedSettings);
auto b = begin_window({}, flags))
{
@@ -118,7 +118,7 @@ void app::draw_editor_pane(tile_type& type, float main_menu_height)
push_style_var(ImGuiStyleVar_FrameBorderSize, 3),
push_style_color(ImGuiCol_Button, {1, 1, 1, 1}),
};
- constexpr std::size_t per_row = 8;
+ constexpr std::size_t per_row = 5;
for (std::size_t i = 0; i < N; i++)
{
if (i > 0 && i % per_row == 0)