src/scripts/components/color.js
function autoLayout() {
      if (!clay.meta.activeWatchInfo ||
          clay.meta.activeWatchInfo.firmware.major === 2 ||
          ['aplite', 'diorite'].indexOf(clay.meta.activeWatchInfo.platform) > -1 &&
          !self.config.allowGray) {
        return standardLayouts.BLACK_WHITE;
      }

      if (['aplite', 'diorite'].indexOf(clay.meta.activeWatchInfo.platform) > -1 &&
          self.config.allowGray) {
        return standardLayouts.GRAY;
      }

      return standardLayouts.COLOR;
    }
function autoLayout() {
      if (!clay.meta.activeWatchInfo ||
          clay.meta.activeWatchInfo.firmware.major === 2 ||
          ['aplite', 'diorite'].indexOf(clay.meta.activeWatchInfo.platform) > -1 &&
          !self.config.allowGray) {
        return standardLayouts.BLACK_WHITE;
      }

      if (['aplite', 'diorite'].indexOf(clay.meta.activeWatchInfo.platform) > -1 &&
          self.config.allowGray) {
        return standardLayouts.GRAY;
      }

      return standardLayouts.COLOR;
    }
function autoLayout ( ) { if ( ! clay . meta . activeWatchInfo || clay . meta . activeWatchInfo . firmware . major === 2 || [ 'aplite' , 'diorite' ] . indexOf ( clay . meta . activeWatchInfo . platform ) > - 1 && ! self . config . allowGray ) { return standardLayouts . BLACK_WHITE ; } if ( [ 'aplite' , 'diorite' ] . indexOf ( clay . meta . activeWatchInfo . platform ) > - 1 && self . config . allowGray ) { return standardLayouts . GRAY ; } return standardLayouts . COLOR ; }
Returns the layout based on the connected watch
@returns {Array}
Returns the layout based on the connected watch