Skip to content

Add night mode: hold-to-blackout with progressive dimming#1165

Open
datboip wants to merge 2 commits intojustcallmekoko:masterfrom
datboip:feature/brightness-nightmode
Open

Add night mode: hold-to-blackout with progressive dimming#1165
datboip wants to merge 2 commits intojustcallmekoko:masterfrom
datboip:feature/brightness-nightmode

Conversation

@datboip
Copy link
Copy Markdown
Contributor

@datboip datboip commented Mar 10, 2026

Summary

Redesigned brightness and blackout UX for touchscreen boards. Replaces the old blackout button (which overlapped the dimmer zone) with a gesture-based system using progressive screen dimming as visual feedback.

Changes

  • Entry: Hold top or bottom zone for 2.5s → screen progressively dims as feedback → enters brightness mode
  • Brightness adjustment: Tap top half = brighter, tap bottom half = dimmer (clean 50/50 split, no zone conflicts)
  • Blackout: Hold anywhere for 3s → screen darkens each second (2/3 → 1/3 → off)
  • Wake: Tap while blacked out → restores to last saved brightness level
  • Auto-save: Exits and saves after 4s of no touch (no manual save button needed)
  • Quick blackout during scans: Hold top zone 3s → immediate blackout
  • Ultra-low brightness levels (1%, 3%, 6%) for pitch dark environments — addresses Brightness options #1091

Files Changed

  • MenuFunctions.cpp — brightness mode UX, entry gesture, blackout logic, wake-from-blackout restore

Removed

  • Blackout button (caused zone overlap with dimmer)
  • Middle-zone "save" tap (replaced by auto-save on idle)
  • Fixed 1% wake brightness (now restores to saved level)

Test plan

  • Hold top/bottom zone 2.5s from main menu → screen dims progressively → brightness mode opens
  • Release early during hold → screen restores, no mode change
  • Tap top half in brightness mode → brightness increases
  • Tap bottom half → brightness decreases
  • Stop touching for 4s → auto-saves and exits to menu
  • Hold anywhere 3s in brightness mode → screen darkens each second → blackout
  • Tap while blacked out → wakes at last saved brightness (not 1%)
  • Start a scan, hold top zone 3s → quick blackout
  • brightness -s 0 via CLI → sets to 1% (ultra-low)
  • Brightness persists across reboot

🤖 Generated with Claude Code

@sweetwompum
Copy link
Copy Markdown

Secondary bonus of doubling the battery life.

datboip and others added 2 commits March 31, 2026 00:40
Add 3 sub-10% brightness levels (1%, 3%, 6%) for night/stealth use.
Add full-width BLACKOUT button in brightness menu to turn screen off.
Tap to wake from blackout at minimum brightness. Addresses justcallmekoko#1091.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…hold-to-blackout

- Entry: hold top/bottom zone 2.5s with progressive screen dimming effect
- Brightness mode: tap top half = brighter, bottom half = dimmer (50/50 split)
- Blackout: hold anywhere 3s with darkening countdown → screen off
- Wake from blackout restores last saved brightness (not 1%)
- Remove blackout button and middle-zone save (auto-saves after 4s idle)
- Improve hint text visibility (light grey + red for blackout)
- No zone conflicts between dimmer and blackout

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@datboip datboip force-pushed the feature/brightness-nightmode branch from 3bb344a to 927d7b0 Compare March 31, 2026 05:32
@datboip datboip changed the title Add night mode brightness levels and screen blackout Add night mode: hold-to-blackout with progressive dimming Mar 31, 2026
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.

2 participants