Skip to content

Commit

Permalink
Change: use spaces instead of hsep in timetable GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
WenSimEHRP committed Jan 2, 2025
1 parent ec7cf5a commit d885465
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lang/extra/english.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1874,8 +1874,8 @@ STR_TIMETABLE_FILL_TIMETABLE_SUGGESTION_2 :{BLACK}(Alterna

STR_TIMETABLE_WARNINGS_OMITTED :{BLACK}{NUM} further warnings omitted...

STR_TIMETABLE_ARRIVAL_ABBREVIATION :A:
STR_TIMETABLE_DEPARTURE_ABBREVIATION :D:
STR_TIMETABLE_ARRIVAL_ABBREVIATION :A:{SPACE}{SPACE}
STR_TIMETABLE_DEPARTURE_ABBREVIATION :D:{SPACE}{SPACE}

STR_DATE_MINUTES_MINUTE_TOOLTIP :{BLACK}Select minute
STR_DATE_MINUTES_HOUR_TOOLTIP :{BLACK}Select hour
Expand Down
2 changes: 1 addition & 1 deletion src/timetable_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ struct TimetableWindow : GeneralVehicleWindow {
}
this->deparr_time_width = GetStringBoundingBox(STR_JUST_TT_TIME).width + 4;
this->deparr_abbr_width = std::max(GetStringBoundingBox(STR_TIMETABLE_ARRIVAL_ABBREVIATION).width, GetStringBoundingBox(STR_TIMETABLE_DEPARTURE_ABBREVIATION).width);
size.width = this->deparr_abbr_width + WidgetDimensions::scaled.hsep_wide + this->deparr_time_width + padding.width;
size.width = this->deparr_abbr_width + this->deparr_time_width + padding.width;
[[fallthrough]];

case WID_VT_ARRIVAL_DEPARTURE_SELECTION:
Expand Down

0 comments on commit d885465

Please sign in to comment.