mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-04 14:47:37 +03:00
Keep the constants and return them
This commit is contained in:
parent
78699e1a5c
commit
4b4af14bd0
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user