Skip to content

Commit

Permalink
move bottom bar position
Browse files Browse the repository at this point in the history
  • Loading branch information
bitgamma committed Feb 19, 2025
1 parent 2b3395c commit 453f36f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/ui/dialog.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ app_err_t dialog_pager_colors(size_t page, size_t last_page, uint16_t bg, uint16

screen_text_ctx_t ctx = {
.x = 0,
.y = SCREEN_HEIGHT - (TH_FONT_TITLE)->yAdvance,
.y = TH_NAV_PAGER_TOP,
.font = TH_FONT_TITLE,
.bg = bg,
.fg = fg,
Expand Down
8 changes: 5 additions & 3 deletions app/ui/theme.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,12 @@
#define TH_PROGRESS_LEFT_MARGIN 10
#define TH_PROGRESS_VERTICAL_MARGIN 10

#define TH_NAV_HINT_LEFT_X 0
#define TH_NAV_HINT_RIGHT_X (SCREEN_WIDTH - 28)
#define TH_NAV_HINT_TOP (SCREEN_HEIGHT - 28)
#define TH_NAV_HINT_LEFT_X TH_SCREEN_MARGIN
#define TH_NAV_HINT_RIGHT_X (SCREEN_WIDTH - 24 - TH_SCREEN_MARGIN)
#define TH_NAV_HINT_TOP (SCREEN_HEIGHT - TH_NAV_HINT_HEIGHT + 6)
#define TH_NAV_HINT_WIDTH 40
#define TH_NAV_HINT_HEIGHT 44

#define TH_NAV_PAGER_TOP (SCREEN_HEIGHT - TH_NAV_HINT_HEIGHT + 8)

#endif

0 comments on commit 453f36f

Please sign in to comment.