2022-04-01 22:22:33 +00:00
|
|
|
accessing
|
|
|
|
asCardElement
|
|
|
|
| aModeLook anEditor textInfoPane buttonsPane |
|
|
|
|
|
|
|
|
aModeLook := BrEditorModeAptitude new
|
|
|
|
editableFocused: [ :aWidget | aWidget border: (BlBorder paint: BrGlamorousColors focusedEditorBorderColor width: 1) ];
|
|
|
|
editableUnfocused: [ :aWidget | aWidget border: (BlBorder paint: BrGlamorousColors editorBorderColor width: 1) ];
|
|
|
|
readOnly: [ :aWidget | aWidget border: BlBorder empty ].
|
|
|
|
|
|
|
|
anEditor := BrEditor new
|
|
|
|
aptitude: BrGlamorousRegularEditorAptitude new + aModeLook;
|
2022-04-02 00:34:30 +00:00
|
|
|
text: self textPreview;
|
2022-04-01 22:22:33 +00:00
|
|
|
vFitContent.
|
|
|
|
|
|
|
|
textInfoPane := BrVerticalPane new
|
|
|
|
hMatchParent;
|
|
|
|
vFitContent;
|
|
|
|
margin: (BlInsets left: 20);
|
|
|
|
addChild: (BrLabel new
|
|
|
|
aptitude: BrGlamorousLabelAptitude;
|
2022-04-19 03:36:10 +00:00
|
|
|
text: '@' , self user userName , ' | ' , self created asString;
|
2022-04-01 22:22:33 +00:00
|
|
|
beSmallSize);
|
|
|
|
addChild: anEditor.
|
|
|
|
buttonsPane := BrHorizontalPane new
|
|
|
|
fitContent;
|
|
|
|
cellSpacing: 5;
|
|
|
|
addChildren: {
|
|
|
|
BrButton new
|
|
|
|
aptitude: BrGlamorousButtonWithLabelAptitude new;
|
|
|
|
label: 'Details';
|
|
|
|
action: [ :e | e phlow spawnObject: self ].
|
|
|
|
BrButton new
|
|
|
|
aptitude: BrGlamorousButtonWithLabelAptitude new;
|
|
|
|
label: 'Web view';
|
|
|
|
action: [ self webView ].
|
|
|
|
}.
|
|
|
|
|
|
|
|
^ BrHorizontalPane new
|
|
|
|
padding: (BlInsets all: 15);
|
|
|
|
margin: (BlInsets all: 10);
|
|
|
|
cellSpacing: 5;
|
|
|
|
hMatchParent;
|
|
|
|
vFitContent;
|
|
|
|
addChildren: {
|
2022-04-19 03:36:10 +00:00
|
|
|
(self user profileImage asElement asScalableElement size: 64 @ 64).
|
2022-04-01 22:22:33 +00:00
|
|
|
BrVerticalPane new
|
|
|
|
cellSpacing: 5;
|
|
|
|
hMatchParent;
|
|
|
|
vFitContent;
|
|
|
|
addChildren: {
|
|
|
|
buttonsPane.
|
|
|
|
textInfoPane.
|
|
|
|
}
|
|
|
|
}
|