mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-06 15:47:39 +03:00
Improve comment clarity for invertText logic
Co-authored-by: lukestein <44452336+lukestein@users.noreply.github.com>
This commit is contained in:
parent
a72fbdda62
commit
d806400961
@ -325,7 +325,9 @@ void HomeActivity::render() {
|
||||
}
|
||||
|
||||
if (hasContinueReading) {
|
||||
// When cover is shown, invert text colors on selection; without cover, invert normally
|
||||
// Invert text colors based on selection state:
|
||||
// - With cover: selected = white text on black box, unselected = black text on white box
|
||||
// - Without cover: selected = white text on black card, unselected = black text
|
||||
const bool invertText = coverRendered ? bookSelected : !bookSelected;
|
||||
|
||||
// Split into words (avoid stringstream to keep this light on the MCU)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user