-
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.
- Loading branch information
1 parent
b5d0651
commit cb8980d
Showing
23 changed files
with
101 additions
and
10 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
packages/Material-Core.package/MDButton.class/class/backgroundColorToggled.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 | ||
backgroundColorToggled | ||
|
||
^ '185,185,185' |
5 changes: 5 additions & 0 deletions
5
packages/Material-Core.package/MDButton.class/instance/checkToggled.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 @@ | ||
drawing | ||
checkToggled | ||
|
||
(self isEnabled and: [self isToggled]) ifTrue: [ | ||
self currentBackgroundColor: self class backgroundColorToggled] |
2 changes: 1 addition & 1 deletion
2
packages/Material-Core.package/MDButton.class/instance/disable.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 | ||
event handling | ||
disable | ||
|
||
self label color: self textColorDisabled. | ||
|
1 change: 1 addition & 0 deletions
1
packages/Material-Core.package/MDButton.class/instance/drawOn..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 @@ | ||
drawing | ||
drawOn: aCanvas | ||
|
||
self checkToggled. | ||
super drawOn: aCanvas. | ||
self updateContents: aCanvas |
2 changes: 1 addition & 1 deletion
2
packages/Material-Core.package/MDButton.class/instance/enable.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 | ||
event handling | ||
enable | ||
|
||
self label color: self textColor. | ||
|
4 changes: 4 additions & 0 deletions
4
packages/Material-Core.package/MDButton.class/instance/isToggled.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 | ||
isToggled | ||
|
||
^ self properties at: #toggled ifAbsent: [ ^ self toggled: false ] |
5 changes: 5 additions & 0 deletions
5
packages/Material-Core.package/MDButton.class/instance/toggleOff.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 @@ | ||
event handling | ||
toggleOff | ||
|
||
self toggled: false. | ||
self calculateColor |
5 changes: 5 additions & 0 deletions
5
packages/Material-Core.package/MDButton.class/instance/toggleOn.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 @@ | ||
event handling | ||
toggleOn | ||
|
||
self isDisabled ifTrue: [^ false]. | ||
self toggled: true |
4 changes: 4 additions & 0 deletions
4
packages/Material-Core.package/MDButton.class/instance/toggled..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 | ||
toggled: aBoolean | ||
|
||
^ self setProperty: #toggled to: aBoolean |
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
8 changes: 8 additions & 0 deletions
8
packages/Material-Tests.package/MDOutlinedButtonTest.class/class/toggled.st
Large diffs are not rendered by default.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
packages/Material-Tests.package/MDOutlinedButtonTest.class/instance/testToggled.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 @@ | ||
testing | ||
testToggled | ||
|
||
self testToggled: self classToTest new | ||
|
4 changes: 4 additions & 0 deletions
4
packages/Material-Tests.package/MDOutlinedButtonTest.class/instance/testToggledOnAndOff.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 @@ | ||
testing | ||
testToggledOnAndOff | ||
|
||
self testToggledOnAndOff: self classToTest new |
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: 7 additions & 0 deletions
7
packages/Material-Tests.package/MDPixelBasedTestCase.class/instance/testToggled..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,7 @@ | ||
testing | ||
testToggled: aMDWidget | ||
|
||
aMDWidget toggleOn. | ||
self testEquality: aMDWidget with: self class toggled | ||
|
||
|
10 changes: 10 additions & 0 deletions
10
packages/Material-Tests.package/MDPixelBasedTestCase.class/instance/testToggledOnAndOff..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 @@ | ||
testing | ||
testToggledOnAndOff: aMDWidget | ||
|
||
aMDWidget toggleOn. | ||
aMDWidget toggleOff. | ||
self testEquality: aMDWidget with: self class enabled | ||
|
||
|
||
|
||
|
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
packages/Material-Tests.package/MDTextButtonTest.class/class/toggled.st
Large diffs are not rendered by default.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
packages/Material-Tests.package/MDTextButtonTest.class/instance/testToggled.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 @@ | ||
testing | ||
testToggled | ||
|
||
self testToggled: self classToTest new |
4 changes: 4 additions & 0 deletions
4
packages/Material-Tests.package/MDTextButtonTest.class/instance/testToggledOnAndOff.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 @@ | ||
testing | ||
testToggledOnAndOff | ||
|
||
self testToggledOnAndOff: self classToTest new |
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