Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
17896 MorphTreeMorph have trouble to update his theme https://pharo.fogbugz.com/f/cases/17896 http://files.pharo.org/image/60/60007.zip
- Loading branch information
Jenkins Build Server
authored and
ci
committed
May 16, 2016
1 parent
cbee242
commit 4143a80
Showing
7 changed files
with
35 additions
and
12 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
Graphics-Primitives.package/Color.class/instance/conversions/contrastingColorAdjustment.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 @@ | ||
contrastingColorAdjustment | ||
"Answer darker or lighter color depending on the luminance." | ||
|
||
self isTransparent ifTrue: [ ^ self ]. | ||
|
||
^ self luminance > 0.5 | ||
ifTrue: [ self darker ] | ||
ifFalse: [ self lighter ] |
11 changes: 11 additions & 0 deletions
11
Morphic-Widgets-Tree.package/MorphTreeMorph.class/instance/updating/themeChanged.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,11 @@ | ||
themeChanged | ||
|
||
rowColors at: 1 put: ( | ||
rowColors asSet size = 1 | ||
ifTrue: [ self theme backgroundColor ] | ||
ifFalse: [ rowColors at: 1 put: self theme backgroundColor contrastingColorAdjustment ] | ||
). | ||
|
||
rowColors at: 2 put: self theme backgroundColor . | ||
|
||
super themeChanged. |
6 changes: 5 additions & 1 deletion
6
Morphic-Widgets-Tree.package/MorphTreeNodeMorph.class/instance/updating/themeChanged.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 +1,5 @@ | ||
themeChanged | ||
themeChanged | ||
|
||
self allMorphsDo: [ :m | (m isKindOf: StringMorph) ifTrue: [ m color: self theme textColor ] ]. | ||
|
||
super themeChanged |
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
6 changes: 0 additions & 6 deletions
6
ScriptLoader60.package/ScriptLoader.class/instance/pharo - updates/update60006.st
This file was deleted.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
ScriptLoader60.package/ScriptLoader.class/instance/pharo - updates/update60007.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 @@ | ||
update60007 | ||
"self new update60007" | ||
self withUpdateLog: '17896 MorphTreeMorph have trouble to update his theme | ||
https://pharo.fogbugz.com/f/cases/17896'. | ||
self loadTogether: self script60007 merge: false. | ||
self flushCaches. |
4 changes: 2 additions & 2 deletions
4
ScriptLoader60.package/ScriptLoader.class/instance/public/commentForCurrentUpdate.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,3 +1,3 @@ | ||
commentForCurrentUpdate | ||
^ '18230 Critic Browser window title set to nil after deselecting a rule | ||
https://pharo.fogbugz.com/f/cases/18230' | ||
^ '17896 MorphTreeMorph have trouble to update his theme | ||
https://pharo.fogbugz.com/f/cases/17896' |