Add flint support

This commit is contained in:
Stasia Michalska
2025-12-13 00:53:33 +01:00
parent b55a4c6c61
commit 078186cd25
5 changed files with 65 additions and 10 deletions
+3 -2
View File
@@ -114,14 +114,15 @@ module.exports = {
* @returns {Array}
*/
function autoLayout() {
const bwWatches = ['aplite', 'diorite', 'flint'];
if (!clay.meta.activeWatchInfo ||
clay.meta.activeWatchInfo.firmware.major === 2 ||
['aplite', 'diorite'].indexOf(clay.meta.activeWatchInfo.platform) > -1 &&
bwWatches.indexOf(clay.meta.activeWatchInfo.platform) > -1 &&
!self.config.allowGray) {
return standardLayouts.BLACK_WHITE;
}
if (['aplite', 'diorite'].indexOf(clay.meta.activeWatchInfo.platform) > -1 &&
if (bwWatches.indexOf(clay.meta.activeWatchInfo.platform) > -1 &&
self.config.allowGray) {
return standardLayouts.GRAY;
}