diff options
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. /// |
