Skip to content

Make the Text Size preference apply to the text in the diff view, not just the line numbers#2727

Merged
lucasderraugh merged 1 commit into
git-up:masterfrom
mluisbrown:michael/diff-view-variable-text-size
Oct 23, 2025
Merged

Make the Text Size preference apply to the text in the diff view, not just the line numbers#2727
lucasderraugh merged 1 commit into
git-up:masterfrom
mluisbrown:michael/diff-view-variable-text-size

Conversation

@mluisbrown
Copy link
Copy Markdown
Contributor

The Text Size setting in the preference pane currently only changes the size of the line numbers in the diff viewer, which is not that useful. Presumably it is supposed to also change the text size in the diff content.

This PR makes that change. The Text Size setting will now correctly change the size of the text in the diff content, not just the line numbers.

This addresses #470

Below are two screen shots with this change using the smallest and largest text settings.

GitUp2
GitUp1

…e diff view

instead of just the line numbers.
@git-up git-up deleted a comment from abdulrahman0305 Oct 23, 2025
Copy link
Copy Markdown
Collaborator

@lucasderraugh lucasderraugh left a comment

Choose a reason for hiding this comment

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

Good catch! This seems like a reasonable approach without having us unnecessarily calling logic in -updateLayoutForWidth:

@lucasderraugh
Copy link
Copy Markdown
Collaborator

To be clear, this was only a bug when updating while the view was visible, it would work if you updated outside of this being presented. Looks like UnifiedDiffView doesn't have the same checks so it already dynamically changes.

@lucasderraugh lucasderraugh merged commit 2d44826 into git-up:master Oct 23, 2025
@mluisbrown
Copy link
Copy Markdown
Contributor Author

To be clear, this was only a bug when updating while the view was visible, it would work if you updated outside of this being presented.

I tried changing the setting without the diff view being visible, but it still only changed the line number sizing.

However, not important now.

@mluisbrown mluisbrown deleted the michael/diff-view-variable-text-size branch October 23, 2025 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants