[TF-1630] Settings icons size improvements

This commit is contained in:
gmc 2024-09-16 17:14:13 +02:00
parent 4e8a693746
commit 9e66dc4a88
5 changed files with 10 additions and 111 deletions

View File

@ -276,6 +276,7 @@ enum Theme {
static let serviceIconSize: CGFloat = 40
static let settingsAccessoryViewSize: CGFloat = 20
static let settingsTableViewCellHeight: CGFloat = 44
static let settingsTableViewHeaderHeight: CGFloat = 54
static let settingsIconSize: CGFloat = 30

View File

@ -1,7 +1,7 @@
{
"images" : [
{
"filename" : "share.and.arrow.up.pdf",
"filename" : "shareIcon.pdf",
"idiom" : "universal"
}
],
@ -10,6 +10,7 @@
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true,
"template-rendering-intent" : "template"
}
}

View File

@ -1,109 +0,0 @@
%PDF-1.7
1 0 obj
<< >>
endobj
2 0 obj
<< /Length 3 0 R >>
stream
/DeviceRGB CS
/DeviceRGB cs
q
1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 cm
0.929412 0.109804 0.141176 scn
8.252991 7.285335 m
8.653079 7.285335 8.997341 7.620293 8.997341 8.011077 c
8.997341 17.566681 l
8.941515 18.962339 l
9.564909 18.301727 l
10.979176 16.794418 l
11.109437 16.645548 11.295525 16.571112 11.481612 16.571112 c
11.863092 16.571112 12.160832 16.850243 12.160832 17.231724 c
12.160832 17.427116 12.077093 17.575985 11.937528 17.715551 c
8.792645 20.748781 l
8.606557 20.934870 8.448382 21.000000 8.252991 21.000000 c
8.066903 21.000000 7.908728 20.934870 7.713336 20.748781 c
4.568454 17.715551 l
4.428888 17.575985 4.354453 17.427116 4.354453 17.231724 c
4.354453 16.850243 4.633584 16.571112 5.024369 16.571112 c
5.201152 16.571112 5.405849 16.645548 5.536110 16.794418 c
6.941072 18.301727 l
7.573771 18.962339 l
7.517944 17.566681 l
7.517944 8.011077 l
7.517944 7.620293 7.852902 7.285335 8.252991 7.285335 c
h
2.921577 0.000000 m
13.593708 0.000000 l
15.538325 0.000000 16.515285 0.967657 16.515285 2.884359 c
16.515285 12.170137 l
16.515285 14.086842 15.538325 15.054497 13.593708 15.054497 c
10.997785 15.054497 l
10.997785 13.556491 l
13.565795 13.556491 l
14.486930 13.556491 15.017280 13.054054 15.017280 12.086398 c
15.017280 2.968100 l
15.017280 2.000443 14.486930 1.498007 13.565795 1.498007 c
2.940186 1.498007 l
2.009748 1.498007 1.498006 2.000443 1.498006 2.968100 c
1.498006 12.086398 l
1.498006 13.054054 2.009748 13.556491 2.940186 13.556491 c
5.517501 13.556491 l
5.517501 15.054497 l
2.921577 15.054497 l
0.976961 15.054497 0.000000 14.086842 0.000000 12.170137 c
0.000000 2.884359 l
0.000000 0.967657 0.976961 0.000000 2.921577 0.000000 c
h
f
n
Q
endstream
endobj
3 0 obj
1698
endobj
4 0 obj
<< /Annots []
/Type /Page
/MediaBox [ 0.000000 0.000000 16.515625 21.000000 ]
/Resources 1 0 R
/Contents 2 0 R
/Parent 5 0 R
>>
endobj
5 0 obj
<< /Kids [ 4 0 R ]
/Count 1
/Type /Pages
>>
endobj
6 0 obj
<< /Pages 5 0 R
/Type /Catalog
>>
endobj
xref
0 7
0000000000 65535 f
0000000010 00000 n
0000000034 00000 n
0000001788 00000 n
0000001811 00000 n
0000001984 00000 n
0000002058 00000 n
trailer
<< /ID [ (some) (id) ]
/Root 6 0 R
/Size 7
>>
startxref
2117
%%EOF

View File

@ -99,7 +99,8 @@ final class SettingsMenuTableViewCell: UITableViewCell {
private func commonInit() {
let iconSize = Theme.Metrics.settingsIconSize
let accessoryViewSize = Theme.Metrics.settingsAccessoryViewSize
preservesSuperviewLayoutMargins = true
contentView.preservesSuperviewLayoutMargins = true
@ -118,6 +119,11 @@ final class SettingsMenuTableViewCell: UITableViewCell {
settingsIcon.centerYAnchor.constraint(equalTo: iconContainer.centerYAnchor)
])
NSLayoutConstraint.activate([
customViewContainer.widthAnchor.constraint(equalToConstant: accessoryViewSize),
customViewContainer.heightAnchor.constraint(equalToConstant: accessoryViewSize)
])
infoLabelContainer.addSubview(infoLabel)
infoLabel.pinToParent()