Add screen-timeout slider screen; move screensaver toggle into it
Replaces the repeated-tap timeout cycling (0-10, one tap per minute) with a dedicated screen and slider (1-15 minutes, then "Never"). The screensaver toggle moves from its own System-menu row into this screen, directly below the slider, since it only determines what happens when the timeout fires. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
13
src/timeout_screen.h
Normal file
13
src/timeout_screen.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
#include <Arduino.h>
|
||||
#include <TFT_eSPI.h>
|
||||
|
||||
// Bildschirm-Timeout einstellen (Menue > System > Bildschirm-Timeout) -
|
||||
// Schieberegler von Config::SCREEN_TIMEOUT_MIN_MINUTES bis
|
||||
// Config::SCREEN_TIMEOUT_MAX_MINUTES, danach "Nie" als eigene Endposition.
|
||||
// Der Ruhebildschirm-Umschalter (siehe SettingsStore::screensaverEnabled())
|
||||
// lebt ebenfalls hier, direkt unter dem Regler, da er inhaltlich eng mit
|
||||
// dem Timeout zusammenhaengt (bestimmt nur, WAS beim Timeout passiert).
|
||||
namespace TimeoutScreen {
|
||||
void run(TFT_eSPI& tft);
|
||||
}
|
||||
Reference in New Issue
Block a user