diff --git a/Telegram/SourceFiles/ui/effects/premium.style b/Telegram/SourceFiles/ui/effects/premium.style index 684fab6c78..ef364e0fe0 100644 --- a/Telegram/SourceFiles/ui/effects/premium.style +++ b/Telegram/SourceFiles/ui/effects/premium.style @@ -27,6 +27,7 @@ PremiumBubble { font: font; } PremiumCover { + bg: color; starSize: size; starTopSkip: pixels; titlePadding: margins; @@ -41,6 +42,7 @@ premiumAboutTextStyle: TextStyle(defaultTextStyle) { lineHeight: 18px; } defaultPremiumCover: PremiumCover { + bg: boxBg; starSize: size(84px, 81px); starTopSkip: 37px; titlePadding: margins(0px, 18px, 0px, 11px); diff --git a/Telegram/SourceFiles/ui/effects/premium_top_bar.cpp b/Telegram/SourceFiles/ui/effects/premium_top_bar.cpp index 1d0b2cfbdb..2127d996c4 100644 --- a/Telegram/SourceFiles/ui/effects/premium_top_bar.cpp +++ b/Telegram/SourceFiles/ui/effects/premium_top_bar.cpp @@ -120,7 +120,7 @@ void TopBarAbstract::paintEdges(QPainter &p, const QBrush &brush) const { } void TopBarAbstract::paintEdges(QPainter &p) const { - paintEdges(p, st::boxBg); + paintEdges(p, st().bg); if (isDark() && st().additionalShadowForDarkThemes) { paintEdges(p, st::shadowFg); paintEdges(p, st::shadowFg); @@ -144,7 +144,7 @@ bool TopBarAbstract::isDark() const { void TopBarAbstract::computeIsDark() { const auto contrast = CountContrast( - st::boxBg->c, + st().bg->c, st::premiumButtonFg->c); _isDark = (contrast > kMinAcceptableContrast); }