Change: Use standard dimensions instead of custom widths.

This commit is contained in:
Peter Nelson
2022-09-27 23:40:16 +01:00
committed by PeterN
parent 9666e46739
commit 920e588334
8 changed files with 22 additions and 30 deletions

View File

@@ -1227,7 +1227,7 @@ void SmallMapWindow::RebuildColourIndexIfNecessary()
bool rtl = _current_text_dir == TD_RTL;
uint i = 0; // Row counter for industry legend.
uint row_height = FONT_HEIGHT_SMALL;
int padding = ScaleGUITrad(1);
int padding = WidgetDimensions::scaled.hsep_normal;
Rect origin = r.WithWidth(this->column_width, rtl).Shrink(WidgetDimensions::scaled.framerect).WithHeight(row_height);
Rect text = origin.Indent(this->legend_width + WidgetDimensions::scaled.hsep_normal, rtl);