[TF-1659] fix radio button

This commit is contained in:
gmc 2024-09-13 00:43:52 +02:00
parent 7541244299
commit 3c5eeec975
7 changed files with 3 additions and 121 deletions

View File

@ -108,7 +108,7 @@ private final class Radio: UIView {
private let dimension: CGFloat = 20
private let deselectedImage: UIImageView = {
let imgView = UIImageView(image: Asset.radioDeselected.image
let imgView = UIImageView(image: Asset.radioSelectionDeselected.image
.withRenderingMode(.alwaysTemplate)
)
imgView.tintColor = Theme.Colors.Controls.inactive
@ -116,7 +116,7 @@ private final class Radio: UIView {
return imgView
}()
private let selectedImage: UIImageView = {
let imgView = UIImageView(image: Asset.radioSelected.image
let imgView = UIImageView(image: Asset.radioSelectionSelected.image
.withRenderingMode(.alwaysTemplate)
)
imgView.tintColor = Theme.Colors.Controls.active

View File

@ -1,12 +0,0 @@
{
"images" : [
{
"filename" : "RadioDeselected.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@ -1,92 +0,0 @@
%PDF-1.7
%äãÏÒ
3 0 obj
<</Length 2 0 R/Filter/FlateDecode/N 3/Range[0 1 0 1 0 1 ]>>
stream
xÚ}MKQ†_EȬ¤¢e<65>høQ$nÂ,B(Ɖ¾VãÕ4PfFJhmj_ôÚµéÔB¨VE®ŠvnÂEI·sKÛt/‡÷áåpî9çNäYÁt(-CY˜•V×Ö¥®*<ð¢nD4fê1Y^¤üèßS€Cè<43>_ÔJƼg·OŸ+7ÖþaírÿO:c2Ò…ÊtÃ2ñÈŽ¥ ¦À<C2A6>AMÎÚ|*8eóy3GUâÄWÄý,§¥‰ï‰}©?ÛÁ…|‰µzÝ÷¶8B1Œ$ CÅ<$(D&F~„š ;MîâH<C3A2>ŽQNãVfWôø¶^6¶²9KŠéz>#%ŠlÂ'…Á)@ì×~êÅeïí}¹íí•€¨s~Ýö”7àâèh{£e<1A>¸"ëš¡ýnÓy|bn†CöTƒ¯@w<>óúà<>Ò?U8o¨œQ=Çð\ýÚœg±
endstream
endobj
2 0 obj
351
endobj
6 0 obj
<</Length 5 0 R/Filter/FlateDecode>>
stream
xÚ]<5D>1Â0 EwŸ"3ƒ‰ë$&'`F  ²€D¹¿DÓÚ.­"ÅúŽ¿óß"f®9DLUº@ Ór<C393>w¸ÂŽçk ÷Uj5†vÆ¥§áSs¾€˜½3Õ:O!—‚¥½ö` Fé8³k]¯ª‡iªd1­©ÕªÊ7«Ö<C2AB>Õi±v¹{x:
ÿ¡P¡ä<EFBFBD>©
Q%×+6v9¸ÃBÆ<C386>IŠiZÒšuÇBÎ2ÿlVÞÂð
ó8À~os\Z
endstream
endobj
5 0 obj
188
endobj
11 0 obj
<</trapped (false)
/Creator (Serif Affinity Designer 1.9.1)
/Title (RadioDeselected.pdf)
/CreationDate (D:20210403204225+02'00')
/ModDate (D:20210403204225+02'00')
/Producer (PDFlib+PDI 9.2.0p5-i \(macOS\))
>>
endobj
13 0 obj
<</Length 12 0 R/Type/Metadata/Subtype/XML>>
stream
<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="" xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/">
<xmpMM:InstanceID>uuid:86BC19E9-4AFC-036B-32AF-6EFDEC9FF1A0</xmpMM:InstanceID>
<xmpMM:DocumentID>uuid:08FAD04D-109D-7427-614F-E80297D57C4F</xmpMM:DocumentID>
</rdf:Description>
<rdf:Description rdf:about="" xmlns:xmp="http://ns.adobe.com/xap/1.0/">
<xmp:CreateDate>2021-04-03T20:42:25+02:00</xmp:CreateDate>
<xmp:ModifyDate>2021-04-03T20:42:25+02:00</xmp:ModifyDate>
<xmp:CreatorTool>Serif Affinity Designer 1.9.1</xmp:CreatorTool>
<xmp:MetadataDate>2021-04-03T20:42:25+02:00</xmp:MetadataDate>
</rdf:Description>
<rdf:Description rdf:about="" xmlns:pdf="http://ns.adobe.com/pdf/1.3/">
<pdf:Producer>PDFlib+PDI 9.2.0p5-i (macOS)</pdf:Producer>
</rdf:Description>
<rdf:Description rdf:about="" xmlns:pdfx="http://ns.adobe.com/pdfx/1.3/">
<pdfx:trapped>false</pdfx:trapped>
</rdf:Description>
<rdf:Description rdf:about="" xmlns:dc="http://purl.org/dc/elements/1.1/">
<dc:title>
<rdf:Alt>
<rdf:li xml:lang="x-default">RadioDeselected.pdf</rdf:li>
</rdf:Alt>
</dc:title>
</rdf:Description>
</rdf:RDF>
</x:xmpmeta>
<?xpacket end="r"?>
endstream
endobj
12 0 obj
1502
endobj
14 0 obj
<</Type/Catalog/Pages 1 0 R/Metadata 13 0 R>>
endobj
10 0 obj
<</Length 15 0 R/Filter/FlateDecode/Type/ObjStm/N 5/First 27>>
stream
xÚm<EFBFBD>A @…ïû+æ´ŽY-$Âí&<16>"ìß·kAÍaxïñ†Ù€Ã|<08>€®Ç<À•ÇÜeÀ¶[ËVE/j2°£«[<5B>'QÉq E ,Á<>¼
C¾ŸtRh¡m2)ð­aB`UhÆ8—gOß(?gp­".û<>8g)à¿h
õà'ÙÑ×ÍÄÍ®<C38D>: 8ße§ )XϘãP“ÍÌ)5wÉ©t âj<C3A2>î{W¿<57>ÊôŒ¶“ï<>*Áû<ùÈ¿W
endstream
endobj
15 0 obj
204
endobj
16 0 obj
<</Filter/FlateDecode/Type/XRef/W[1 2 2]/Size 17/Root 14 0 R/Info 11 0 R/ID[<EA5EC3E685DDA8A3429410053F5CB01A><EA5EC3E685DDA8A3429410053F5CB01A>]/DecodeParms<</Columns 5/Predictor 12>>/Length 83 >>
stream
xÚ-ÊÁ @@Fá7¿Ù‹‹.tÁU'zRŒ´B°c'qù/O€»D²Zn<1B>ð dÜTr¼¥ä(>`*ÿo§¹tÎ5l»ðÚÃf m éá½ÚÆ
endstream
endobj
startxref
2967
%%EOF

View File

@ -1,12 +0,0 @@
{
"images" : [
{
"filename" : "RadioSelected.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@ -120,8 +120,6 @@ internal enum Asset {
internal static let passwordHide = ImageAsset(name: "PasswordHide")
internal static let passwordReveal = ImageAsset(name: "PasswordReveal")
internal static let permissionsPushNotifications = ImageAsset(name: "PermissionsPushNotifications")
internal static let radioDeselected = ImageAsset(name: "RadioDeselected")
internal static let radioSelected = ImageAsset(name: "RadioSelected")
internal static let radioSelectionDeselected = ImageAsset(name: "RadioSelectionDeselected")
internal static let radioSelectionSelected = ImageAsset(name: "RadioSelectionSelected")
internal static let refreshTokenCounter = ImageAsset(name: "RefreshTokenCounter")

View File

@ -235,7 +235,7 @@ extension TokensModuleInteractor: TokensModuleInteracting {
// MARK: - Tokens
func enableHOTPCounter(for secret: Secret) {
tokenInteractor.unlockCounter(for: secret, isInitialUnlock: false)
tokenInteractor.unlockCounter(for: secret, isInitialCounter: false)
}
func unlockConsumer(for consumer: TokenTimerConsumer) {