Minor UI Improvements on containers. Still pending improvements in text flow.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2021-08-22 23:01:52 -05:00
parent 75e05472b3
commit bdfa072c31
8 changed files with 29 additions and 9 deletions

View File

@ -0,0 +1,5 @@
accessing
addKeyword: keyword to: subtopic
self subtopics
at: subtopic put: keyword;
yourself.

View File

@ -0,0 +1,3 @@
accessing
language
^ language

View File

@ -0,0 +1,3 @@
accessing
name: aString
name := aString

View File

@ -0,0 +1,3 @@
accessing
name
^ name

View File

@ -0,0 +1,5 @@
accessing
printOn: aStream
super printOn: aStream.
aStream
nextPutAll: '( ',self name, ' | ', self language, ' )'

View File

@ -4,18 +4,19 @@ asCardElement
^ BrHorizontalPane new ^ BrHorizontalPane new
hFitContent; hFitContent;
vFitContent; vFitContent;
padding: (BlInsets all: 20); padding: (BlInsets all: 15);
margin: (BlInsets all: 10); margin: (BlInsets all: 10);
addChild: addChild:
(self user profileImage asElement asScalableElement size: 64 @ 64); (self user profileImage asElement asScalableElement size: 64 @ 64);
addChild: (BrVerticalPane new addChild: (BrVerticalPane new
fitContent; exact: 250;
margin: (BlInsets left: 20); margin: (BlInsets left: 20);
addChild: (BrLabel new addChild: (BrLabel new
aptitude: BrGlamorousLabelAptitude; aptitude: BrGlamorousLabelAptitude;
text: '@' , self user userName , ' | ' , self created asString; text: '@' , self user userName , ' | ' , self created asString;
beSmallSize); beSmallSize);
addChild: (BrLabel new addChild: (BrEditor new
aptitude: BrGlamorousLabelAptitude; aptitude: BrGlamorousRegularEditorAptitude new;
beReadOnlyWithSelection;
text: self text)); text: self text));
when: BlClickEvent do: [ :e | e target phlow spawnObject: self ] when: BlClickEvent do: [ :e | e target phlow spawnObject: self ]

View File

@ -1,4 +1,4 @@
accessing ui
gtTweetsFor: aView gtTweetsFor: aView
<gtView> <gtView>
^ aView explicit ^ aView explicit
@ -8,7 +8,7 @@ gtTweetsFor: aView
container := BlElement new container := BlElement new
layout: BlFlowLayout new; layout: BlFlowLayout new;
constraintsDo: [ :c | constraintsDo: [ :c |
c vertical fitContent. c vertical matchParent.
c horizontal matchParent ]; c horizontal matchParent ];
padding: (BlInsets all: 10). padding: (BlInsets all: 10).
self tweets do: [ :each | self tweets do: [ :each |
@ -19,8 +19,8 @@ gtTweetsFor: aView
margin: (BlInsets all: 20); margin: (BlInsets all: 20);
constraintsDo: [ :c | constraintsDo: [ :c |
c vertical exact: 100. c vertical exact: 200.
c horizontal exact: 1000 ]; c horizontal matchParent ];
elementBuilder: [ each asCardElement margin: (BlInsets all: 20) ]. elementBuilder: [ each asCardElement margin: (BlInsets all: 20) ].
container addChild: imageContainer]. container addChild: imageContainer].
container asScrollableElement ] container asScrollableElement ]

View File

@ -19,6 +19,6 @@ gtViewProfileDetailsOn: aView
margin: (BlInsets all: 20); margin: (BlInsets all: 20);
constraintsDo: [ :c | constraintsDo: [ :c |
c vertical exact: 150. c vertical exact: 150.
c horizontal exact: 1000 ]; c horizontal matchParent ];
elementBuilder: [ self asCardElement margin: (BlInsets all: 20) ]. elementBuilder: [ self asCardElement margin: (BlInsets all: 20) ].
container addChild: imageContainer]. container addChild: imageContainer].