def savedColorSet( self ):
        """
        Returns the current colors as a saved color set.
        
        :return     <XColorSet> || None
        """
        colorSet = self._colorSet
        if ( not colorSet ):
            return None
        
        labels = colorSet.colorGroups()
        for i in range( self.topLevelItemCount() ):
            item = self.topLevelItem(i)
            colorName = item.name()
            for i, color in enumerate(item.colors()):
                colorSet.setColor(colorName, color, labels[i])
        
        return colorSet
def savedColorSet ( self ) : colorSet = self . _colorSet if ( not colorSet ) : return None labels = colorSet . colorGroups ( ) for i in range ( self . topLevelItemCount ( ) ) : item = self . topLevelItem ( i ) colorName = item . name ( ) for i , color in enumerate ( item . colors ( ) ) : colorSet . setColor ( colorName , color , labels [ i ] ) return colorSet
Returns the current colors as a saved color set.
        
        :return     <XColorSet> || None