diff options
| author | Danilo M. <danix@danix.xyz> | 2026-08-26 15:50:33 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-08-26 15:50:33 +0200 |
| commit | 5e769b073062a8913d2c4250d079aeb2d7d7b0e8 (patch) | |
| tree | 4b2078bebb96ba2b2f6c0270aecb04dd2c1233f0 /src/cardlayout.h | |
| parent | c3cfd28844c34aa7f7b390215f73d0b56534bdd0 (diff) | |
| download | qtmaildir-5e769b073062a8913d2c4250d079aeb2d7d7b0e8.tar.gz qtmaildir-5e769b073062a8913d2c4250d079aeb2d7d7b0e8.zip | |
feat: reserve a card's avatar gutter
Diffstat (limited to 'src/cardlayout.h')
| -rw-r--r-- | src/cardlayout.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cardlayout.h b/src/cardlayout.h index 92edd96..cd4eb76 100644 --- a/src/cardlayout.h +++ b/src/cardlayout.h @@ -142,6 +142,16 @@ struct CardLayout /// without ever drawing two lines. Empty on a reply. QRect accentRect; + /// The sender's avatar squircle, in its own gutter before the text. + /// + /// On EVERY row, thread and reply alike: a reply is where the sender + /// actually changes, so it is the row whose author is most worth seeing. + /// Square, and inset vertically so it does not touch the card's edges. + QRect avatarRect; + + /// Space between the avatar and the text that follows it. + static constexpr int kAvatarGap = 8; + /// One full-height vertical line per depth level, outermost first. QVector<QRect> spines; |
