Skip to content

Commit

Permalink
Show vote percentage
Browse files Browse the repository at this point in the history
  • Loading branch information
Tebbe Ubben committed Jun 20, 2024
1 parent 972abbf commit bb03b8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
as yet unclassified
initializeWith: aPollMessage and: anOption
| text |

pollMessage := aPollMessage.
pollOption := anOption.
Expand All @@ -9,8 +10,9 @@ initializeWith: aPollMessage and: anOption
selectionMorph
color: aPollMessage messageColor;
extent: 16@16.
text := (anOption votePercentage asString),'% ',(anOption text).
textMorph := aPollMessage class defaultTextMorph
contents: (TCUEmojiHelper embedEmojisInto: anOption text);
contents: (TCUEmojiHelper embedEmojisInto: text);
hResizing: #spaceFill;
color: Color white;
margins: aPollMessage class defaultMargins;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
"new:" : "6/14/2024 00:26:16",
"new:with:" : "F.M. 6/5/2024 14:49" },
"instance" : {
"initializeWith:" : "6/14/2024 09:29:43",
"initializeWith:and:" : "TU 6/14/2024 00:31",
"initializeWith:and:" : "TU 6/20/2024 21:56",
"mouseDown:" : "TU 6/6/2024 01:46",
"selected" : "6/14/2024 09:29:43",
"selected:" : "6/14/2024 09:29:43",
"updateSelection" : "TU 6/14/2024 00:29",
"updateText:" : "6/14/2024 09:29:43" } }

0 comments on commit bb03b8b

Please sign in to comment.