Skip to content

Commit 887d106

Browse files
committed
Various fixes
1 parent 8dc582a commit 887d106

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

submodules/TelegramUI/Components/Stars/ItemShimmeringLoadingComponent/Sources/ItemShimmeringLoadingComponent.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public final class ItemShimmeringLoadingComponent: Component {
7676
self.component = component
7777

7878
if previousCornerRadius != component.cornerRadius {
79-
self.borderView.image = generateFilledRoundedRectImage(size: CGSize(width: 24.0, height: 24.0), cornerRadius: component.cornerRadius, color: nil, strokeColor: .white, strokeWidth: 1.0 + UIScreenPixel, backgroundColor: nil)?.stretchableImage(withLeftCapWidth: Int(component.cornerRadius), topCapHeight: Int(component.cornerRadius)).withRenderingMode(.alwaysTemplate)
79+
self.borderView.image = generateFilledRoundedRectImage(size: CGSize(width: component.cornerRadius * 2.0 + 2.0, height: component.cornerRadius * 2.0 + 2.0), cornerRadius: component.cornerRadius, color: nil, strokeColor: .white, strokeWidth: 1.0 + UIScreenPixel, backgroundColor: nil)?.stretchableImage(withLeftCapWidth: Int(component.cornerRadius), topCapHeight: Int(component.cornerRadius)).withRenderingMode(.alwaysTemplate)
8080
}
8181

8282
self.borderView.tintColor = component.color

submodules/TelegramUI/Components/Stars/StarsPurchaseScreen/Sources/StarsPurchaseScreen.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,8 @@ private final class StarsPurchaseScreenContentComponent: CombinedComponent {
388388
highlighting: .disabled,
389389
updateIsHighlighted: { view, isHighlighted in
390390
let transition: ComponentTransition = .easeInOut(duration: 0.25)
391-
if let superview = view.superview {
392-
transition.setScale(view: superview, scale: isHighlighted ? 0.9 : 1.0)
391+
if let superview = view.superview?.superview?.superview?.superview {
392+
transition.setScale(view: superview, scale: isHighlighted ? 1.05 : 1.0)
393393
}
394394
}
395395
)))]
@@ -427,7 +427,7 @@ private final class StarsPurchaseScreenContentComponent: CombinedComponent {
427427
style: .glass,
428428
title: titleCombinedComponent,
429429
titleAlignment: .center,
430-
contentInsets: UIEdgeInsets(top: 7.0, left: 0.0, bottom: 7.0, right: 0.0),
430+
contentInsets: UIEdgeInsets(top: 11.0, left: 0.0, bottom: 11.0, right: 0.0),
431431
leftIcon: nil,
432432
accessory: .none,
433433
action: { _ in

0 commit comments

Comments
 (0)