Revert to platform-dependent defaults for icons x offset
This commit is contained in:
+4
-2
@@ -27,9 +27,11 @@
|
|||||||
#if PBL_ROUND
|
#if PBL_ROUND
|
||||||
#define USE_ROUND_BAR_BY_DEFAULT true
|
#define USE_ROUND_BAR_BY_DEFAULT true
|
||||||
#define DEFAULT_ANIM_DISTANCE 4
|
#define DEFAULT_ANIM_DISTANCE 4
|
||||||
|
#define DEFAULT_ICONS_X_OFFSET -1
|
||||||
#else
|
#else
|
||||||
#define USE_ROUND_BAR_BY_DEFAULT false
|
#define USE_ROUND_BAR_BY_DEFAULT false
|
||||||
#define DEFAULT_ANIM_DISTANCE 5
|
#define DEFAULT_ANIM_DISTANCE 5
|
||||||
|
#define DEFAULT_ICONS_X_OFFSET 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static const GRect s_base_grect_rect = GRect(PBL_DISPLAY_WIDTH - ACTION_BAR_WIDTH, 0, ACTION_BAR_WIDTH, PBL_DISPLAY_HEIGHT);
|
static const GRect s_base_grect_rect = GRect(PBL_DISPLAY_WIDTH - ACTION_BAR_WIDTH, 0, ACTION_BAR_WIDTH, PBL_DISPLAY_HEIGHT);
|
||||||
@@ -322,7 +324,7 @@ void neat_bar_layer_set_icons_spread(NeatBarLayer *neat_bar, int8_t spread) {
|
|||||||
s_recenter_icons(neat_bar);
|
s_recenter_icons(neat_bar);
|
||||||
}
|
}
|
||||||
|
|
||||||
// default: -1
|
// default: 0 (rect), -1 (round)
|
||||||
void neat_bar_layer_set_icons_x_offset(NeatBarLayer *neat_bar, int8_t x_offset) {
|
void neat_bar_layer_set_icons_x_offset(NeatBarLayer *neat_bar, int8_t x_offset) {
|
||||||
if (x_offset == neat_bar->icons_x_offset) {
|
if (x_offset == neat_bar->icons_x_offset) {
|
||||||
return;
|
return;
|
||||||
@@ -391,7 +393,7 @@ NeatBarLayer *neat_bar_layer_create() {
|
|||||||
neat_bar->rect_bar_corner_radius = 0;
|
neat_bar->rect_bar_corner_radius = 0;
|
||||||
neat_bar->bar_x_offset = 0;
|
neat_bar->bar_x_offset = 0;
|
||||||
neat_bar->icons_spread = DEFAULT_SPREAD;
|
neat_bar->icons_spread = DEFAULT_SPREAD;
|
||||||
neat_bar->icons_x_offset = -1;
|
neat_bar->icons_x_offset = DEFAULT_ICONS_X_OFFSET;
|
||||||
neat_bar->animations_enabled = true;
|
neat_bar->animations_enabled = true;
|
||||||
neat_bar->animations_move_on_y_axis = false;
|
neat_bar->animations_move_on_y_axis = false;
|
||||||
neat_bar->animations_move_distance = DEFAULT_ANIM_DISTANCE;
|
neat_bar->animations_move_distance = DEFAULT_ANIM_DISTANCE;
|
||||||
|
|||||||
Reference in New Issue
Block a user