Set values inside bookProgressBarHeight()

This commit is contained in:
Yaroslav 2026-02-02 14:09:43 +03:00
parent 4b4af14bd0
commit a9016c683b
2 changed files with 5 additions and 4 deletions

View File

@ -59,10 +59,13 @@ int ScreenComponents::bookProgressBarHeight() {
const bool isVertical = (orientation == CrossPointSettings::ORIENTATION::PORTRAIT ||
orientation == CrossPointSettings::ORIENTATION::INVERTED);
constexpr int bookProgressBarVerticalHeight = 4;
constexpr int bookProgressBarHorizontalHeight = 2;
if (isVertical) {
return ScreenComponents::BOOK_PROGRESS_BAR_VERTICAL_HEIGHT;
return bookProgressBarVerticalHeight;
} else {
return ScreenComponents::BOOK_PROGRESS_BAR_HORIZONTAL_HEIGHT;
return bookProgressBarHorizontalHeight;
}
}

View File

@ -13,8 +13,6 @@ 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);