Hi RC,
what you're looking for is in the file pyqtgraph\graphicsItems\GradientEditorItem.py
The default gradients get defined at the top of the file, the menu is created in the constructor of the GradientEditorItem(). You can add your own by adding a list with (position, RGBA-value) tuples there.
Cheers
Sebastian