Skip to content

Use Android density for UI scaling - #127

Merged
Try merged 3 commits into
Try:masterfrom
Solessfir:android-ui-scale
Oct 13, 2026
Merged

Try merged 3 commits into
Try:masterfrom
Solessfir:android-ui-scale

Conversation

@Solessfir

@Solessfir Solessfir commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Implement AndroidApi::implUiScale using the current configuration density relative to 160 dpi. Return 1 for unspecified or special density values. This lets applications use Tempest's existing UI scaling API on Android instead of assuming a scale of 1. Requested during review of Try/OpenGothic#1014.

@Try

Try commented Oct 13, 2026

Copy link
Copy Markdown
Owner

I've split APP_CMD_CONFIG_CHANGED into event separated from updateWindow - so in future it's possible to introduce a dedicated event.
LGTM, if no objection - can merge

@Solessfir

Copy link
Copy Markdown
Contributor Author

Looks good to me :)

@Try
Try merged commit 16b691e into Try:master Oct 13, 2026
4 checks passed
@Try

Try commented Oct 13, 2026

Copy link
Copy Markdown
Owner

Merged, thanks!

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