A fork of https://github.com/crosspoint-reader/crosspoint-reader
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update button hints on OTA update screen and update user guide to reflect current settings (#183)

## Summary

- Update the button hints on the OTA update screen to reflect the
current front button layout.
- Update user guide to reflect current available settings. A lot has
been added recently!

authored by

dangson and committed by
GitHub
648c6886 06065dfd

+23 -11
+21 -3
USER_GUIDE.md
··· 64 64 - "Light" - The same default sleep screen, on a white background 65 65 - "Custom" - Custom images from the SD card, see [3.6 Sleep Screen](#36-sleep-screen) below for more information 66 66 - "Cover" - The book cover image (Note: this is experimental and may not work as expected) 67 + - **Status Bar**: Configure the status bar displayed while reading, options are: 68 + - "None" - No status bar 69 + - "No Progress" - Show status bar without reading progress 70 + - "Full" - Show status bar with reading progress 67 71 - **Extra Paragraph Spacing**: If enabled, vertical space will be added between paragraphs in the book, if disabled, 68 72 paragraphs will not have vertical space between them, but will have first word indentation. 69 73 - **Short Power Button Click**: Whether to trigger the power button on a short press or a long press. 70 - - **Front Button Layout**: Swap the order of the bottom edge buttons from Back/Confirm/Left/Right to Left/Right/Back/Confirm. 74 + - **Reading Orientation**: Set the screen orientation for reading, options are: 75 + - "Portrait" (default) - Standard portrait orientation 76 + - "Landscape CW" - Landscape, rotated clockwise 77 + - "Inverted" - Portrait, upside down 78 + - "Landscape CCW" - Landscape, rotated counter-clockwise 79 + - **Front Button Layout**: Configure the order of the bottom edge buttons, options are: 80 + - "Bck, Cnfrm, Lft, Rght" (default) - Back, Confirm, Left, Right 81 + - "Lft, Rght, Bck, Cnfrm" - Left, Right, Back, Confirm 82 + - "Lft, Bck, Cnfrm, Rght" - Left, Back, Confirm, Right 83 + - **Side Button Layout**: Swap the order of the volume buttons from Previous/Next to Next/Previous. This change is only in effect when reading. 84 + - **Reader Font Family**: Choose the font used for reading, options are: 85 + - "Bookerly" (default) - Amazon's reading font 86 + - "Noto Sans" - Google's sans-serif font 87 + - "Open Dyslexic" - Font designed for readers with dyslexia 88 + - **Reader Font Size**: Adjust the text size for reading, options are "Small", "Medium", "Large", or "X Large". 89 + - **Reader Line Spacing**: Adjust the spacing between lines, options are "Tight", "Normal", or "Wide". 90 + - **Check for updates**: Check for firmware updates over WiFi. 71 91 72 92 ### 3.6 Sleep Screen 73 93 ··· 124 144 are planned for future updates: 125 145 126 146 * **Images:** Embedded images in e-books will not render. 127 - * **Text Formatting:** There are currently no settings to adjust font type, size, line spacing, or margins. 128 - * **Rotation**: Different rotation options are not supported.
+2 -8
src/activities/settings/OtaUpdateActivity.cpp
··· 124 124 lastUpdaterPercentage = static_cast<int>(updaterProgress * 100); 125 125 } 126 126 127 - const auto pageHeight = renderer.getScreenHeight(); 128 127 const auto pageWidth = renderer.getScreenWidth(); 129 128 130 129 renderer.clearScreen(); ··· 141 140 renderer.drawText(UI_10_FONT_ID, 20, 250, "Current Version: " CROSSPOINT_VERSION); 142 141 renderer.drawText(UI_10_FONT_ID, 20, 270, ("New Version: " + updater.getLatestVersion()).c_str()); 143 142 144 - renderer.drawRect(25, pageHeight - 40, 106, 40); 145 - renderer.drawText(UI_10_FONT_ID, 25 + (105 - renderer.getTextWidth(UI_10_FONT_ID, "Cancel")) / 2, pageHeight - 35, 146 - "Cancel"); 147 - 148 - renderer.drawRect(130, pageHeight - 40, 106, 40); 149 - renderer.drawText(UI_10_FONT_ID, 130 + (105 - renderer.getTextWidth(UI_10_FONT_ID, "Update")) / 2, pageHeight - 35, 150 - "Update"); 143 + const auto labels = mappedInput.mapLabels("Cancel", "Update", "", ""); 144 + renderer.drawButtonHints(UI_10_FONT_ID, labels.btn1, labels.btn2, labels.btn3, labels.btn4); 151 145 renderer.displayBuffer(); 152 146 return; 153 147 }