Skip to content

Commit bb03b8b

Browse files
author
Tebbe Ubben
committed
Show vote percentage
1 parent 972abbf commit bb03b8b

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

packages/TelegramClient-UI.package/TCUPollOption.class/instance/initializeWith.and..st

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
as yet unclassified
22
initializeWith: aPollMessage and: anOption
3+
| text |
34

45
pollMessage := aPollMessage.
56
pollOption := anOption.
@@ -9,8 +10,9 @@ initializeWith: aPollMessage and: anOption
910
selectionMorph
1011
color: aPollMessage messageColor;
1112
extent: 16@16.
13+
text := (anOption votePercentage asString),'% ',(anOption text).
1214
textMorph := aPollMessage class defaultTextMorph
13-
contents: (TCUEmojiHelper embedEmojisInto: anOption text);
15+
contents: (TCUEmojiHelper embedEmojisInto: text);
1416
hResizing: #spaceFill;
1517
color: Color white;
1618
margins: aPollMessage class defaultMargins;

packages/TelegramClient-UI.package/TCUPollOption.class/methodProperties.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44
"new:" : "6/14/2024 00:26:16",
55
"new:with:" : "F.M. 6/5/2024 14:49" },
66
"instance" : {
7-
"initializeWith:" : "6/14/2024 09:29:43",
8-
"initializeWith:and:" : "TU 6/14/2024 00:31",
7+
"initializeWith:and:" : "TU 6/20/2024 21:56",
98
"mouseDown:" : "TU 6/6/2024 01:46",
10-
"selected" : "6/14/2024 09:29:43",
11-
"selected:" : "6/14/2024 09:29:43",
129
"updateSelection" : "TU 6/14/2024 00:29",
1310
"updateText:" : "6/14/2024 09:29:43" } }

0 commit comments

Comments
 (0)