mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-02 10:22:35 +00:00
Continue conversion from AppAssets to shared Assets.
This commit is contained in:
1 parent
35be01c220
commit
39ffd38461
24 files changed
+78
-74
No files matched your search
@@ -25,16 +25,16 @@ final class ArticleExtractorButton: UIButton {
|
||||
switch buttonState {
|
||||
case .error:
|
||||
stripAnimatedSublayer()
|
||||
setImage(AppAssets.articleExtractorError, for: .normal)
|
||||
setImage(Assets.Images.articleExtractorError, for: .normal)
|
||||
case .animated:
|
||||
setImage(nil, for: .normal)
|
||||
setNeedsLayout()
|
||||
case .on:
|
||||
stripAnimatedSublayer()
|
||||
setImage(AppAssets.articleExtractorOn, for: .normal)
|
||||
setImage(Assets.Images.articleExtractorOn, for: .normal)
|
||||
case .off:
|
||||
stripAnimatedSublayer()
|
||||
setImage(AppAssets.articleExtractorOff, for: .normal)
|
||||
setImage(Assets.Images.articleExtractorOff, for: .normal)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -77,7 +77,7 @@ final class ArticleExtractorButton: UIButton {
|
||||
let images = [image1, image2, image1]
|
||||
|
||||
animatedLayer = CALayer()
|
||||
let imageSize = AppAssets.articleExtractorOff.size
|
||||
let imageSize = Assets.Images.articleExtractorOff.size
|
||||
animatedLayer!.bounds = CGRect(x: 0, y: 0, width: imageSize.width, height: imageSize.height)
|
||||
animatedLayer!.position = CGPoint(x: bounds.midX, y: bounds.midY)
|
||||
|
||||
|
||||
Reference in new issue
Block a user