Would solar panels produce energy if uniform temperature in the universe?
Solar panels work on the principle of photovoltaic effect. The only criteria for a voltage difference to be affected is that the light be incident on the solar panel. The energy of the incident light needs to be around that of the band-gap.
According to the question if both sun and the solar panel were of the same temperature, a solar panel on which light rays are incident would indeed generate a voltage. The band gap on the other hand depends on the temperature of the panel. Higher the temperature, smaller the band gap. Therefore, if the light incident on the panel is energetically close enough to the band gap (which depends on the temperature) the panel will generate a voltage difference.