Keep the constants and return them

This commit is contained in:
Yaroslav 2026-02-02 14:01:56 +03:00
parent 78699e1a5c
commit 4b4af14bd0
2 changed files with 4 additions and 2 deletions

View File

@ -60,9 +60,9 @@ int ScreenComponents::bookProgressBarHeight() {
orientation == CrossPointSettings::ORIENTATION::INVERTED);
if (isVertical) {
return 4;
return ScreenComponents::BOOK_PROGRESS_BAR_VERTICAL_HEIGHT;
} else {
return 2;
return ScreenComponents::BOOK_PROGRESS_BAR_HORIZONTAL_HEIGHT;
}
}

View File

@ -13,6 +13,8 @@ struct TabInfo {
class ScreenComponents {
public:
static const int BOOK_PROGRESS_BAR_VERTICAL_HEIGHT = 4;
static const int BOOK_PROGRESS_BAR_HORIZONTAL_HEIGHT = 2;
static int bookProgressBarHeight();
static void drawBattery(const GfxRenderer& renderer, int left, int top, bool showPercentage = true);