clang format fix

This commit is contained in:
Arthur Tazhitdinov 2026-01-21 22:12:48 +05:00
parent a4e335f0aa
commit 93ce00aed9

View File

@ -79,7 +79,7 @@ void ScreenComponents::fillPopupProgress(const GfxRenderer& renderer, const Popu
renderer.displayBuffer(EInkDisplay::FAST_REFRESH); renderer.displayBuffer(EInkDisplay::FAST_REFRESH);
} }
int ScreenComponents::drawTabBar(const GfxRenderer& renderer, const int y, const std::vector<TabInfo>& tabs) { int ScreenComponents::drawTabBar(const GfxRenderer& renderer, const int y, const std::vector<TabInfo>& tabs) {
constexpr int tabPadding = 20; // Horizontal padding between tabs constexpr int tabPadding = 20; // Horizontal padding between tabs
constexpr int leftMargin = 20; // Left margin for first tab constexpr int leftMargin = 20; // Left margin for first tab
constexpr int underlineHeight = 2; // Height of selection underline constexpr int underlineHeight = 2; // Height of selection underline
@ -107,9 +107,9 @@ void ScreenComponents::fillPopupProgress(const GfxRenderer& renderer, const Popu
} }
return tabBarHeight; return tabBarHeight;
} }
void ScreenComponents::drawScrollIndicator(const GfxRenderer& renderer, const int currentPage, const int totalPages, void ScreenComponents::drawScrollIndicator(const GfxRenderer& renderer, const int currentPage, const int totalPages,
const int contentTop, const int contentHeight) { const int contentTop, const int contentHeight) {
if (totalPages <= 1) { if (totalPages <= 1) {
return; // No need for indicator if only one page return; // No need for indicator if only one page
@ -146,9 +146,9 @@ void ScreenComponents::fillPopupProgress(const GfxRenderer& renderer, const Popu
const int textY = (indicatorTop + indicatorBottom) / 2 - renderer.getLineHeight(SMALL_FONT_ID) / 2; const int textY = (indicatorTop + indicatorBottom) / 2 - renderer.getLineHeight(SMALL_FONT_ID) / 2;
renderer.drawText(SMALL_FONT_ID, textX, textY, pageText.c_str()); renderer.drawText(SMALL_FONT_ID, textX, textY, pageText.c_str());
} }
void ScreenComponents::drawProgressBar(const GfxRenderer& renderer, const int x, const int y, const int width, void ScreenComponents::drawProgressBar(const GfxRenderer& renderer, const int x, const int y, const int width,
const int height, const size_t current, const size_t total) { const int height, const size_t current, const size_t total) {
if (total == 0) { if (total == 0) {
return; return;
@ -169,4 +169,4 @@ void ScreenComponents::fillPopupProgress(const GfxRenderer& renderer, const Popu
// Draw percentage text centered below bar // Draw percentage text centered below bar
const std::string percentText = std::to_string(percent) + "%"; const std::string percentText = std::to_string(percent) + "%";
renderer.drawCenteredText(UI_10_FONT_ID, y + height + 15, percentText.c_str()); renderer.drawCenteredText(UI_10_FONT_ID, y + height + 15, percentText.c_str());
} }