mirror of
https://github.com/alexhopeoconnor/firmware.git
synced 2026-10-22 03:02:08 +10:00
Fix highlighted tittle on the offset to match other action menus
This commit is contained in:
@@ -261,7 +261,7 @@ void buildNumericPickerDisplay(const NumericSlotPickerState &state, std::string
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Shared picker renderer for any "editable slots in a formatted string" flow.
|
// Number picker renderer
|
||||||
// Reuse by building `formattedValue` as displayed, and mapping each editable slot
|
// Reuse by building `formattedValue` as displayed, and mapping each editable slot
|
||||||
// to its character index in that string via `slotCharIndexBySlot`.
|
// to its character index in that string via `slotCharIndexBySlot`.
|
||||||
void NumberPicker(OLEDDisplay *display, OLEDDisplayUiState *state, const char *lineStarts[MAX_LINES + 1], uint16_t lineCount,
|
void NumberPicker(OLEDDisplay *display, OLEDDisplayUiState *state, const char *lineStarts[MAX_LINES + 1], uint16_t lineCount,
|
||||||
@@ -929,7 +929,9 @@ void NotificationRenderer::drawNotificationBox(OLEDDisplay *display, OLEDDisplay
|
|||||||
strncpy(lineBuffer, lines[i], lineLengths[i]);
|
strncpy(lineBuffer, lines[i], lineLengths[i]);
|
||||||
lineBuffer[lineLengths[i]] = '\0';
|
lineBuffer[lineLengths[i]] = '\0';
|
||||||
// Determine if this is a pop-up or a pick list
|
// Determine if this is a pop-up or a pick list
|
||||||
if (alertBannerOptions > 0 && i == 0) {
|
const bool highlightTitleRow =
|
||||||
|
(i == 0) && (alertBannerOptions > 0 || current_notification_type == notificationTypeEnum::signed_decimal_picker);
|
||||||
|
if (highlightTitleRow) {
|
||||||
// Pick List
|
// Pick List
|
||||||
display->setColor(WHITE);
|
display->setColor(WHITE);
|
||||||
int background_yOffset = 1;
|
int background_yOffset = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user