Compare commits

...

2 Commits

Author SHA1 Message Date
Yaroslav
a9016c683b Set values inside bookProgressBarHeight() 2026-02-02 14:09:43 +03:00
Yaroslav
4b4af14bd0 Keep the constants and return them 2026-02-02 14:01:56 +03:00

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 4;
return bookProgressBarVerticalHeight;
} else {
return 2;
return bookProgressBarHorizontalHeight;
}
}