Repository navigation
Conversation
The message body and compose panels use QWebEngineView, which renders CSS pt sizes larger than QFont point sizes in native Qt widgets like QTreeView — especially on macOS Retina displays. This causes the message body to appear noticeably larger than the thread list and header panels even when font sizes match. Extract the hardcoded setZoomFactor(1.2) into a configurable message_zoom setting so users can compensate for this discrepancy. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
laarmen
left a comment
There was a problem hiding this comment.
Good idea, however I think the documentation needs some work.
| Retina displays. This means the message body appears bigger than the thread | ||
| list and header panels even when the configured font sizes match. Adjust | ||
| this factor to compensate — values below 1.0 shrink the web view to better | ||
| match the surrounding Qt widgets. |
There was a problem hiding this comment.
issue: most of this isn't relevant for documenting a config knob.
The user doesn't care about QTreeView vs QWebEngineView, they just want to know what will change when they turn this knob in a given direction — that would be the last sentence, except for web view being an implementation detail. You might want to mention instead that this is useful for HTML payloads since they don't necessarily take message_font_size into account.
There was a problem hiding this comment.
While I agree, I'd also be fine to merge this as-is given the technical nature of Dodo users. I think it's fine for some implementation details to leak through if it helps users understand what the knob is for.
| Retina displays. This means the message body appears bigger than the thread | ||
| list and header panels even when the configured font sizes match. Adjust | ||
| this factor to compensate — values below 1.0 shrink the web view to better | ||
| match the surrounding Qt widgets. |
There was a problem hiding this comment.
While I agree, I'd also be fine to merge this as-is given the technical nature of Dodo users. I think it's fine for some implementation details to leak through if it helps users understand what the knob is for.
Summary
Adds a
message_zoomsetting (default1.0) that lets users scale the zoom level of the HTML message viewer and the compose view.This is useful on HiDPI displays or when the system font size differs from what the web engine assumes.
Usage in
config.py:Test plan
message_zoom = 1.5and verify message text is larger in thread and compose views