class_docstr: QSpectrumAnalyzer colors dialog
code: def __init__(self, parent=None):
      # Initialize UI
      super().__init__(parent)
      self.setupUi(self)
  
      # Load settings
      settings = QtCore.QSettings()
      self.mainColorButton.setColor(
          str_to_color(settings.value("main_color", "255, 255, 0, 255"))
      )
      self.peakHoldMaxColorButton.setColor(
          str_to_color(
              settings.value("peak_hold_max_color", "255, 0, 0, 255")
          )
      )
      self.peakHoldMinColorButton.setColor(
          str_to_color(
              settings.value("peak_hold_min_color", "0, 0, 255, 255")
          )
      )
      self.averageColorButton.setColor(
          str_to_color(
              settings.value("average_color", "0, 255, 255, 255")
          )
      )
      self.persistenceColorButton.setColor(
          str_to_color(
              settings.value("persistence_color", "0, 255, 0, 255")
          )
      )
      self.baselineColorButton.setColor(
          str_to_color(
              settings.value("baseline_color", "255, 0, 255, 255")
          )
      )
  
file_path: qspectrumanalyzer/qspectrumanalyzer/colors.py
imports: from Qt import QtCore, QtWidgets
  from qspectrumanalyzer.utils import color_to_str, str_to_color
  from qspectrumanalyzer.ui_qspectrumanalyzer_colors import Ui_QSpectrumAnalyzerColors
label_desc: Use image node_id 1 to create a new QSpectrumAnalyzerColors object from inherited base classes: QtWidgets, Ui_QSpectrumAnalyzerColors with example: obj = QSpectrumAnalyzerColors(parent)