mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-10 20:13:24 -08:00
Address review findings
This commit is contained in:
parent
44ac98885a
commit
4a0c956062
2 changed files with 9 additions and 3 deletions
|
|
@ -61,8 +61,10 @@ static const QMap<QPalette::ColorRole, const char *> ROLE_DESCRIPTIONS = {
|
|||
};
|
||||
|
||||
static const QMap<AppColor::Role, const char *> APP_ROLE_DESCRIPTIONS = {
|
||||
{AppColor::AccentStrong, QT_TR_NOOP("Vivid primary accent (e.g. home-tab button gradient start)")},
|
||||
{AppColor::AccentSoft, QT_TR_NOOP("Lightened, desaturated accent (e.g. home-tab button gradient end)")},
|
||||
{AppColor::AccentStrong,
|
||||
QT_TRANSLATE_NOOP("PaletteGridWidget", "Vivid primary accent (e.g. home-tab button gradient start)")},
|
||||
{AppColor::AccentSoft,
|
||||
QT_TRANSLATE_NOOP("PaletteGridWidget", "Lightened, desaturated accent (e.g. home-tab button gradient end)")},
|
||||
{AppColor::Positive,
|
||||
QT_TRANSLATE_NOOP("PaletteGridWidget", "Positive state and additive actions (ready, add, increment)")},
|
||||
{AppColor::Negative,
|
||||
|
|
|
|||
|
|
@ -256,7 +256,11 @@ private:
|
|||
// variant is never a bare digit, so the key spaces cannot collide. A
|
||||
// badge also varies by glyph color, because the same tone can switch
|
||||
// between a white and a near-black glyph at different lightnesses.
|
||||
const QColor tone = resolvedHasSentinel ? tint.resolve(mode) : QColor();
|
||||
// The selected-row contrast fallback exists for a thin glyph painted
|
||||
// directly on the highlight. A badge or sticker brings its own ring and
|
||||
// contrast glyph, so repainting its whole tone with HighlightedText
|
||||
// would collapse every badge on a selected row into one gray disc.
|
||||
const QColor tone = resolvedHasSentinel ? tint.resolve(treated ? QIcon::Normal : mode) : QColor();
|
||||
QByteArray variant;
|
||||
if (badge) {
|
||||
variant = QByteArrayLiteral("B|") + tone.name(QColor::HexRgb).toLatin1() + '|' +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue