Skip to content

Commit 40fbd62

Browse files
committed
updated style of inline editors
1 parent fc1381d commit 40fbd62

File tree

6 files changed

+19
-5
lines changed

6 files changed

+19
-5
lines changed

TasksLogger.package/InPlacePropertyEditorComponent.class/class/on.of..st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
instance-creation
1+
instance creation
22
on: aSelector of: anObject
33
^ self new
44
on: aSelector of: anObject;

TasksLogger.package/InPlacePropertyEditorComponent.class/instance/rendeDisplayingOn..st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ rendeDisplayingOn: html
99
with: [ html tbsGlyphIcon iconPencil ] ].
1010
(textArea
1111
ifFalse: [ html paragraph ]
12-
ifTrue: [ html preformatted ]) with: (subject perform: getSelector)
12+
ifTrue: [ html preformatted ]) with: self valueFromSubject
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
callbacks
22
save
3-
4-
subject perform: setSelector with: newValue .
5-
editing := false.
3+
self valueToSubject.
4+
editing := false
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
style
2+
style
3+
^ 'pre {padding : unset; background-color : unset; border : unset; font-family : unset; font-size: unset}'
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
private
2+
valueFromSubject
3+
| value |
4+
value := subject perform: getSelector.
5+
value isString
6+
ifFalse: [ value := 'Error: ' , getSelector printString
7+
, ' should return a String - got a '
8+
, (value printStringLimitedTo: 100) ].
9+
^ value
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
private
2+
valueToSubject
3+
subject perform: setSelector with: newValue

0 commit comments

Comments
 (0)