feat: implement background color and night mode settings in the TV control app
All checks were successful
Build App / build (push) Successful in 7m10s

This commit is contained in:
2026-03-01 17:53:41 +01:00
parent 37bf9c74cb
commit eb4e7ea26a
6 changed files with 541 additions and 72 deletions

View File

@@ -3,9 +3,25 @@ export interface TextState {
title: string;
}
export interface NightModeSettings {
/** Whether night mode scheduling is active */
enabled: boolean;
/** Start of night window, "HH:MM" 24-hour */
start_time: string;
/** End of night window (exclusive), "HH:MM" 24-hour */
end_time: string;
/** Text shown on image rotator cards during night mode */
message: string;
/** When true, hide background image/colour and use near-black */
dim_background: boolean;
}
export interface SettingsState {
/** Portrait background image URL (height > width). Empty string = no background. */
/** Landscape background image URL. Empty string = no background. */
background_url: string;
/** CSS colour string for the TV background. Default "#000000". */
background_color: string;
night_mode: NightModeSettings;
}
export interface ImagePopupState {