| 142 | } |
| 143 | |
| 144 | int UITheme::getProgressBarHeight() { |
| 145 | const ThemeMetrics& metrics = UITheme::getInstance().getMetrics(); |
| 146 | const bool showProgressBar = |
| 147 | SETTINGS.statusBarProgressBar != CrossPointSettings::STATUS_BAR_PROGRESS_BAR::HIDE_PROGRESS; |
| 148 | return (showProgressBar ? (((SETTINGS.statusBarProgressBarThickness + 1) * 2) + metrics.progressBarMarginTop) : 0); |
| 149 | } |
| 150 | |
| 151 | // Centered text implementation that takes the safe area into account |
| 152 | void UITheme::drawCenteredText(const GfxRenderer& renderer, Rect screen, int fontId, int y, const char* text, |
no outgoing calls
no test coverage detected