Adjust scroll bar padding.

This commit is contained in:
Skyth 2024-11-18 16:16:04 +03:00
parent db6f54c9f7
commit 4f1038489c

View file

@ -345,7 +345,7 @@ static void DrawCategories()
ResetGradient(); ResetGradient();
} }
drawList->PushClipRect({ clipRectMin.x, clipRectMin.y + gridSize * 6.0f }, { clipRectMax.x - gridSize * 2.0f, clipRectMax.y }); drawList->PushClipRect({ clipRectMin.x, clipRectMin.y + gridSize * 6.0f }, { clipRectMax.x - gridSize, clipRectMax.y });
} }
template<typename T> template<typename T>
@ -553,8 +553,8 @@ static void DrawConfigOptions()
float minY = offsetRatio * totalHeight + clipRectMin.y; float minY = offsetRatio * totalHeight + clipRectMin.y;
drawList->AddRectFilled( drawList->AddRectFilled(
{ clipRectMax.x + gridSize, minY }, { clipRectMax.x, minY },
{ clipRectMax.x + gridSize * 2.0f, minY + totalHeight * heightRatio }, { clipRectMax.x + gridSize, minY + totalHeight * heightRatio },
IM_COL32(0, 128, 0, 255) IM_COL32(0, 128, 0, 255)
); );
} }