Skip to content

Commit ea74649

Browse files
committed
changed magic numbers to default values in some ui classes
1 parent 3180b3d commit ea74649

File tree

58 files changed

+174
-92
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+174
-92
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
default values
2+
defaultBorderWidth
3+
4+
^ 0
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
default values
2+
defaultCellInset
3+
4+
^ 8
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
default values
2+
defaultLayoutInset
3+
4+
^ 2
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
default values
2+
defaultMenuHeight
3+
4+
^ 200
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
default values
2+
defaultMenuWidth
3+
4+
^ 200
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
default values
2+
defaultOpacity
3+
4+
^ 0.8

packages/TelegramClient-UI.package/TCUChatButtonPage.class/instance/addFileButton.st

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ drawing
22
addFileButton
33

44
self fileButton: (TCUButton new
5-
extent: 100 @ 30;
65
text: 'Select File';
76
on: #mouseUp send: #buttonFileSelectPressed to: self chatWindow;
87
name: 'selectFile';

packages/TelegramClient-UI.package/TCUChatButtonPage.class/instance/addPollButton.st

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ drawing
22
addPollButton
33

44
self pollButton: (TCUButton new
5-
extent: 100 @ 30;
65
text: '|||';
76
on: #mouseUp send: #createPollEditor to: self chatWindow;
87
name: 'openPollEditor';

packages/TelegramClient-UI.package/TCUChatButtonPage.class/instance/addStickerButton.st

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ drawing
22
addStickerButton
33

44
self stickerButton: (TCUButton new
5-
extent: 100 @ 30;
65
text: 'Sticker';
76
on: #mouseUp send: #buttonStickerPressed to: self chatWindow;
87
name: 'sendSticker';

packages/TelegramClient-UI.package/TCUChatButtonPage.class/instance/createButtonMenu.st

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ createButtonMenu
33

44
self buttonMenu: (RectangleMorph new
55
color: TCUDefaultValues colorNileBlue;
6-
extent: 200@200;
6+
extent: self class defaultMenuWidth @ (self class defaultMenuHeight);
77
useRoundedCorners;
88
layoutPolicy: TableLayout new;
99
listDirection: #leftToRight;
1010
wrapDirection: #bottomToTop;
1111
wrapCentering: #topLeft;
12-
layoutInset: 2;
12+
layoutInset: self class defaultLayoutInset;
1313
hResizing: #shrinkWrap;
1414
vResizing: #shrinkWrap;
15-
cellInset: 8;
15+
cellInset: self class defaultCellInset;
1616
yourself).

0 commit comments

Comments
 (0)