Apart from mechanical actions, structural components in the construction industry may be subjected to a thermal gradient, causing (internally) restrained thermal expansion. These thermal loads can alter the mechanical response of components in a structural topology optimization procedure. Therefore, the influence of thermal loading should be considered in the sensitivity analysis to efficiently update the structural layout of material. In this paper, a density-based topology optimization procedure is developed for compliance minimization of structural components subjected to thermo-mechanical loads considering steady-state heat conduction and weak thermomechanical coupling. The adjoint method is employed to obtain the analytical sensitivities, taking into account the influence of the design-dependent temperature field and thermal properties. The proposed topology optimization procedure is demonstrated on the MBB problem, extended with thermal loading, to investigate the influence of the proposed sensitivities on the optimized results. Furthermore, the thermo-mechanical load ratio is quantitatively defined and its effect on the resulting topologies is studied. The results show that the thermo-mechanical load ratio significantly changes the topology of the optimized results. Finally, the topology optimization procedure is presented in an efficient 138-line MATLAB code and provided as supplementary material, serving as a basis for further research.