| 233 | } |
| 234 | |
| 235 | void SettingsScreen::drawValueRow(int y, const std::string& name, const std::string& sub, const std::string& value, bool focused) const |
| 236 | { |
| 237 | const int rowH = 32; |
| 238 | if (focused) { |
| 239 | C2D_DrawRectSolid(6, y, 0.5f, 308, rowH, C2D_Color32(122, 66, 196, 40)); |
| 240 | Gui::drawOutline(6, y, 308, rowH, 1, COLOR_ACCENT); |
| 241 | } |
| 242 | TextPool::get().draw(name, 14, y + 4, 0.44f, COLOR_TEXT); |
| 243 | TextPool::get().draw(sub, 14, y + 18, 0.36f, COLOR_FAINT); |
| 244 | |
| 245 | // Right-aligned value in the accent color, matching the toggle's right edge. |
| 246 | const float vw = TextPool::get().width(value, 0.44f); |
| 247 | TextPool::get().draw(value, 320 - 14 - vw, y + (rowH - 0.44f * fontGetInfo(NULL)->lineFeed) / 2, 0.44f, COLOR_ACCENT); |
| 248 | } |
| 249 | |
| 250 | void SettingsScreen::drawListRow(int y, const std::string& primary, const std::string& secondary, u32 pipColor, bool focused, bool removable) const |
| 251 | { |
nothing calls this directly
no test coverage detected