-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79 from hpi-swa-teaching/style-extensions
Style extensions + prettier options
- Loading branch information
Showing
127 changed files
with
380 additions
and
183 deletions.
There are no files selected for viewing
4 changes: 0 additions & 4 deletions
4
packages/MarkdownEditor-Core.package/MarkdownBlock.class/class/labels.st
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
packages/MarkdownEditor-Core.package/MarkdownBlock.class/instance/fontColor.st
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
packages/MarkdownEditor-Core.package/MarkdownBlock.class/instance/fontSize.st
This file was deleted.
Oops, something went wrong.
12 changes: 1 addition & 11 deletions
12
packages/MarkdownEditor-Core.package/MarkdownBlock.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,26 +1,16 @@ | ||
{ | ||
"class" : { | ||
"defaultFontColors" : "azi 6/12/2020 13:11", | ||
"defaultFontSizes" : "azi 6/12/2020 00:50", | ||
"labels" : "hsl 6/18/2020 15:26", | ||
"mayBeginWith:" : "hsl 6/18/2020 15:12", | ||
"newFrom:" : "azi 6/1/2020 15:42" }, | ||
"instance" : { | ||
"append:" : "jko 7/4/2019 16:17", | ||
"asText" : "jst 6/10/2019 12:12", | ||
"colorAttribute" : "azi 6/12/2020 16:16", | ||
"content" : "jko 7/4/2019 16:09", | ||
"firstLine" : "jst 6/10/2019 11:18", | ||
"font" : "MK 6/19/2020 18:44", | ||
"fontColor" : "azi 6/12/2020 00:40", | ||
"fontSize" : "azi 6/12/2020 00:39", | ||
"initialize" : "azi 6/12/2020 12:57", | ||
"isExtendableWith:" : "jko 7/4/2019 17:02", | ||
"lastLine" : "jst 6/10/2019 11:34", | ||
"lines" : "jko 7/4/2019 18:03", | ||
"lines:" : "jko 7/4/2019 16:12", | ||
"styleSettings" : "azi 6/1/2020 15:42", | ||
"styleSettings:" : "azi 6/1/2020 15:42", | ||
"styler" : "fgo 6/14/2019 14:29", | ||
"styler:" : "jst 6/19/2019 16:05", | ||
"textAttribute" : "azi 6/12/2020 16:17" } } | ||
"styler:" : "jst 6/19/2019 16:05" } } |
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
7 changes: 0 additions & 7 deletions
7
packages/MarkdownEditor-Core.package/MarkdownBlockStylerMorph.class/class/for..st
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
...ges/MarkdownEditor-Core.package/MarkdownBlockStylerMorph.class/class/for.with.and.and..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,9 @@ | ||
as yet unclassified | ||
for: aClassLabel with: canChangeFontSize and: canChangeFontColor and: aClassCategory | ||
|
||
^ self new | ||
classLabel: aClassLabel; | ||
classCategory: aClassCategory; | ||
initializeWith: canChangeFontSize and: canChangeFontColor; | ||
addLabelMorph; | ||
yourself |
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
3 changes: 3 additions & 0 deletions
3
...ges/MarkdownEditor-Core.package/MarkdownBlockStylerMorph.class/instance/classCategory..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,3 @@ | ||
accessing | ||
classCategory: anObject | ||
classCategory := anObject |
3 changes: 3 additions & 0 deletions
3
...ages/MarkdownEditor-Core.package/MarkdownBlockStylerMorph.class/instance/classCategory.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,3 @@ | ||
accessing | ||
classCategory | ||
^ classCategory |
18 changes: 8 additions & 10 deletions
18
...kStylerMorph.class/instance/initialize.st → ...rph.class/instance/initializeWith.and..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,36 +1,34 @@ | ||
initialize | ||
initialize | ||
initializeWith: canChangeFontSize and: canChangeFontColor | ||
|
||
super initialize. | ||
self color: Color transparent; | ||
width: 450; | ||
height: 70. | ||
self fontSizeSlider: (SimpleSliderMorph new | ||
target: self; | ||
actionSelector: #handleSliderChangeTo:; | ||
"arguments: {};" | ||
minVal: MarkdownStyleSettings minFontSize; | ||
maxVal: MarkdownStyleSettings maxFontSize; | ||
position: 80@10; | ||
position: 90@10; | ||
orientation: #horizontal; | ||
height: 40; | ||
width: 100; | ||
yourself). | ||
self sliderLabel: (TextMorph new | ||
position: 185@20; | ||
position: 195@20; | ||
height: 20; | ||
width: 20; | ||
lock; | ||
yourself). | ||
self fontColorPicker: (ColorPickerMorph new | ||
target: self; | ||
selector: #handleColorPickerChangeTo:with:; | ||
"argument: headerLevel;" | ||
position: 220@0; | ||
position: 230@0; | ||
height: 60; | ||
width: 190; | ||
yourself). | ||
|
||
self addMorph: self fontSizeSlider. | ||
self addMorph: self sliderLabel. | ||
self addMorph: self fontColorPicker. | ||
canChangeFontSize ifTrue: [ | ||
self addMorph: self fontSizeSlider. | ||
self addMorph: self sliderLabel]. | ||
canChangeFontColor ifTrue: [self addMorph: self fontColorPicker]. |
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
4 changes: 0 additions & 4 deletions
4
packages/MarkdownEditor-Core.package/MarkdownBlockquote.class/class/defaultFontSize.st
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
packages/MarkdownEditor-Core.package/MarkdownBlockquote.class/class/defaultFontSizes.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 | ||
defaultFontSizes | ||
|
||
^ {10} |
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: 2 additions & 2 deletions
4
packages/MarkdownEditor-Core.package/MarkdownBlockquote.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,9 +1,9 @@ | ||
{ | ||
"class" : { | ||
"defaultFontColors" : "MK 6/21/2020 20:48", | ||
"defaultFontSize" : "MK 6/21/2020 20:48", | ||
"defaultFontSizes" : "azi 6/28/2020 15:42", | ||
"labels" : "MK 6/21/2020 20:47", | ||
"mayBeginWith:" : "MK 6/21/2020 21:04" }, | ||
"instance" : { | ||
"asText" : "MK 6/21/2020 20:51", | ||
"asText" : "azi 6/28/2020 15:58", | ||
"isExtendableWith:" : "MK 6/21/2020 21:01" } } |
4 changes: 4 additions & 0 deletions
4
packages/MarkdownEditor-Core.package/MarkdownCodeBlock.class/class/canChangeFontColor.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 | ||
canChangeFontColor | ||
|
||
^ false |
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
3 changes: 2 additions & 1 deletion
3
packages/MarkdownEditor-Core.package/MarkdownCodeBlock.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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ as yet unclassified | |
openOptions | ||
|
||
self textMorph accept. | ||
self optionsMenu openInWorld. | ||
^ self optionsMenu open |
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/MarkdownEditor-Core.package/MarkdownHeading.class/class/blockCategory.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 | ||
blockCategory | ||
|
||
^ 'Headings' |
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
2 changes: 1 addition & 1 deletion
2
packages/MarkdownEditor-Core.package/MarkdownHeading.class/instance/convertWith..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,4 +1,4 @@ | ||
as yet unclassified | ||
export | ||
convertWith: aConverter | ||
|
||
^ aConverter convertHeading: self |
1 change: 0 additions & 1 deletion
1
packages/MarkdownEditor-Core.package/MarkdownHeading.class/instance/fontSize.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,5 +1,4 @@ | ||
accessing | ||
fontSize | ||
|
||
"Transcript show: (self styleSettings fontSizes at: (self class labels at: self level)); cr." | ||
^ self styleSettings fontSizes at: (self class labels at: self level) |
5 changes: 3 additions & 2 deletions
5
packages/MarkdownEditor-Core.package/MarkdownHeading.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,14 +1,15 @@ | ||
{ | ||
"class" : { | ||
"blockCategory" : "azi 6/29/2020 02:29", | ||
"defaultFontColors" : "azi 6/13/2020 03:51", | ||
"defaultFontSizes" : "azi 6/12/2020 00:55", | ||
"labels" : "azi 6/12/2020 14:18", | ||
"mayBeginWith:" : "jko 7/4/2019 16:36" }, | ||
"instance" : { | ||
"asText" : "azi 6/12/2020 14:12", | ||
"asText" : "azi 6/28/2020 15:58", | ||
"convertWith:" : "MK 6/21/2020 17:51", | ||
"fontColor" : "azi 6/12/2020 13:38", | ||
"fontSize" : "azi 6/12/2020 13:13", | ||
"fontSize" : "azi 6/28/2020 14:35", | ||
"isExtendableWith:" : "jko 7/4/2019 17:03", | ||
"level" : "jst 5/13/2019 15:24", | ||
"prefix" : "jst 5/13/2019 15:29" } } |
4 changes: 4 additions & 0 deletions
4
packages/MarkdownEditor-Core.package/MarkdownList.class/class/blockCategory.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 | ||
blockCategory | ||
|
||
^ 'Lists' |
4 changes: 4 additions & 0 deletions
4
packages/MarkdownEditor-Core.package/MarkdownList.class/class/defaultFontColors.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 | ||
defaultFontColors | ||
|
||
^ MarkdownListItem defaultFontColors |
4 changes: 4 additions & 0 deletions
4
packages/MarkdownEditor-Core.package/MarkdownList.class/class/defaultFontSizes.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 | ||
defaultFontSizes | ||
|
||
^ MarkdownListItem defaultFontSizes |
1 change: 1 addition & 0 deletions
1
packages/MarkdownEditor-Core.package/MarkdownList.class/class/mayBeginWith..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,3 +1,4 @@ | ||
testing | ||
mayBeginWith: aMarkdownLine | ||
|
||
^ false |
6 changes: 4 additions & 2 deletions
6
packages/MarkdownEditor-Core.package/MarkdownList.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
4 changes: 4 additions & 0 deletions
4
packages/MarkdownEditor-Core.package/MarkdownListItem.class/class/blockCategory.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 | ||
blockCategory | ||
|
||
^ MarkdownList blockCategory |
4 changes: 4 additions & 0 deletions
4
packages/MarkdownEditor-Core.package/MarkdownListItem.class/class/defaultFontColors.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 | ||
defaultFontColors | ||
|
||
^ {Color black. Color black. Color black} |
4 changes: 4 additions & 0 deletions
4
packages/MarkdownEditor-Core.package/MarkdownListItem.class/class/defaultFontSizes.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 | ||
defaultFontSizes | ||
|
||
^ {14. 12. 10} |
Oops, something went wrong.