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

Co-authored-by: Travis Davis <me@tdavis.dev>
This commit is contained in:
xiro-codes
2026-05-08 11:41:06 +03:00
committed by GitHub
co-authored by Travis Davis
parent e8d7153d7f
commit e3fb3bba37
4 changed files with 8 additions and 1 deletions
+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();