-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace squeak icons with material icons (#130)
- Loading branch information
1 parent
bc73959
commit 8fd81cf
Showing
29 changed files
with
134 additions
and
40 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
packages/Material-Core.package/MDButton.class/instance/defaultHeight.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 @@ | ||
drawing | ||
defaultHeight | ||
|
||
^ self class defaultHeight |
2 changes: 1 addition & 1 deletion
2
packages/Material-Core.package/MDButton.class/instance/updateBounds.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 @@ | ||
drawing | ||
updateBounds | ||
|
||
self bounds: (self bounds origin extent: self calculateWidth @ self class defaultHeight) | ||
self bounds: (self bounds origin extent: self calculateWidth @ self defaultHeight) |
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/Material-Core.package/MDFloatingActionButton.class/instance/updateBounds.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,5 @@ | ||
accessing | ||
updateBounds | ||
|
||
self width: self class defaultHeight. | ||
self height: self class defaultHeight | ||
self width: self defaultHeight. | ||
self height: self defaultHeight |
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/Material-Core.package/MDList.class/class/listItemHeight.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 | ||
listItemHeight | ||
|
||
^ 48 | ||
^ MDListItem defaultHeight |
4 changes: 4 additions & 0 deletions
4
packages/Material-Core.package/MDList.class/class/listItemHeightDense.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 | ||
listItemHeightDense | ||
|
||
^ MDListItem denseHeight |
4 changes: 4 additions & 0 deletions
4
packages/Material-Core.package/MDList.class/instance/denseLayout..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 @@ | ||
accessing | ||
denseLayout: aBoolean | ||
|
||
^ self setProperty: #denseLayout to: aBoolean |
2 changes: 1 addition & 1 deletion
2
packages/Material-Core.package/MDList.class/instance/firstVisibleItem.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 @@ | ||
accessing | ||
firstVisibleItem | ||
|
||
^ (((self scrollOffset / (self class listItemHeight + self listItemPadding)) floor + 1) max: 1) min: self filteredListItems size | ||
^ (((self scrollOffset / (self listItemHeight + self listItemPadding)) floor + 1) max: 1) min: self filteredListItems size |
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/Material-Core.package/MDList.class/instance/hasDenseLayout.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 @@ | ||
drawing | ||
hasDenseLayout | ||
|
||
^ self properties at: #denseLayout ifAbsent: [^ self setProperty: #denseLayout to: false] |
2 changes: 1 addition & 1 deletion
2
packages/Material-Core.package/MDList.class/instance/lastVisibleItem.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 @@ | ||
accessing | ||
lastVisibleItem | ||
|
||
^ (self firstVisibleItem + ((self height / (self class listItemHeight + self listItemPadding)) ceiling - 1)) min: self filteredListItems size | ||
^ (self firstVisibleItem + ((self height / (self listItemHeight + self listItemPadding)) ceiling - 1)) min: self filteredListItems size |
6 changes: 6 additions & 0 deletions
6
packages/Material-Core.package/MDList.class/instance/listItemHeight.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 @@ | ||
accessing | ||
listItemHeight | ||
|
||
self hasDenseLayout | ||
ifTrue: [^ self class listItemHeightDense] | ||
ifFalse: [^ self class listItemHeight] |
2 changes: 1 addition & 1 deletion
2
packages/Material-Core.package/MDList.class/instance/listItemHeightWithPadding.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 @@ | ||
event handling | ||
listItemHeightWithPadding | ||
|
||
^ self class listItemHeight + self listItemPadding | ||
^ self listItemHeight + self listItemPadding |
2 changes: 1 addition & 1 deletion
2
packages/Material-Core.package/MDList.class/instance/relativePositionOfItemAt..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 @@ | ||
drawing | ||
relativePositionOfItemAt: aRow | ||
|
||
^ (0 @ (self class listItemHeight + self listItemPadding) * (aRow - 1)) | ||
^ (0 @ (self listItemHeight + self listItemPadding) * (aRow - 1)) |
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/Material-Core.package/MDListItem.class/class/denseHeight.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 @@ | ||
default properties | ||
denseHeight | ||
|
||
^ 36 |
6 changes: 6 additions & 0 deletions
6
packages/Material-Core.package/MDListItem.class/instance/defaultHeight.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 @@ | ||
accessing | ||
defaultHeight | ||
|
||
self hasDenseLayout | ||
ifTrue: [^ self class denseHeight] | ||
ifFalse: [^ self class defaultHeight] |
8 changes: 8 additions & 0 deletions
8
packages/Material-Core.package/MDListItem.class/instance/denseLayout..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 | ||
denseLayout: aBoolean | ||
|
||
| value | | ||
value := self setProperty: #denseLayout to: aBoolean. | ||
self height: self defaultHeight. | ||
|
||
^ value |
4 changes: 4 additions & 0 deletions
4
packages/Material-Core.package/MDListItem.class/instance/hasDenseLayout.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 | ||
hasDenseLayout | ||
|
||
^ self properties at: #denseLayout ifAbsent: [^ self setProperty: #denseLayout to: 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
26 changes: 26 additions & 0 deletions
26
...ages/Material-ToolBuilder.package/MDPluggableList.class/class/toolIconsToMaterialIcons.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,26 @@ | ||
as yet unclassified | ||
toolIconsToMaterialIcons | ||
|
||
^ Dictionary new | ||
at: (ToolIcons abstract storeString) put: nil; | ||
at: (ToolIcons arrowDown storeString) put: #ic_expand_more; | ||
at: (ToolIcons arrowUp storeString) put: #ic_expand_less; | ||
at: (ToolIcons arrowUpAndDown storeString) put: #ic_unfold_more; | ||
at: (ToolIcons blank storeString) put: #ic_blank; | ||
at: (ToolIcons breakpoint storeString) put: nil; | ||
at: (ToolIcons checkmark storeString) put: nil; | ||
at: (ToolIcons collection storeString) put: #ic_bubble_chart; | ||
at: (ToolIcons exception storeString) put: nil; | ||
at: (ToolIcons flag storeString) put: #ic_flag; | ||
at: (ToolIcons magnitude storeString) put: #ic_functions; | ||
at: (ToolIcons morph storeString) put: #ic_dashboard; | ||
at: (ToolIcons no storeString) put: #ic_remove_circle; | ||
at: (ToolIcons notOverridden storeString) put: nil; | ||
at: (ToolIcons primitive storeString) put: nil; | ||
at: (ToolIcons stream storeString) put: #ic_input; | ||
at: (ToolIcons string storeString) put: #ic_title; | ||
at: (ToolIcons testGray storeString) put: nil; | ||
at: (ToolIcons testGreen storeString) put: #ic_check_box; | ||
at: (ToolIcons testOrange storeString) put: #ic_error_outline; | ||
at: (ToolIcons testRed storeString) put: #ic_cancel; | ||
yourself |
4 changes: 4 additions & 0 deletions
4
packages/Material-ToolBuilder.package/MDPluggableList.class/instance/getMaterialIconFrom..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 | ||
getMaterialIconFrom: aForm | ||
|
||
^ self class toolIconsToMaterialIcons at: (aForm storeString) ifAbsent: [^ nil] |
5 changes: 5 additions & 0 deletions
5
packages/Material-ToolBuilder.package/MDPluggableList.class/instance/initialize.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,5 @@ | ||
as yet unclassified | ||
initialize | ||
|
||
super initialize. | ||
self denseLayout: true |
4 changes: 4 additions & 0 deletions
4
...es/Material-ToolBuilder.package/MDPluggableList.class/instance/keystrokeActionSelector.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 | ||
keystrokeActionSelector | ||
|
||
^ keystrokeActionSelector |
1 change: 1 addition & 0 deletions
1
packages/Material-ToolBuilder.package/MDPluggableList.class/instance/update..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,6 @@ | ||
accessing | ||
update: aSymbol | ||
|
||
Transcript show: aSymbol asString, Character cr. | ||
(aSymbol == #messageList or: aSymbol == #relabel) | ||
ifTrue: [self changed] |
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