def METHOD_NAME(self):
    if self.state:
        styleStr = ""
        if self.pressBackColor != 'default':
            styleStr = "background-color: " + self.pressBackColor + "; "
        if self.pressFontColor:
            styleStr += "color: " + self.pressFontColor + "; "
        self.setStyleSheet(styleStr)
    else:
        styleStr = ""
        if self.relBackColor != 'default':
            styleStr = "background-color: " + self.relBackColor + "; "
        if self.relFontColor:
            styleStr += "color: " + self.relFontColor + "; "
        self.setStyleSheet(styleStr)