Jelajahi Sumber

Style: made scrollbars rounded by default. Because nice. (#246)

ocornut 10 tahun lalu
induk
melakukan
e68d3c614e
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      imgui.cpp

+ 1 - 1
imgui.cpp

@@ -617,7 +617,7 @@ ImGuiStyle::ImGuiStyle()
     IndentSpacing           = 22.0f;            // Horizontal spacing when e.g. entering a tree node
     ColumnsMinSpacing       = 6.0f;             // Minimum horizontal spacing between two columns
     ScrollbarSize           = 16.0f;            // Width of the vertical scrollbar, Height of the horizontal scrollbar
-    ScrollbarRounding       = 0.0f;             // Radius of grab corners rounding for scrollbar
+    ScrollbarRounding       = 9.0f;             // Radius of grab corners rounding for scrollbar
     GrabMinSize             = 10.0f;            // Minimum width/height of a grab box for slider/scrollbar
     GrabRounding            = 0.0f;             // Radius of grabs corners rounding. Set to 0.0f to have rectangular slider grabs.
     DisplayWindowPadding    = ImVec2(22,22);    // Window positions are clamped to be visible within the display area by at least this amount. Only covers regular windows.