Skip to content

Commit

Permalink
fix: use shadows over drop_shaodws (V2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerixyz committed Nov 7, 2023
1 parent 178a9b3 commit 43f364c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/providers/seventv/SeventvPaints.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ std::vector<PaintDropShadow> parseDropShadows(const QJsonArray &dropShadows)

std::optional<std::shared_ptr<Paint>> parsePaint(const QJsonObject &paintJson)
{
qDebug() << paintJson;
const QString name = paintJson["name"].toString();
const QString id = paintJson["id"].toString();

Expand All @@ -93,7 +94,7 @@ std::optional<std::shared_ptr<Paint>> parsePaint(const QJsonObject &paintJson)

const QGradientStops stops = parsePaintStops(paintJson["stops"].toArray());

const auto shadows = parseDropShadows(paintJson["drop_shadows"].toArray());
const auto shadows = parseDropShadows(paintJson["shadows"].toArray());

const QString function = paintJson["function"].toString();
if (function == "LINEAR_GRADIENT" || function == "linear-gradient")
Expand Down

0 comments on commit 43f364c

Please sign in to comment.