diff options
| author | Danilo M. <danix@danix.xyz> | 2026-08-28 11:44:06 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-08-28 11:44:06 +0200 |
| commit | 5f31a037a37a928a8e21fdf0950568a689e29fb8 (patch) | |
| tree | 644c9ce1b9117a28533e9f9c4cdf81c7289677cb /src/carddelegate.h | |
| parent | 20eb3877c4502a0b8ebe770a563066d8c85387ba (diff) | |
| download | qtmaildir-5f31a037a37a928a8e21fdf0950568a689e29fb8.tar.gz qtmaildir-5f31a037a37a928a8e21fdf0950568a689e29fb8.zip | |
refactor: remove the sibling chip tier
Nothing is a sibling any more: a conversation row draws the thread's tags
and a message row draws its own.
Diffstat (limited to 'src/carddelegate.h')
| -rw-r--r-- | src/carddelegate.h | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/carddelegate.h b/src/carddelegate.h index cfbd23e..528381c 100644 --- a/src/carddelegate.h +++ b/src/carddelegate.h @@ -95,23 +95,12 @@ public: /// colour reaches. static constexpr qreal kFadeFraction = 0.60; - /// A tag chip's colour, drained for the SIBLING tier (item 111). - /// - /// Saturation only: hue stays so the tag is still recognisable, and - /// lightness stays so `TagColors::textColourOn()` keeps choosing the same - /// text colour and the chip cannot become unreadable. Exposed for a test, - /// since "muted" has to be asserted on rather than eyeballed. - static QColor mutedChipColour(const QColor &chipColour); - - /// The size of one tag chip on a card, for either tier. + /// The size of one tag chip on a card, at full size. /// /// The delegate's own arithmetic rather than a duplicate of it: a test /// calling `TagChip::sizeFor` directly proves what that function does and - /// nothing about what the delegate ASKS for, which is where the padding - /// scale is chosen. A mutation dropping the scale at the call site - /// survived exactly that kind of test. - static QSize chipSize(const QFontMetrics &metrics, const QString &text, - bool own); + /// nothing about what the delegate ASKS for. + static QSize chipSize(const QFontMetrics &metrics, const QString &text); /// The squircle for one row, resolved from what the model supplies. /// |
