mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-04 14:47:37 +03:00
Set values inside bookProgressBarHeight()
This commit is contained in:
parent
4b4af14bd0
commit
a9016c683b
@ -59,10 +59,13 @@ int ScreenComponents::bookProgressBarHeight() {
|
|||||||
const bool isVertical = (orientation == CrossPointSettings::ORIENTATION::PORTRAIT ||
|
const bool isVertical = (orientation == CrossPointSettings::ORIENTATION::PORTRAIT ||
|
||||||
orientation == CrossPointSettings::ORIENTATION::INVERTED);
|
orientation == CrossPointSettings::ORIENTATION::INVERTED);
|
||||||
|
|
||||||
|
constexpr int bookProgressBarVerticalHeight = 4;
|
||||||
|
constexpr int bookProgressBarHorizontalHeight = 2;
|
||||||
|
|
||||||
if (isVertical) {
|
if (isVertical) {
|
||||||
return ScreenComponents::BOOK_PROGRESS_BAR_VERTICAL_HEIGHT;
|
return bookProgressBarVerticalHeight;
|
||||||
} else {
|
} else {
|
||||||
return ScreenComponents::BOOK_PROGRESS_BAR_HORIZONTAL_HEIGHT;
|
return bookProgressBarHorizontalHeight;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -13,8 +13,6 @@ struct TabInfo {
|
|||||||
|
|
||||||
class ScreenComponents {
|
class ScreenComponents {
|
||||||
public:
|
public:
|
||||||
static const int BOOK_PROGRESS_BAR_VERTICAL_HEIGHT = 4;
|
|
||||||
static const int BOOK_PROGRESS_BAR_HORIZONTAL_HEIGHT = 2;
|
|
||||||
static int bookProgressBarHeight();
|
static int bookProgressBarHeight();
|
||||||
|
|
||||||
static void drawBattery(const GfxRenderer& renderer, int left, int top, bool showPercentage = true);
|
static void drawBattery(const GfxRenderer& renderer, int left, int top, bool showPercentage = true);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user