-
Notifications
You must be signed in to change notification settings - Fork 9
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
Showing
10 changed files
with
317 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Class { | ||
#name : 'ToNotebookHeaderOnBottom', | ||
#superclass : 'ToNotebookHeaderPositioning', | ||
#category : 'Toplo-Incubator', | ||
#package : 'Toplo-Incubator' | ||
} | ||
|
||
{ #category : 'hook' } | ||
ToNotebookHeaderOnBottom >> applyOn: aNotebook [ | ||
|
||
aNotebook beVertical. | ||
aNotebook beRightToLeft. | ||
aNotebook header beHorizontal. | ||
aNotebook header hMatchParent. | ||
aNotebook header vFitContent. | ||
aNotebook buttons do: [ :b | b geometry: self buttonGeometry ]. | ||
] | ||
|
||
{ #category : 'as yet unclassified' } | ||
ToNotebookHeaderOnBottom >> buttonGeometry [ | ||
|
||
^ BlRoundedRectangleGeometry cornerRadii: (BlCornerRadii new | ||
topLeft: 0; | ||
topRight: 0; | ||
bottomLeft: 8; | ||
bottomRight: 8; | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Class { | ||
#name : 'ToNotebookHeaderOnLeft', | ||
#superclass : 'ToNotebookHeaderPositioning', | ||
#category : 'Toplo-Incubator', | ||
#package : 'Toplo-Incubator' | ||
} | ||
|
||
{ #category : 'hook' } | ||
ToNotebookHeaderOnLeft >> applyOn: aNotebook [ | ||
|
||
aNotebook beHorizontal. | ||
aNotebook beLeftToRight. | ||
aNotebook header beVertical. | ||
aNotebook header hFitContent. | ||
aNotebook header vMatchParent. | ||
aNotebook buttons do: [ :b | b geometry: self buttonGeometry ]. | ||
] | ||
|
||
{ #category : 'accessing' } | ||
ToNotebookHeaderOnLeft >> buttonGeometry [ | ||
|
||
^ BlRoundedRectangleGeometry cornerRadii: (BlCornerRadii new | ||
topLeft: 8; | ||
topRight: 0; | ||
bottomLeft: 8; | ||
bottomRight: 0; | ||
yourself) | ||
] |
Oops, something went wrong.