Skip to content

Commit 9c421ff

Browse files
committed
Increase the padding and spacing in imgui dialogs
1 parent 7863569 commit 9c421ff

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/ui_imgui.cc

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@
2121
#include <SDL_opengl.h>
2222
#include <SDL_syswm.h>
2323

24-
#include "imgui.h"
25-
#include "imgui_impl_opengl3.h"
26-
#include "imgui_internal.h"
27-
#include "imgui_stdlib.h"
28-
2924
#include "ui_imgui_impl_tms.hh"
3025

3126
#include <cstdio>
@@ -153,16 +148,12 @@ static void principia_style() {
153148
ImVec4* colors = style->Colors;
154149

155150
//Rounding
151+
style->FramePadding = ImVec2(10, 5);
152+
style->ItemSpacing = ImVec2(8, 6);
156153
style->FrameRounding = style->GrabRounding = 2.3f;
157154
style->WindowRounding = style->PopupRounding = style->ChildRounding = 3.0f;
158155

159156
//style->FrameBorderSize = .5;
160-
161-
//TODO style
162-
//colors[ImGuiCol_WindowBg] = rgba(0xfdfdfdff);
163-
//colors[ImGuiCol_ScrollbarBg] = rgba(0x767676ff);
164-
//colors[ImGuiCol_ScrollbarGrab] = rgba(0x767676ff);
165-
//colors[ImGuiCol_ScrollbarGrabActive] = rgba(0xb1b1b1);
166157
}
167158

168159
static bool init_ready = false;

0 commit comments

Comments
 (0)