-
Notifications
You must be signed in to change notification settings - Fork 8
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 #62 from plantec/OnBloc-removal
On bloc removal
- Loading branch information
Showing
23 changed files
with
189 additions
and
145 deletions.
There are no files selected for viewing
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
4 changes: 2 additions & 2 deletions
4
src/Toplo-Tests/OBlSpace.extension.st → src/Toplo-Tests/BlSpace.extension.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
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 |
---|---|---|
@@ -1,7 +1,50 @@ | ||
Extension { #name : #BlSpace } | ||
|
||
{ #category : #'*Toplo' } | ||
BlSpace >> popupLayer [ | ||
{ #category : #'*Toplo-LookAndFeel' } | ||
BlSpace >> isSupportToTheme [ | ||
"Development method : to check if the Space support ToTheme management" | ||
|
||
^ self root | ||
^ self root toTheme isNil | ||
] | ||
|
||
{ #category : #'*Toplo-LookAndFeel' } | ||
BlSpace >> isThemeInstalled [ | ||
"This method is temporary here to detect when a Theme is installed, this is dirty and a Space need to have a dresser pattern" | ||
|
||
self flag:'laborded : this is necessary to have this state for the first instanciation, this is temporary'. | ||
^ self root userData at: #isToThemeInstalled ifAbsentPut:[ false ] | ||
] | ||
|
||
{ #category : #'*Toplo-LookAndFeel' } | ||
BlSpace >> switchThemeDarkOrLight [ | ||
"Switch to the opposite theme : dark or light (if available)" | ||
| newTheme | | ||
|
||
(self toTheme isNil or:[self toTheme isSupportLightAndDark not]) ifTrue:[ ^ self ]. | ||
|
||
newTheme := self toTheme isLight | ||
ifTrue: [ self toTheme darkTheme ] | ||
ifFalse: [ self toTheme lightTheme ]. | ||
|
||
newTheme ifNil:[ ^ self ]. | ||
self toTheme: newTheme | ||
] | ||
|
||
{ #category : #'*Toplo-LookAndFeel' } | ||
BlSpace >> toTheme [ | ||
|
||
| theme | | ||
theme := self root toTheme. | ||
|
||
"Check theme installation : this is dirty and temporary" | ||
(theme notNil and:[self isThemeInstalled not]) ifTrue:[ theme installOnSpace: self ]. | ||
|
||
^ theme | ||
] | ||
|
||
{ #category : #'*Toplo-LookAndFeel' } | ||
BlSpace >> toTheme: aTheme [ | ||
|
||
aTheme ifNotNil: [ aTheme installOnSpace: self ]. | ||
self root toTheme: aTheme | ||
] |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.