Skip to content

fix: Scale the "info" icon above each post to match the text size#2284

Merged
nikclayton merged 1 commit into
pachli:mainfrom
nikclayton:scale-info-icon
May 14, 2026
Merged

fix: Scale the "info" icon above each post to match the text size#2284
nikclayton merged 1 commit into
pachli:mainfrom
nikclayton:scale-info-icon

Conversation

@nikclayton

Copy link
Copy Markdown
Contributor

Previous code was always showing the "info" icon (reblog, reply) at its intrinsic size, 18dp. So if the user scaled the text in Preferences the icon wouldn't adjust.

Change this, so the icon size is 129% of the line height of the textview. 129% seems to approximate the current size when the status text size is set to "medium".

Adjust the drawable padding as necessary to compensate.

Previous code was always showing the "info" icon (reblog, reply) at its
intrinsic size, 18dp. So if the user scaled the text in Preferences the
icon wouldn't adjust.

Change this, so the icon size is 129% of the line height of the textview.
129% seems to approximate the current size when the status text size is
set to "medium".

Adjust the drawable padding as necessary to compensate.
@nikclayton nikclayton merged commit 0354fa1 into pachli:main May 14, 2026
28 checks passed
@nikclayton nikclayton deleted the scale-info-icon branch May 14, 2026 15:06
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