Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: (ement-room--event-body-face) variable-pitch face consistency #307

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

phil-s
Copy link

@phil-s phil-s commented Oct 12, 2024

For HTML messages we end up with face specs such as:

(shr-text (:inherit (ement-room-mention ement-room-message-text)))

However for plain text messages, with ement-use-variable-pitch enabled, we ended up with a different arrangement:

(:inherit (ement-room-mention ement-room-message-text shr-text))

That could produce some rendering inconsistencies, so this change ensures the plain text face spec matches the HTML spec exactly when ement-use-variable-pitch is enabled.

For HTML messages we end up with face specs such as:

 (shr-text (:inherit (ement-room-mention ement-room-message-text)))

However for plain text messages, with `ement-use-variable-pitch'
enabled, we ended up with a different arrangement:

 (:inherit (ement-room-mention ement-room-message-text shr-text))

That could produce some rendering inconsistencies, so this change
ensures the plain text face spec matches the HTML spec exactly when
`ement-use-variable-pitch' is enabled.
@alphapapa alphapapa added this to the v0.17 milestone Oct 12, 2024
@alphapapa alphapapa self-assigned this Oct 12, 2024
@alphapapa alphapapa added bug Something isn't working priority:B labels Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority:B
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants