Skip to content

Center topic icons in the collapsed chat list - #31290

Open
meh7an wants to merge 1 commit into
telegramdesktop:devfrom
meh7an:fix/forum-topic-icon-alignment
Open

meh7an wants to merge 1 commit into
telegramdesktop:devfrom
meh7an:fix/forum-topic-icon-alignment

Conversation

@meh7an

@meh7an meh7an commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

In the collapsed chat list, ForumTopic::paintUserpic() centers a topic's icon vertically within the height of its row style, st::forumTopicRow (54px). Collapsed topic rows are taller than that: Row::recountHeight() interpolates a topic row's height to st::defaultDialogRow.height (62px) as the list narrows. So in the collapsed list the icon was drawn 4px above the center of its row.

Both narrow branches of paintUserpic(), for custom emoji icons and for default icons, now center within st::defaultDialogRow.height, the height collapsed rows actually have. The wide layout positions the icon from the row padding and is unchanged, so the expanded topics list and the topic list in the forward box look the same as before.

Testing

Built and tested on macOS (Debug):

  • In the collapsed chat list, topic icons are vertically centered in their rows.
  • The expanded topics list and the topic list in the forward box are unchanged.

Screenshots

image image

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