diff --git a/src/ScreenComponents.cpp b/src/ScreenComponents.cpp index 6ffff9a8..4a9d7ec5 100644 --- a/src/ScreenComponents.cpp +++ b/src/ScreenComponents.cpp @@ -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; } } diff --git a/src/ScreenComponents.h b/src/ScreenComponents.h index de1f9e20..a634b3ee 100644 --- a/src/ScreenComponents.h +++ b/src/ScreenComponents.h @@ -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);