mirror of
https://github.com/pebble-dev/clay.git
synced 2026-10-27 15:09:59 -04:00
add allowGray option to color picker
This commit is contained in:
1 parent
d52f6d4aa2
commit
dad8b2a025
3 files changed
+68
-17
No files matched your search
@@ -48,14 +48,15 @@ module.exports = {
|
||||
* @returns {Array}
|
||||
*/
|
||||
function autoLayout() {
|
||||
if (!clay.meta.activeWatchInfo) {
|
||||
if (!clay.meta.activeWatchInfo ||
|
||||
clay.meta.activeWatchInfo.firmware.major === 2 ||
|
||||
clay.meta.activeWatchInfo.platform === 'aplite' &&
|
||||
!self.config.allowGray) {
|
||||
return standardLayouts.BLACK_WHITE;
|
||||
}
|
||||
|
||||
if (clay.meta.activeWatchInfo.platform === 'aplite') {
|
||||
return clay.meta.activeWatchInfo.firmware.major === 2 ?
|
||||
standardLayouts.BLACK_WHITE :
|
||||
standardLayouts.GRAY;
|
||||
if (clay.meta.activeWatchInfo.platform === 'aplite' && self.config.allowGray) {
|
||||
return standardLayouts.GRAY;
|
||||
}
|
||||
|
||||
return standardLayouts.COLOR;
|
||||
|
||||
Reference in new issue
Block a user