Determine icon positions based on dimesnions+shape rather than platform
This commit is contained in:
@@ -12,15 +12,15 @@ A customizable replacement for the built-in Pebble action bar.
|
||||
- Custom x/y positions
|
||||
- Legacy Pebble SDK 2.X-style preset
|
||||
### Removed Features
|
||||
- Anything to do with back button overrides
|
||||
- Custom animations
|
||||
- Use built-in presets
|
||||
- Move up/down/left/right (same as stock)
|
||||
- Round style
|
||||
- Using a rectangular bar on a round watch saves space and IMO looks way better
|
||||
### Pending Features
|
||||
- Custom icon x offset
|
||||
- Custom icon x offsets
|
||||
- Match move animation distance to stock per-platform
|
||||
- Match move animation duration to stock
|
||||
- Allow customizing move animations
|
||||
- Built-in haptics
|
||||
- Legacy (background invert) animations support
|
||||
- Teardown/destroy/deinit helper
|
||||
|
||||
+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