tools/style_variable_generator/css_generator.py
def CSSColorVar(self, model_name, color):
        '''Returns the CSS color representation given a color name and color'''
        if color.var:
            return 'var(%s)' % self.ToCSSVarName(color.var)
        if color.opacity and color.opacity.a != 1:
            return 'rgba(var(%s-rgb), %s)' % (self.ToCSSVarName(model_name),
                                              self._CSSOpacity(color.opacity))
        else:
            return 'rgb(var(%s-rgb))' % self.ToCSSVarName(model_name)
Returns the CSS color representation given a color name and color
Returns the CSS color representation given a color name and color
Returns the CSS color representation given a color name and color
def CSSColorVar(self, model_name, color):
        if color.var:
            return 'var(%s)' % self.ToCSSVarName(color.var)
        if color.opacity and color.opacity.a != 1:
            return 'rgba(var(%s-rgb), %s)' % (self.ToCSSVarName(model_name),
                                              self._CSSOpacity(color.opacity))
        else:
            return 'rgb(var(%s-rgb))' % self.ToCSSVarName(model_name)
def CSSColorVar ( self , model_name , color ) : if color . var : return 'var(%s)' % self . ToCSSVarName ( color . var ) if color . opacity and color . opacity . a != 1 : return 'rgba(var(%s-rgb), %s)' % ( self . ToCSSVarName ( model_name ) , self . _CSSOpacity ( color . opacity ) ) else : return 'rgb(var(%s-rgb))' % self . ToCSSVarName ( model_name )
Returns the CSS color representation given a color name and color
Returns the CSS color representation given a color name and color
'''Returns the CSS color representation given a color name and color'''
self
model_name
color