Skip to content

Auto-detect UI scale on first run (#35)#86

Open
trek-e wants to merge 2 commits intorubenwe:masterfrom
trek-e:feature/auto-ui-scale
Open

Auto-detect UI scale on first run (#35)#86
trek-e wants to merge 2 commits intorubenwe:masterfrom
trek-e:feature/auto-ui-scale

Conversation

@trek-e
Copy link
Copy Markdown

@trek-e trek-e commented Jan 24, 2026

Summary

Automatically calculates an appropriate UI scale based on screen DPI/resolution on first launch.

Detection Logic

  1. Uses Screen.dpi when available (most platforms)
  2. Falls back to resolution-based estimation if DPI unavailable
  3. Reference: 96 DPI = 100% scale (Windows standard)

Resolution Fallback

Resolution Scale
720p 75%
1080p 100%
1440p 125%
4K 150%
5K+ 175%

Changes

  • ApplicationSettings.cs - Added GuessOptimalUiScale() and IsFirstRun flag
  • ApplicationSettingsModel.cs - Apply auto-detection on first run

🤖 Generated with Claude Code

trek-e and others added 2 commits January 23, 2026 18:39
- STACK.md - Technologies and dependencies
- ARCHITECTURE.md - System design and patterns
- STRUCTURE.md - Directory layout
- CONVENTIONS.md - Code style and patterns
- TESTING.md - Test structure
- INTEGRATIONS.md - External services
- CONCERNS.md - Technical debt and issues
- Add GuessOptimalUiScale() method to ApplicationSettings
  - Uses screen DPI when available (96 DPI = 100% scale)
  - Falls back to resolution-based detection
  - Returns scale between 75% and 200%, rounded to nearest 25%

- Add IsFirstRun flag to ApplicationSettings
- Apply auto-detected scale on first launch only
- Save settings immediately to preserve user's display

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.

1 participant