Update stars graphics

This commit is contained in:
Ilya Laktyushin 2024-08-05 16:11:45 +02:00
parent 18e106a06a
commit 2b6636a019
15 changed files with 8 additions and 9 deletions

View File

@ -336,7 +336,7 @@ public final class StarsLabelComponent: CombinedComponent {
transition: context.transition
)
let iconSize = CGSize(width: 20.0, height: 20.0)
let iconSize = CGSize(width: 24.0, height: 24.0)
let icon = icon.update(
component: BundleIconComponent(
name: "Premium/Stars/StarLarge",

View File

@ -699,7 +699,7 @@ private final class StarsTransactionSheetContent: CombinedComponent {
originY += description.size.height + 10.0
}
let amountSpacing: CGFloat = 3.0
let amountSpacing: CGFloat = 1.0
var totalAmountWidth: CGFloat = amount.size.width + amountSpacing + amountStar.size.width
var amountOriginX: CGFloat = floor(context.availableSize.width - totalAmountWidth) / 2.0
if isRefund {
@ -746,8 +746,7 @@ private final class StarsTransactionSheetContent: CombinedComponent {
context.add(amountStar
.position(CGPoint(x: amountOriginX + amount.size.width + amountSpacing + amountStar.size.width / 2.0, y: amountOrigin + amountStar.size.height / 2.0))
)
context.add(table
.position(CGPoint(x: context.availableSize.width / 2.0, y: originY + table.size.height / 2.0))
)

View File

@ -161,7 +161,7 @@ final class StarsBalanceComponent: Component {
let titleFrame = CGRect(origin: CGPoint(x: origin + icon.size.width + spacing, y: contentHeight - 3.0), size: titleSize)
titleView.frame = titleFrame
self.icon.frame = CGRect(origin: CGPoint(x: origin, y: contentHeight + 2.0), size: icon.size)
self.icon.frame = CGRect(origin: CGPoint(x: origin, y: contentHeight), size: icon.size)
}
}
contentHeight += titleSize.height

View File

@ -1,7 +1,7 @@
{
"images" : [
{
"filename" : "balancestar_48 (2).pdf",
"filename" : "StarBalance.pdf",
"idiom" : "universal"
}
],

View File

@ -1,7 +1,7 @@
{
"images" : [
{
"filename" : "Star20 (3).pdf",
"filename" : "StarLarge.pdf",
"idiom" : "universal"
}
],

View File

@ -1,7 +1,7 @@
{
"images" : [
{
"filename" : "star_18 (3).pdf",
"filename" : "StarMedium.pdf",
"idiom" : "universal"
}
],

View File

@ -1,7 +1,7 @@
{
"images" : [
{
"filename" : "star_16 (3).pdf",
"filename" : "StarSmall.pdf",
"idiom" : "universal"
}
],