def reset_color_picker(modal_open, font_color):
    """
    Reset the color-picker to white font color after closing the modal
    component.

    Parameters
    ----------
    modal_open : bool
        A boolean that describes if the modal component is open or not
    font_color : dict of { 'hex': str,
                               'rgb': dict of { 'rgb' : 'r': int,
                                                        'g': int,
                                                        'b': int,
                                                        'a': int
                                              }
                         }
        The hex and rgb value of the selected font color

    Returns
    -------
    dict of { 'rgb': dict of { 'rgb' : 'r': int,
                                       'g': int,
                                       'b': int
                             }
            }
        The rgb value of the selected font color
    """
    # The modal window is closed so reset the font color.
    if not modal_open:
        return dict(rgb=dict(r=255, g=255, b=255))

    # The modal window is open so return the current font color.
    return font_color