feat(sleep-screen): add sleep screen orientation setting (#1748)

Co-authored-by: Travis Davis <me@tdavis.dev>
This commit is contained in:
xiro-codesandTravis Davis authored and GitHub committed 2026-05-08 11:41:06 +03:00
1 parent e8d7153d7f
commit e3fb3bba37
4 files changed
+8 -1

No files matched your search

+2 -1
View File
@@ -22,11 +22,12 @@ void SleepActivity::onEnter() {
if (APP_STATE.lastSleepFromReader) {
ReaderUtils::applyOrientation(renderer, SETTINGS.orientation);
GUI.drawPopup(renderer, tr(STR_ENTERING_SLEEP));
renderer.setOrientation(GfxRenderer::Orientation::Portrait);
} else {
GUI.drawPopup(renderer, tr(STR_ENTERING_SLEEP));
}
ReaderUtils::applyOrientation(renderer, SETTINGS.sleepScreenOrientation);
switch (SETTINGS.sleepScreen) {
case (CrossPointSettings::SLEEP_SCREEN_MODE::BLANK):
return renderBlankSleepScreen();