Skip to content

Commit

Permalink
Add Zoom Icons to Map Toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
jgauchia committed Aug 16, 2024
1 parent 6814f0a commit 86887d4
Show file tree
Hide file tree
Showing 5 changed files with 216 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/gui/src/mainScr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ uint8_t activeTile = 0; // Current active tile

#ifdef LARGE_SCREEN
int toolBarOffset = 100;
int toolBarSpace = 60;
#endif
#ifndef LARGE_SCREEN
int toolBarOffset = 80;
int toolBarSpace = 50;
#endif

lv_obj_t *compassHeading;
Expand Down Expand Up @@ -632,8 +634,6 @@ void createMainScr()
btnFullScreen = lv_btn_create(mapTile);
lv_obj_remove_style_all(btnFullScreen);
lv_obj_set_size(btnFullScreen, 48, 48);
//lv_obj_set_style_bg_color(btnFullScreen, lv_color_white(), 0);
//lv_obj_set_style_bg_opa(btnFullScreen, 1, 0);
if (!isMapFullScreen)
lv_obj_set_pos(btnFullScreen, 10, MAP_HEIGHT - toolBarOffset);
else
Expand Down
1 change: 1 addition & 0 deletions lib/gui/src/mainScr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ extern lv_obj_t *satTrackTile;
*/
extern lv_obj_t *btnFullScreen;
extern int toolBarOffset;
extern int toolBarSpace;

/**
* @brief Compass Tile screen objects
Expand Down
Loading

0 comments on commit 86887d4

Please sign in to comment.