Skip to content

Commit

Permalink
prepared to change of theme (incomplete)
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanlm committed Jan 31, 2020
1 parent b58fbb1 commit d6fabd5
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Calypso-Browser/ClyNotebookMorph.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,18 @@ ClyNotebookMorph >> postAddPage: aPage [
self addActions: aPage actions
]

{ #category : #theme }
ClyNotebookMorph >> themeChanged [

super themeChanged.
self toolbarMorph
fillStyle: (SolidFillStyle color: self theme baseColor);
borderColor: self theme baseColor.
self tabSelectorMorph
color: self theme baseColor

]

{ #category : #accessing }
ClyNotebookMorph >> toolbarMorph [

Expand Down
19 changes: 19 additions & 0 deletions src/Calypso-Browser/ClyNotebookPageActionButtonMorph.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,22 @@ ClyNotebookPageActionButtonMorph >> icon: anObject [

icon := anObject
]

{ #category : #theme }
ClyNotebookPageActionButtonMorph >> themeChanged [
| baseColor |

super themeChanged.

baseColor := self theme baseColor.
self activeDisabledNotOverUpFillStyle: (self theme buttonDisabledFillStyleFor: self).
self activeEnabledNotOverUpFillStyle: baseColor.
self passiveEnabledNotOverUpFillStyle: baseColor.
self passiveDisabledNotOverUpFillStyle: baseColor.
self
activeEnabledOverUpFillStyle: (self theme buttonMouseOverFillStyleFor: self);
passiveEnabledOverUpFillStyle: (self theme buttonMouseOverFillStyleFor: self);
activeEnabledOverDownFillStyle: (self theme buttonPressedFillStyleFor: self);
passiveEnabledOverDownFillStyle: (self theme buttonPressedFillStyleFor: self)

]

0 comments on commit d6fabd5

Please sign in to comment.