mirror of
https://git.wetfence.xyz/RandyTheSilly/neat_bar.git
synced 2026-10-27 10:59:59 -04:00
Determine icon positions based on dimesnions+shape rather than platform
This commit is contained in:
1 parent
e9a0c43190
commit
5320565b54
2 files changed
+10
-10
No files matched your search
+7
-7
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user