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
|
- Custom x/y positions
|
||||||
- Legacy Pebble SDK 2.X-style preset
|
- Legacy Pebble SDK 2.X-style preset
|
||||||
### Removed Features
|
### Removed Features
|
||||||
|
- Anything to do with back button overrides
|
||||||
- Custom animations
|
- Custom animations
|
||||||
- Use built-in presets
|
|
||||||
- Move up/down/left/right (same as stock)
|
|
||||||
- Round style
|
- Round style
|
||||||
- Using a rectangular bar on a round watch saves space and IMO looks way better
|
- Using a rectangular bar on a round watch saves space and IMO looks way better
|
||||||
### Pending Features
|
### Pending Features
|
||||||
- Custom icon x offset
|
- Custom icon x offsets
|
||||||
- Match move animation distance to stock per-platform
|
- Match move animation distance to stock per-platform
|
||||||
- Match move animation duration to stock
|
- Match move animation duration to stock
|
||||||
|
- Allow customizing move animations
|
||||||
- Built-in haptics
|
- Built-in haptics
|
||||||
- Legacy (background invert) animations support
|
- Legacy (background invert) animations support
|
||||||
- Teardown/destroy/deinit helper
|
- Teardown/destroy/deinit helper
|
||||||
|
|||||||
+7
-7
@@ -4,17 +4,17 @@
|
|||||||
#include "neat_bar.h"
|
#include "neat_bar.h"
|
||||||
#include <pebble.h>
|
#include <pebble.h>
|
||||||
|
|
||||||
#if PBL_PLATFORM_EMERY
|
#if PBL_DISPLAY_WIDTH >= 260 && PBL_ROUND
|
||||||
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
|
|
||||||
const int8_t ICON_X_OFFSET = -1;
|
const int8_t ICON_X_OFFSET = -1;
|
||||||
const uint16_t UP_Y = 80;
|
const uint16_t UP_Y = 80;
|
||||||
const uint16_t SELECT_Y = 121;
|
const uint16_t SELECT_Y = 121;
|
||||||
const uint16_t DOWN_Y = 162;
|
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 int8_t ICON_X_OFFSET = -1;
|
||||||
const uint16_t UP_Y = 53;
|
const uint16_t UP_Y = 53;
|
||||||
const uint16_t SELECT_Y = 81;
|
const uint16_t SELECT_Y = 81;
|
||||||
|
|||||||
Reference in New Issue
Block a user