-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
112 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,6 @@ addContent | |
self addUserList. | ||
] | ||
]. | ||
self addTestmorph. | ||
self addTitle. | ||
self addPhoto. | ||
|
10 changes: 6 additions & 4 deletions
10
packages/TelegramClient-UI.package/TCUChatInfoPage.class/instance/addHiddenPhotoPage.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
as yet unclassified | ||
addHiddenPhotoPage | ||
|
||
self | ||
photoPage: (TCUChatPhotoPage newFor: chat withBounds: self bounds andSize: (self width * 0.75)); | ||
addMorphFront: self photoPage. | ||
self chat hasPhoto ifTrue: [ | ||
self | ||
photoPage: (TCUChatPhotoPage newWithBounds: self bounds andPhoto: self photo andSize: (self width * 0.9)); | ||
addMorphFront: self photoPage. | ||
|
||
self photoPage hide. | ||
self photoPage hide | ||
] |
6 changes: 3 additions & 3 deletions
6
packages/TelegramClient-UI.package/TCUChatInfoPage.class/instance/addPhoto.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
packages/TelegramClient-UI.package/TCUChatInfoPage.class/instance/addTitle.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
as yet unclassified | ||
addTitle | ||
|
||
self createTitle. | ||
self contentWrapper addMorph: self title. | ||
self addTitleText. |
10 changes: 10 additions & 0 deletions
10
packages/TelegramClient-UI.package/TCUChatInfoPage.class/instance/addTitleText.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
drawing | ||
addTitleText | ||
|
||
self title addMorph: (TextMorph new | ||
contents: self chat title; | ||
centered; | ||
wrapFlag: true; | ||
hResizing: #spaceFill; | ||
lock; | ||
yourself). |
13 changes: 13 additions & 0 deletions
13
packages/TelegramClient-UI.package/TCUChatInfoPage.class/instance/createTitle.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
as yet unclassified | ||
createTitle | ||
|
||
self title: (RectangleMorph new | ||
borderWidth: 0; | ||
color: Color white; | ||
layoutPolicy: TableLayout new; | ||
listDirection: #topToBottom; | ||
hResizing: #spaceFill; | ||
vResizing: #shrinkWrap; | ||
cellInset: self class defaultContentInset; | ||
useRoundedCorners; | ||
yourself). |
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-UI.package/TCUChatInfoPage.class/instance/photo..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
as yet unclassified | ||
photo: aPhoto | ||
|
||
photo := aPhoto |
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-UI.package/TCUChatInfoPage.class/instance/photo.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
as yet unclassified | ||
photo | ||
|
||
^ photo |
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-UI.package/TCUChatInfoPage.class/instance/title..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
as yet unclassified | ||
title: aRectangleMorph | ||
|
||
title := aRectangleMorph |
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-UI.package/TCUChatInfoPage.class/instance/title.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
as yet unclassified | ||
title | ||
|
||
^ title |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
packages/TelegramClient-UI.package/TCUChatListItem.class/instance/addPhoto.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-UI.package/TCUChatListItem.class/instance/photo..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
as yet unclassified | ||
photo: aPhoto | ||
|
||
photo := aPhoto |
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-UI.package/TCUChatListItem.class/instance/photo.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
as yet unclassified | ||
photo | ||
|
||
^ photo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...TelegramClient-UI.package/TCUChatPhotoPage.class/class/newWithBounds.andPhoto.andSize..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
as yet unclassified | ||
newWithBounds: aRectangle andPhoto: aPhoto andSize: aSize | ||
|
||
^ (super newBounds: aRectangle) | ||
photo: aPhoto; | ||
photoSize: aSize; | ||
addPhoto; | ||
yourself |
15 changes: 5 additions & 10 deletions
15
packages/TelegramClient-UI.package/TCUChatPhotoPage.class/instance/addPhoto.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,8 @@ | ||
as yet unclassified | ||
addPhoto | ||
|
||
| promise morph | | ||
self chat hasPhoto ifTrue: [ | ||
promise := self chat core imageStore getFormPromiseFor: self chat photoId. | ||
promise >>= [:aForm | | ||
morph := (aForm scaledToSize: self photoSize) asMorph. | ||
self addMorphCentered: morph. | ||
] | ||
] ifFalse: [ | ||
self addMorphBack: (TCUDefaultValues defaultProfilePhoto scaledToSize: self photoSize) asMorph. | ||
]. | ||
| morph | | ||
photo >>= [:aForm | | ||
morph := (aForm scaledToSize: self photoSize) asMorph. | ||
self addMorphCentered: morph. | ||
] |
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-UI.package/TCUChatPhotoPage.class/instance/photo..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
as yet unclassified | ||
photo: aPhoto | ||
|
||
photo := aPhoto |
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-UI.package/TCUChatPhotoPage.class/instance/photo.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
as yet unclassified | ||
photo | ||
|
||
^ photo |
8 changes: 4 additions & 4 deletions
8
packages/TelegramClient-UI.package/TCUChatPhotoPage.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"class" : { | ||
"newFor:withBounds:andSize:" : "jkon 5/15/2024 15:13" }, | ||
"newWithBounds:andPhoto:andSize:" : "jkon 5/22/2024 10:27" }, | ||
"instance" : { | ||
"addPhoto" : "jkon 5/15/2024 17:08", | ||
"chat" : "jkon 5/15/2024 15:00", | ||
"chat:" : "jkon 5/15/2024 15:00", | ||
"addPhoto" : "jkon 5/22/2024 10:21", | ||
"initialize" : "jkon 5/15/2024 15:11", | ||
"photo" : "jkon 5/22/2024 10:30", | ||
"photo:" : "jkon 5/22/2024 10:31", | ||
"photoSize" : "jkon 5/15/2024 15:00", | ||
"photoSize:" : "jkon 5/15/2024 15:01" } } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters