Update polls icons (#2163)

* Add new polls icons

* Fix preview tests

* Update UI tests

* Add polls reply view test
pull/2168/head
Alfonso Grillo 2023-11-24 15:39:53 +01:00 committed by GitHub
parent 59eb253980
commit 81373b0d98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
49 changed files with 92 additions and 619 deletions

View File

@ -1,137 +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.105882 0.113725 0.133333 scn
15.000000 8.617193 m
15.000000 1.666666 l
15.000000 1.208333 14.836806 0.815971 14.510417 0.489583 c
14.184029 0.163194 13.791667 0.000000 13.333334 0.000000 c
1.666667 0.000000 l
1.208333 0.000000 0.815972 0.163194 0.489583 0.489583 c
0.163194 0.815971 0.000000 1.208333 0.000000 1.666666 c
0.000000 13.333333 l
0.000000 13.791667 0.163194 14.184028 0.489583 14.510417 c
0.815972 14.836805 1.208333 15.000000 1.666667 15.000000 c
8.618215 15.000000 l
8.433891 14.478710 8.333564 13.917734 8.333496 13.333333 c
1.666667 13.333333 l
1.666667 1.666666 l
13.333334 1.666666 l
13.333334 8.332741 l
13.333388 8.332741 13.333442 8.332741 13.333496 8.332741 c
13.917828 8.332741 14.478747 8.432978 15.000000 8.617193 c
h
4.760417 3.572916 m
4.600695 3.413194 4.402778 3.333333 4.166667 3.333333 c
3.930556 3.333333 3.732639 3.413194 3.572917 3.572916 c
3.413195 3.732638 3.333333 3.930555 3.333333 4.166666 c
3.333333 8.333333 l
3.333333 8.569445 3.413195 8.767361 3.572917 8.927083 c
3.732639 9.086805 3.930556 9.166666 4.166667 9.166666 c
4.402778 9.166666 4.600695 9.086805 4.760417 8.927083 c
4.920139 8.767361 5.000000 8.569445 5.000000 8.333333 c
5.000000 4.166666 l
5.000000 3.930555 4.920139 3.732638 4.760417 3.572916 c
h
8.093750 3.572916 m
7.934028 3.413194 7.736111 3.333333 7.500000 3.333333 c
7.263889 3.333333 7.065972 3.413194 6.906250 3.572916 c
6.746528 3.732638 6.666667 3.930555 6.666667 4.166666 c
6.666667 10.833333 l
6.666667 11.069445 6.746528 11.267361 6.906250 11.427083 c
7.065972 11.586805 7.263889 11.666666 7.500000 11.666666 c
7.736111 11.666666 7.934028 11.586805 8.093750 11.427083 c
8.253472 11.267361 8.333334 11.069445 8.333334 10.833333 c
8.333334 4.166666 l
8.333334 3.930555 8.253472 3.732638 8.093750 3.572916 c
h
11.427084 3.572916 m
11.267362 3.413194 11.069445 3.333333 10.833334 3.333333 c
10.597222 3.333333 10.399306 3.413194 10.239584 3.572916 c
10.079862 3.732638 10.000000 3.930555 10.000000 4.166666 c
10.000000 5.833333 l
10.000000 6.069444 10.079862 6.267361 10.239584 6.427083 c
10.399306 6.586805 10.597222 6.666666 10.833334 6.666666 c
11.069445 6.666666 11.267362 6.586805 11.427084 6.427083 c
11.586806 6.267361 11.666667 6.069444 11.666667 5.833333 c
11.666667 4.166666 l
11.666667 3.930555 11.586806 3.732638 11.427084 3.572916 c
h
f*
n
Q
q
1.000000 0.000000 -0.000000 1.000000 10.000000 10.667969 cm
0.105882 0.113725 0.133333 scn
6.422589 4.919985 m
6.748026 4.594548 6.748026 4.066910 6.422589 3.741474 c
3.089256 0.408141 l
2.763819 0.082704 2.236181 0.082704 1.910744 0.408141 c
0.244078 2.074807 l
-0.081359 2.400244 -0.081359 2.927881 0.244078 3.253318 c
0.569515 3.578755 1.097152 3.578755 1.422589 3.253318 c
2.500000 2.175907 l
5.244078 4.919985 l
5.569515 5.245422 6.097153 5.245422 6.422589 4.919985 c
h
f*
n
Q
endstream
endobj
3 0 obj
2894
endobj
4 0 obj
<< /Annots []
/Type /Page
/MediaBox [ 0.000000 0.000000 16.666504 15.832031 ]
/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
0000002984 00000 n
0000003007 00000 n
0000003180 00000 n
0000003254 00000 n
trailer
<< /ID [ (some) (id) ]
/Root 6 0 R
/Size 7
>>
startxref
3313
%%EOF

View File

@ -1,7 +1,7 @@
{
"images" : [
{
"filename" : "ended-poll.pdf",
"filename" : "polls-end.svg",
"idiom" : "universal"
}
],

View File

@ -0,0 +1,8 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M21 10.6586V19C21 19.55 20.8042 20.0208 20.4125 20.4125C20.0208 20.8042 19.55 21 19 21H5C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H13.3414C13.1203 3.62556 13 4.29873 13 5L5 5V19H19V11C19.7013 11 20.3744 10.8797 21 10.6586Z" fill="#1B1D22"/>
<path d="M13.8027 8C14.2671 8.80277 14.9121 9.48797 15.6822 10H13C12.7167 10 12.4792 9.90417 12.2875 9.7125C12.0958 9.52083 12 9.28333 12 9C12 8.71667 12.0958 8.47917 12.2875 8.2875C12.4792 8.09583 12.7167 8 13 8H13.8027Z" fill="#1B1D22"/>
<path d="M16.7125 15.7125C16.5208 15.9042 16.2833 16 16 16H13C12.7167 16 12.4792 15.9042 12.2875 15.7125C12.0958 15.5208 12 15.2833 12 15C12 14.7167 12.0958 14.4792 12.2875 14.2875C12.4792 14.0958 12.7167 14 13 14H16C16.2833 14 16.5208 14.0958 16.7125 14.2875C16.9042 14.4792 17 14.7167 17 15C17 15.2833 16.9042 15.5208 16.7125 15.7125Z" fill="#1B1D22"/>
<path d="M10.4125 10.4125C10.0208 10.8042 9.55 11 9 11C8.45 11 7.97917 10.8042 7.5875 10.4125C7.19583 10.0208 7 9.55 7 9C7 8.45 7.19583 7.97917 7.5875 7.5875C7.97917 7.19583 8.45 7 9 7C9.55 7 10.0208 7.19583 10.4125 7.5875C10.8042 7.97917 11 8.45 11 9C11 9.55 10.8042 10.0208 10.4125 10.4125Z" fill="#1B1D22"/>
<path d="M10.4125 16.4125C10.0208 16.8042 9.55 17 9 17C8.45 17 7.97917 16.8042 7.5875 16.4125C7.19583 16.0208 7 15.55 7 15C7 14.45 7.19583 13.9792 7.5875 13.5875C7.97917 13.1958 8.45 13 9 13C9.55 13 10.0208 13.1958 10.4125 13.5875C10.8042 13.9792 11 14.45 11 15C11 15.55 10.8042 16.0208 10.4125 16.4125Z" fill="#1B1D22"/>
<path d="M22.7071 2.29289C23.0976 2.68342 23.0976 3.31658 22.7071 3.70711L18.7071 7.70711C18.3166 8.09763 17.6834 8.09763 17.2929 7.70711L15.2929 5.70711C14.9024 5.31658 14.9024 4.68342 15.2929 4.29289C15.6834 3.90237 16.3166 3.90237 16.7071 4.29289L18 5.58579L21.2929 2.29289C21.6834 1.90237 22.3166 1.90237 22.7071 2.29289Z" fill="#1B1D22"/>
</svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -1,7 +1,7 @@
{
"images" : [
{
"filename" : "timeline-poll.pdf",
"filename" : "polls.svg",
"idiom" : "universal"
}
],

View File

@ -0,0 +1,3 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M16 10C16.2833 10 16.5208 9.90417 16.7125 9.7125C16.9042 9.52083 17 9.28333 17 9C17 8.71667 16.9042 8.47917 16.7125 8.2875C16.5208 8.09583 16.2833 8 16 8H13C12.7167 8 12.4792 8.09583 12.2875 8.2875C12.0958 8.47917 12 8.71667 12 9C12 9.28333 12.0958 9.52083 12.2875 9.7125C12.4792 9.90417 12.7167 10 13 10H16ZM16 16C16.2833 16 16.5208 15.9042 16.7125 15.7125C16.9042 15.5208 17 15.2833 17 15C17 14.7167 16.9042 14.4792 16.7125 14.2875C16.5208 14.0958 16.2833 14 16 14H13C12.7167 14 12.4792 14.0958 12.2875 14.2875C12.0958 14.4792 12 14.7167 12 15C12 15.2833 12.0958 15.5208 12.2875 15.7125C12.4792 15.9042 12.7167 16 13 16H16ZM9 11C9.55 11 10.0208 10.8042 10.4125 10.4125C10.8042 10.0208 11 9.55 11 9C11 8.45 10.8042 7.97917 10.4125 7.5875C10.0208 7.19583 9.55 7 9 7C8.45 7 7.97917 7.19583 7.5875 7.5875C7.19583 7.97917 7 8.45 7 9C7 9.55 7.19583 10.0208 7.5875 10.4125C7.97917 10.8042 8.45 11 9 11ZM9 17C9.55 17 10.0208 16.8042 10.4125 16.4125C10.8042 16.0208 11 15.55 11 15C11 14.45 10.8042 13.9792 10.4125 13.5875C10.0208 13.1958 9.55 13 9 13C8.45 13 7.97917 13.1958 7.5875 13.5875C7.19583 13.9792 7 14.45 7 15C7 15.55 7.19583 16.0208 7.5875 16.4125C7.97917 16.8042 8.45 17 9 17ZM5 21C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H19C19.55 3 20.0208 3.19583 20.4125 3.5875C20.8042 3.97917 21 4.45 21 5V19C21 19.55 20.8042 20.0208 20.4125 20.4125C20.0208 20.8042 19.55 21 19 21H5ZM5 19H19V5H5V19Z" fill="#1B1D22"/>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -1,16 +0,0 @@
{
"images" : [
{
"filename" : "timeline-ended-poll.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true,
"template-rendering-intent" : "template"
}
}

View File

@ -1,154 +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 2.500000 13.167969 cm
0.105882 0.113725 0.133333 scn
13.089256 0.408141 m
16.422588 3.741474 l
16.748028 4.066910 16.748028 4.594548 16.422588 4.919985 c
16.097153 5.245422 15.569514 5.245422 15.244078 4.919985 c
12.500001 2.175907 l
11.422589 3.253318 l
11.097153 3.578755 10.569515 3.578755 10.244079 3.253318 c
9.918641 2.927881 9.918641 2.400244 10.244079 2.074807 c
11.910745 0.408141 l
12.236181 0.082704 12.763820 0.082704 13.089256 0.408141 c
h
f
n
Q
q
1.000000 0.000000 -0.000000 1.000000 2.500000 3.332031 cm
0.105882 0.113725 0.133333 scn
15.000001 0.833334 m
15.000001 7.784510 l
14.478703 7.600257 13.917727 7.500000 13.333334 7.500000 c
13.333334 0.833334 l
1.666667 0.833334 l
1.666667 12.500000 l
8.333334 12.500000 l
8.333334 13.084393 8.433591 13.645369 8.617844 14.166667 c
1.666667 14.166667 l
1.208333 14.166667 0.815972 14.003472 0.489583 13.677084 c
0.163194 13.350695 0.000000 12.958334 0.000000 12.500000 c
0.000000 0.833334 l
0.000000 0.375001 0.163194 -0.017362 0.489583 -0.343750 c
0.815972 -0.670138 1.208333 -0.833333 1.666667 -0.833333 c
13.333334 -0.833333 l
13.791667 -0.833333 14.184029 -0.670138 14.510418 -0.343750 c
14.836806 -0.017362 15.000001 0.375001 15.000001 0.833334 c
h
f
n
Q
q
1.000000 0.000000 -0.000000 1.000000 2.500000 12.498047 cm
0.105882 0.113725 0.133333 scn
4.166667 -6.666016 m
4.402778 -6.666016 4.600694 -6.586154 4.760417 -6.426432 c
4.920139 -6.266709 5.000000 -6.068792 5.000000 -5.832682 c
5.000000 -1.666016 l
5.000000 -1.429905 4.920139 -1.231987 4.760417 -1.072266 c
4.600694 -0.912543 4.402778 -0.832682 4.166667 -0.832682 c
3.930556 -0.832682 3.732639 -0.912543 3.572917 -1.072266 c
3.413195 -1.231987 3.333333 -1.429905 3.333333 -1.666016 c
3.333333 -5.832682 l
3.333333 -6.068792 3.413195 -6.266709 3.572917 -6.426432 c
3.732639 -6.586154 3.930556 -6.666016 4.166667 -6.666016 c
h
f
n
Q
q
1.000000 0.000000 -0.000000 1.000000 2.500000 9.998047 cm
0.105882 0.113725 0.133333 scn
7.500000 -4.166016 m
7.736111 -4.166016 7.934028 -4.086154 8.093750 -3.926432 c
8.253472 -3.766709 8.333334 -3.568792 8.333334 -3.332682 c
8.333334 3.333984 l
8.333334 3.570096 8.253472 3.768013 8.093750 3.927734 c
7.934028 4.087457 7.736111 4.167318 7.500000 4.167318 c
7.263889 4.167318 7.065973 4.087457 6.906250 3.927734 c
6.746528 3.768013 6.666667 3.570096 6.666667 3.333984 c
6.666667 -3.332682 l
6.666667 -3.568792 6.746528 -3.766709 6.906250 -3.926432 c
7.065973 -4.086154 7.263889 -4.166016 7.500000 -4.166016 c
h
f
n
Q
q
1.000000 0.000000 -0.000000 1.000000 2.500000 14.998047 cm
0.105882 0.113725 0.133333 scn
10.833334 -9.166016 m
11.069445 -9.166016 11.267362 -9.086154 11.427084 -8.926432 c
11.586805 -8.766709 11.666667 -8.568792 11.666667 -8.332682 c
11.666667 -6.666016 l
11.666667 -6.429904 11.586805 -6.231988 11.427084 -6.072266 c
11.267362 -5.912542 11.069445 -5.832682 10.833334 -5.832682 c
10.597222 -5.832682 10.399306 -5.912542 10.239584 -6.072266 c
10.079862 -6.231988 10.000000 -6.429904 10.000000 -6.666016 c
10.000000 -8.332682 l
10.000000 -8.568792 10.079862 -8.766709 10.239584 -8.926432 c
10.399306 -9.086154 10.597222 -9.166016 10.833334 -9.166016 c
h
f
n
Q
endstream
endobj
3 0 obj
3206
endobj
4 0 obj
<< /Annots []
/Type /Page
/MediaBox [ 0.000000 0.000000 20.000000 20.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
0000003296 00000 n
0000003319 00000 n
0000003492 00000 n
0000003566 00000 n
trailer
<< /ID [ (some) (id) ]
/Root 6 0 R
/Size 7
>>
startxref
3625
%%EOF

View File

@ -1,16 +0,0 @@
{
"images" : [
{
"filename" : "timeline-poll-attachment.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true,
"template-rendering-intent" : "template"
}
}

View File

@ -1,95 +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 2.000000 3.000000 cm
0.000000 0.000000 0.000000 scn
4.500000 0.000000 m
1.000000 0.000000 l
0.450000 0.000000 0.000000 0.450001 0.000000 1.000000 c
0.000000 11.000000 l
0.000000 11.550000 0.450000 12.000000 1.000000 12.000000 c
4.500000 12.000000 l
5.050000 12.000000 5.500000 11.550000 5.500000 11.000000 c
5.500000 1.000000 l
5.500000 0.450001 5.050000 0.000000 4.500000 0.000000 c
h
11.750000 18.000000 m
8.250000 18.000000 l
7.700000 18.000000 7.250000 17.549999 7.250000 17.000000 c
7.250000 1.000000 l
7.250000 0.450001 7.700000 0.000000 8.250000 0.000000 c
11.750000 0.000000 l
12.300000 0.000000 12.750000 0.450001 12.750000 1.000000 c
12.750000 17.000000 l
12.750000 17.549999 12.300000 18.000000 11.750000 18.000000 c
h
19.000000 10.000000 m
15.500000 10.000000 l
14.950000 10.000000 14.500000 9.550000 14.500000 9.000000 c
14.500000 1.000000 l
14.500000 0.450001 14.950000 0.000000 15.500000 0.000000 c
19.000000 0.000000 l
19.549999 0.000000 20.000000 0.450001 20.000000 1.000000 c
20.000000 9.000000 l
20.000000 9.550000 19.549999 10.000000 19.000000 10.000000 c
h
f
n
Q
endstream
endobj
3 0 obj
1151
endobj
4 0 obj
<< /Annots []
/Type /Page
/MediaBox [ 0.000000 0.000000 24.000000 24.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
0000001241 00000 n
0000001264 00000 n
0000001437 00000 n
0000001511 00000 n
trailer
<< /ID [ (some) (id) ]
/Root 6 0 R
/Size 7
>>
startxref
1570
%%EOF

View File

@ -1,121 +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 2.750000 2.750000 cm
0.105882 0.113725 0.133333 scn
4.583333 3.666666 m
4.843056 3.666666 5.060764 3.754514 5.236458 3.930208 c
5.412153 4.105903 5.500000 4.323611 5.500000 4.583333 c
5.500000 9.166666 l
5.500000 9.426389 5.412153 9.644096 5.236458 9.819792 c
5.060764 9.995485 4.843056 10.083333 4.583333 10.083333 c
4.323611 10.083333 4.105903 9.995485 3.930208 9.819792 c
3.754514 9.644096 3.666667 9.426389 3.666667 9.166666 c
3.666667 4.583333 l
3.666667 4.323611 3.754514 4.105903 3.930208 3.930208 c
4.105903 3.754514 4.323611 3.666666 4.583333 3.666666 c
h
8.250000 3.666666 m
8.509723 3.666666 8.727430 3.754514 8.903125 3.930208 c
9.078819 4.105903 9.166667 4.323611 9.166667 4.583333 c
9.166667 11.916666 l
9.166667 12.176389 9.078819 12.394097 8.903125 12.569792 c
8.727430 12.745486 8.509723 12.833333 8.250000 12.833333 c
7.990278 12.833333 7.772570 12.745486 7.596875 12.569792 c
7.421181 12.394097 7.333333 12.176389 7.333333 11.916666 c
7.333333 4.583333 l
7.333333 4.323611 7.421181 4.105903 7.596875 3.930208 c
7.772570 3.754514 7.990278 3.666666 8.250000 3.666666 c
h
11.916667 3.666666 m
12.176389 3.666666 12.394097 3.754514 12.569792 3.930208 c
12.745486 4.105903 12.833334 4.323611 12.833334 4.583333 c
12.833334 6.416666 l
12.833334 6.676389 12.745486 6.894097 12.569792 7.069792 c
12.394097 7.245486 12.176389 7.333333 11.916667 7.333333 c
11.656944 7.333333 11.439237 7.245486 11.263542 7.069792 c
11.087848 6.894097 11.000000 6.676389 11.000000 6.416666 c
11.000000 4.583333 l
11.000000 4.323611 11.087848 4.105903 11.263542 3.930208 c
11.439237 3.754514 11.656944 3.666666 11.916667 3.666666 c
h
1.833333 0.000000 m
1.329167 0.000000 0.897569 0.179514 0.538542 0.538542 c
0.179514 0.897569 0.000000 1.329166 0.000000 1.833333 c
0.000000 14.666667 l
0.000000 15.170834 0.179514 15.602430 0.538542 15.961458 c
0.897569 16.320486 1.329167 16.500000 1.833333 16.500000 c
14.666667 16.500000 l
15.170834 16.500000 15.602431 16.320486 15.961458 15.961458 c
16.320486 15.602430 16.500000 15.170834 16.500000 14.666667 c
16.500000 1.833333 l
16.500000 1.329166 16.320486 0.897569 15.961458 0.538542 c
15.602431 0.179514 15.170834 0.000000 14.666667 0.000000 c
1.833333 0.000000 l
h
1.833333 1.833333 m
14.666667 1.833333 l
14.666667 14.666667 l
1.833333 14.666667 l
1.833333 1.833333 l
h
f
n
Q
endstream
endobj
3 0 obj
2382
endobj
4 0 obj
<< /Annots []
/Type /Page
/MediaBox [ 0.000000 0.000000 22.000000 22.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
0000002472 00000 n
0000002495 00000 n
0000002668 00000 n
0000002742 00000 n
trailer
<< /ID [ (some) (id) ]
/Root 6 0 R
/Size 7
>>
startxref
2801
%%EOF

View File

@ -61,7 +61,6 @@ internal enum Asset {
internal static let devices = ImageAsset(name: "images/devices")
internal static let document = ImageAsset(name: "images/document")
internal static let decryptionError = ImageAsset(name: "images/decryption-error")
internal static let endedPoll = ImageAsset(name: "images/ended-poll")
internal static let settingsIconWithBadge = ImageAsset(name: "images/settings-icon-with-badge")
internal static let signOut = ImageAsset(name: "images/sign-out")
internal static let launchBackground = ImageAsset(name: "images/launch-background")
@ -72,6 +71,8 @@ internal enum Asset {
internal static let lock = ImageAsset(name: "images/lock")
internal static let mediaPause = ImageAsset(name: "images/media-pause")
internal static let mediaPlay = ImageAsset(name: "images/media-play")
internal static let pollsEnd = ImageAsset(name: "images/polls-end")
internal static let polls = ImageAsset(name: "images/polls")
internal static let secureBackupIcon = ImageAsset(name: "images/secure-backup-icon")
internal static let secureBackupOff = ImageAsset(name: "images/secure-backup-off")
internal static let secureBackupOn = ImageAsset(name: "images/secure-backup-on")
@ -82,9 +83,6 @@ internal enum Asset {
internal static let forward = ImageAsset(name: "images/forward")
internal static let reply = ImageAsset(name: "images/reply")
internal static let viewSource = ImageAsset(name: "images/view-source")
internal static let timelineEndedPoll = ImageAsset(name: "images/timeline-ended-poll")
internal static let timelinePollAttachment = ImageAsset(name: "images/timeline-poll-attachment")
internal static let timelinePoll = ImageAsset(name: "images/timeline-poll")
internal static let userAdd = ImageAsset(name: "images/user-add")
internal static let user = ImageAsset(name: "images/user")
internal static let waitingGradient = ImageAsset(name: "images/waiting-gradient")

View File

@ -79,7 +79,7 @@ struct RoomAttachmentPicker: View {
context.showAttachmentPopover = false
context.send(viewAction: .displayNewPollForm)
} label: {
Label(L10n.screenRoomAttachmentSourcePoll, icon: \.polls)
Label(L10n.screenRoomAttachmentSourcePoll, iconAsset: Asset.Images.polls)
.labelStyle(.menuSheet)
}
.accessibilityIdentifier(A11yIdentifiers.roomScreen.attachmentPickerPoll)

View File

@ -80,7 +80,7 @@ struct TimelineReplyView: View {
ReplyView(sender: sender,
plainBody: question,
formattedBody: nil,
icon: .init(kind: .iconAsset(Asset.Images.timelinePoll), cornerRadii: iconCornerRadii))
icon: .init(kind: .iconAsset(Asset.Images.polls), cornerRadii: iconCornerRadii))
}
default:
LoadingReplyView()
@ -112,7 +112,7 @@ struct TimelineReplyView: View {
case iconAsset(ImageAsset)
case icon(KeyPath<CompoundIcons, Image>)
}
let kind: Kind
let cornerRadii: Double
}
@ -292,7 +292,10 @@ struct TimelineReplyView_Previews: PreviewProvider, TestablePreview {
eventContent: .message(.notice(.init(body: "", formattedBody: attributedStringWithMention))))),
TimelineReplyView(placement: .timeline,
timelineItemReplyDetails: .loaded(sender: .init(id: "", displayName: "Bob"),
eventContent: .message(.notice(.init(body: "", formattedBody: attributedStringWithAtRoomMention)))))
eventContent: .message(.notice(.init(body: "", formattedBody: attributedStringWithAtRoomMention))))),
TimelineReplyView(placement: .timeline,
timelineItemReplyDetails: .loaded(sender: .init(id: "", displayName: "Bob"),
eventContent: .poll(question: "Do you like polls?")))
]
}

View File

@ -47,7 +47,7 @@ struct PollRoomTimelineView: View {
private var questionView: some View {
HStack(alignment: .top, spacing: 12) {
let asset = poll.hasEnded ? Asset.Images.timelineEndedPoll : Asset.Images.timelinePoll
let asset = poll.hasEnded ? Asset.Images.pollsEnd : Asset.Images.polls
Image(asset.name)
.resizable()

View File

@ -121,7 +121,7 @@ enum TimelineItemMenuAction: Identifiable, Hashable {
case .react:
Label(L10n.actionReact, iconAsset: Asset.Images.addReaction)
case .endPoll:
Label(L10n.actionEndPoll, iconAsset: Asset.Images.endedPoll)
Label(L10n.actionEndPoll, iconAsset: Asset.Images.pollsEnd)
}
}
}

View File

@ -37,7 +37,7 @@ class PollFormScreenUITests: XCTestCase {
option2TextField.tap()
option2TextField.typeText("No\n")
let createButton = app.buttons[A11yIdentifiers.pollFormScreen.create]
let createButton = app.buttons[A11yIdentifiers.pollFormScreen.submit]
XCTAssertTrue(createButton.isEnabled)
try await app.assertScreenshot(.createPoll, step: 1)
@ -45,7 +45,7 @@ class PollFormScreenUITests: XCTestCase {
func testMaxOptions() async throws {
let app = Application.launch(.createPoll)
let createButton = app.buttons[A11yIdentifiers.pollFormScreen.create]
let createButton = app.buttons[A11yIdentifiers.pollFormScreen.submit]
let addOption = app.buttons[A11yIdentifiers.pollFormScreen.addOption]
for _ in 1...18 {

Binary file not shown.