src-rx/src/App.js
// If the background color must be inverted. Depends on current theme.
If the background color must be inverted. Depends on current theme.
If the background color must be inverted . Depends on current theme .
mustInvertBackground(color) {
        if (!color) {
            return false;
        } else {
            const invertedColor = Utils.invertColor(color, true);
            if (invertedColor === '#FFFFFF' && this.state.themeType === 'dark') {
                return true;
            } else
            if (invertedColor === '#000000' && this.state.themeType === 'light') {
                return true;
            } else {
                return false;
            }
        }
    }
mustInvertBackground ( color ) { if ( ! color ) { return false ; } else { const invertedColor = Utils . invertColor ( color , true ) ; if ( invertedColor === '#FFFFFF' && this . state . themeType === 'dark' ) { return true ; } else if ( invertedColor === '#000000' && this . state . themeType === 'light' ) { return true ; } else { return false ; } } }
If the background color must be inverted.
If the background color must be inverted .