Skip to content

Commit 6127fa4

Browse files
committed
feat: reduce perceived density by increasing spacings
1 parent 07fd276 commit 6127fa4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

skia/src/style.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ void SetupImGuiStyle_ImZero() {
44

55
style.Alpha = 1.0f;
66
style.DisabledAlpha = 0.6000000238418579f;
7-
style.WindowPadding = ImVec2(6.0f, 3.0f);
7+
style.WindowPadding = ImVec2(9.0f, 6.0f);
88
//style.WindowRounding = 6.0f;
99
style.WindowRounding = 3.0f;
1010
style.WindowBorderSize = 1.0f;
@@ -16,12 +16,12 @@ void SetupImGuiStyle_ImZero() {
1616
style.ChildBorderSize = 1.0f;
1717
style.PopupRounding = 0.0f;
1818
style.PopupBorderSize = 1.0f;
19-
style.FramePadding = ImVec2(5.0f, 1.0f);
19+
style.FramePadding = ImVec2(9.0f, 3.0f);
2020
style.FrameRounding = 3.0f;
2121
style.FrameBorderSize = 1.0f;
22-
style.ItemSpacing = ImVec2(8.0f, 4.0f);
23-
style.ItemInnerSpacing = ImVec2(4.0f, 4.0f);
24-
style.CellPadding = ImVec2(4.0f, 2.0f);
22+
style.ItemSpacing = ImVec2(12.0f, 6.0f);
23+
style.ItemInnerSpacing = ImVec2(6.0f, 4.0f);
24+
style.CellPadding = ImVec2(4.0f, 3.0f);
2525
style.IndentSpacing = 21.0f;
2626
style.ColumnsMinSpacing = 6.0f;
2727
style.ScrollbarSize = 13.0f;
@@ -45,7 +45,7 @@ void SetupImGuiStyle_ImZero() {
4545
style.Colors[ImGuiCol_FrameBg] = ImVec4(0.3137255012989044f, 0.2862745225429535f, 0.2705882489681244f, 1.0f);
4646
style.Colors[ImGuiCol_FrameBgHovered] = ImVec4(0.4000000059604645f, 0.3607843220233917f, 0.3294117748737335f, 1.0f);
4747
style.Colors[ImGuiCol_FrameBgActive] = ImVec4(0.4862745106220245f, 0.43529412150383f, 0.3921568691730499f, 1.0f);
48-
//
48+
4949
//style.Colors[ImGuiCol_TitleBg] = ImVec4(0.2352941185235977f, 0.2196078449487686f, 0.2117647081613541f, 1.0f);
5050
//style.Colors[ImGuiCol_TitleBgActive] = ImVec4(0.3137255012989044f, 0.2862745225429535f, 0.2705882489681244f, 1.0f);
5151
//style.Colors[ImGuiCol_TitleBgCollapsed] = ImVec4(0.2352941185235977f, 0.2196078449487686f, 0.2117647081613541f, 1.0f);

0 commit comments

Comments
 (0)