Determine icon positions based on dimesnions+shape rather than platform

This commit is contained in:
2026-07-19 15:53:58 -04:00
parent e9a0c43190
commit 5320565b54
2 changed files with 10 additions and 10 deletions
+7 -7
View File
@@ -4,17 +4,17 @@
#include "neat_bar.h"
#include <pebble.h>
#if PBL_PLATFORM_EMERY
const int8_t ICON_X_OFFSET = 0;
const uint16_t UP_Y = 45;
const uint16_t SELECT_Y = 105;
const uint16_t DOWN_Y = 165;
#elif PBL_PLATFORM_GABBRO
#if PBL_DISPLAY_WIDTH >= 260 && PBL_ROUND
const int8_t ICON_X_OFFSET = -1;
const uint16_t UP_Y = 80;
const uint16_t SELECT_Y = 121;
const uint16_t DOWN_Y = 162;
#elif PBL_PLATFORM_CHALK
#elif PBL_DISPLAY_WIDTH >= 200 && PBL_RECT
const int8_t ICON_X_OFFSET = 0;
const uint16_t UP_Y = 45;
const uint16_t SELECT_Y = 105;
const uint16_t DOWN_Y = 165;
#elif PBL_DISPLAY_WIDTH >= 180 && PBL_ROUND
const int8_t ICON_X_OFFSET = -1;
const uint16_t UP_Y = 53;
const uint16_t SELECT_Y = 81;