Isolated attosecond pulses (IAPs) can be readily generated via high-order harmonic generation driven by an ultrashort laser pulse. Here, it is shown that the best way to obtain the ultrashort waveform for producing a short and intense IAP in the soft x rays is to optimize the three-color (TC) laser pulse consisting of the fundamental field and its second and third harmonic fields. To calibrate it, another way of constructing the ultrashort waveform directly in time using a truncated basis set of B-spline functions is first proposed. The calibration waveform (CW) contains more frequency components up to the eighth harmonic order. It is found that the IAP by the TC waveform has a shorter duration after macroscopic propagation in a nonlinear gas medium compared to that by the CW field. It is uncovered that the CW field is additionally modified by the higher-order frequency components during propagation, dominated by the neutral atom dispersion. The effect of phase jitter in the TC waveform and the extension of the TC scheme into higher photon energies are also discussed. Currently, precise control of TC laser waveform synthesis is already achievable in the labs, thus paving an effective way for generating a useful attosecond light source in the soft x rays.