Skip to content

Commit b84a6c8

Browse files
committed
Make progress bar position depend on font size of line above
1 parent 56cf609 commit b84a6c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

appOPHD/UI/Reports/FactoryReport.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ void FactoryReport::drawProductPane(Renderer& renderer)
505505
renderer.drawText(fontBigBold, "Progress", progressTextPosition, constants::PrimaryTextColor);
506506
renderer.drawText(fontMedium, "Building " + ProductCatalogue::get(selectedFactory->productType()).Name, buildingProductNamePosition, constants::PrimaryTextColor);
507507

508-
const auto progressBarPosition = buildingProductNamePosition + NAS2D::Vector{0, 20};
508+
const auto progressBarPosition = buildingProductNamePosition + NAS2D::Vector{0, fontMedium.height()};
509509
const auto progressBarSize = NAS2D::Vector{mRect.size.x - originRight.x - 10, 30};
510510
drawProgressBar(
511511
selectedFactory->productionTurnsCompleted(),

0 commit comments

Comments
 (0)