mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-10 20:13:24 -08:00
[Icons] Author neutral System icon ink
The System theme derived icon ink from the platform palette, which rendered blue under the default palette. Author Icon/IconStrong/IconSoft explicitly: a black ladder in light mode, a white ladder in dark mode. Pin authorship, achromaticity and ordering in the render test.
This commit is contained in:
parent
dcf1d9fcf9
commit
181bd9d02c
7 changed files with 70 additions and 38 deletions
|
|
@ -163,9 +163,9 @@ TEST(ThemeAppColorTest, SemanticDefaultsFollowTheScheme)
|
|||
EXPECT_EQ(defaultAppColor(AppColor::NegativeStrong, true), QColor(QStringLiteral("#ff8378")));
|
||||
EXPECT_EQ(defaultAppColor(AppColor::NegativeSoft, false), QColor(QStringLiteral("#935f5c")));
|
||||
EXPECT_EQ(defaultAppColor(AppColor::NegativeSoft, true), QColor(QStringLiteral("#c79e9b")));
|
||||
// Accent and neutral icon roles are derived from the palette, so they have
|
||||
// no static default. A theme with no palette (System) keeps following the
|
||||
// platform instead of pinning one scheme's ink.
|
||||
// Accent and neutral icon roles have no static default: an older theme
|
||||
// written before the roles existed falls back to deriving them from its
|
||||
// palette rather than pinning one scheme's ink.
|
||||
for (const bool dark : {false, true}) {
|
||||
EXPECT_FALSE(defaultAppColor(AppColor::AccentStrong, dark).isValid());
|
||||
EXPECT_FALSE(defaultAppColor(AppColor::AccentSoft, dark).isValid());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue