Skip to content

支持通过环境变量控制 UI 缩放比例#4521

Merged
Glavo merged 8 commits intoHMCL-dev:mainfrom
Glavo:hmcl-dpi-scale
Sep 29, 2025
Merged

支持通过环境变量控制 UI 缩放比例#4521
Glavo merged 8 commits intoHMCL-dev:mainfrom
Glavo:hmcl-dpi-scale

Conversation

@Glavo
Copy link
Member

@Glavo Glavo commented Sep 20, 2025

No description provided.

@Glavo Glavo requested a review from Copilot September 29, 2025 08:24
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for controlling UI scaling through environment variables, allowing users to set the display scale for the HMCL launcher via HMCL_UI_SCALE environment variable or system property.

  • Adds environment variable and system property support for UI scaling configuration
  • Implements parsing for percentage, DPI, and decimal scale formats
  • Adds validation and platform-specific JavaFX property mapping

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@HMCL-dev HMCL-dev deleted a comment from Copilot AI Sep 29, 2025
@Glavo Glavo merged commit 168c4ac into HMCL-dev:main Sep 29, 2025
2 checks passed
@Glavo Glavo deleted the hmcl-dpi-scale branch September 29, 2025 08:52
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