Skip to content

Add foreground generation screen dimming - #774

Merged
ShiftHackZ merged 2 commits into
developfrom
feature/generation-screen-dimming
Nov 19, 2026
Merged

ShiftHackZ merged 2 commits into
developfrom
feature/generation-screen-dimming

Conversation

@ShiftHackZ

@ShiftHackZ ShiftHackZ commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Description

Adds an opt-in Dim screen toggle as the first App settings option. Foreground generation keeps the display awake and can lower brightness to 1%; minimizing restores the previous display settings, and returning reapplies dimming while generation is still running. Completion and cancellation restore the display settings.

Touching the screen temporarily restores normal brightness, then dimming resumes after 1,750 ms of inactivity. Each touch restarts the timer, including touches on the progress card and the surrounding area; Cancel remains usable.

Dimming is active only with background generation off. The option remains visible and configurable with background generation on, with an asterisk and an explanatory hint. Includes six-language localization and backup support.

Addresses #175.

Checklist

  • I have ensured this PR does not contain any breaking changes for existing functionality
  • I have added automated tests that cover the new behavior and removed obsolete tests and code
  • I have added documentation for any new public APIs and update existing documentation for any changes to public APIs

Tested On

  • Android: Emulator
  • Android: Real device
  • iOS: Simulator
  • iOS: Real iPhone device

Validated foreground start, minimize/resume, completion, and disabled dimming through the built-in A1111 demo flow. Verified iOS brightness setter arguments with the debugger; physical iPhone brightness remains unverified. The background-generation asterisk/hint was checked in the iOS app. Android/iOS compilation, Kotlin lint, presentation architecture checks, and Android Studio formatting pass. The touch/timer, repeated-touch, progress-dialog, minimize/resume, completion and cancellation flows were verified in the iOS simulator using actual UIKit brightness setter calls. The new touch interaction was not rerun on Android. No automated tests were added.

@ShiftHackZ ShiftHackZ mentioned this pull request Nov 19, 2026
@ShiftHackZ ShiftHackZ linked an issue Nov 19, 2026 that may be closed by this pull request
@ShiftHackZ
ShiftHackZ merged commit 8cc20f0 into develop Nov 19, 2026
16 of 17 checks passed
@ShiftHackZ
ShiftHackZ deleted the feature/generation-screen-dimming branch November 19, 2026 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Turn off backlight

1 participant