2021-08-22 02:14:22 +00:00
|
|
|
ui
|
2021-08-22 01:52:32 +00:00
|
|
|
asCardElement
|
|
|
|
^ BrHorizontalPane new
|
|
|
|
hFitContent;
|
|
|
|
vFitContent;
|
|
|
|
padding: (BlInsets all: 20);
|
|
|
|
margin: (BlInsets all: 10);
|
|
|
|
addChild: (self profileImage asElement asScalableElement size: 64@64);
|
|
|
|
addChild: (BrVerticalPane new
|
|
|
|
fitContent;
|
|
|
|
margin: (BlInsets left: 20);
|
2021-08-22 02:14:22 +00:00
|
|
|
addChild: (BlTextElement new
|
|
|
|
constraintsDo: [ :c |
|
|
|
|
c horizontal fitContent ];
|
|
|
|
margin: (BlInsets top: 5 right: 0 bottom: 5 left: 5);
|
|
|
|
text: (('@', self userName) asRopedText glamorousRegularFont
|
|
|
|
fontSize: 20;
|
|
|
|
foreground: Color black));
|
2021-08-22 01:52:32 +00:00
|
|
|
addChild: (BrLabel new aptitude: BrGlamorousLabelAptitude; text: self name);
|
2021-08-22 02:14:22 +00:00
|
|
|
addChild: (BrLabel new aptitude: BrGlamorousLabelAptitude; text: 'joined: ', self createdAtShorted);
|
|
|
|
addChild: (BrLabel new aptitude: BrGlamorousLabelAptitude; text: self description));
|
2021-08-22 01:52:32 +00:00
|
|
|
when: BlClickEvent do: [:e | e target phlow spawnObject: self]
|