Login  Register

Re: [Pharo Mooc] Change colors of test results

Posted by hogoww on Nov 19, 2020; 7:20am
URL: https://forum.world.st/Pharo-Mooc-Change-colors-of-test-results-tp5124801p5124802.html

Hi,

Those buttons are created in ClyTestResultProperty >> createIcon.
They rely on the icons founds in Smalltalk ui icon.
I didn't find a nice way to modify it radically so you can see the difference.

So here's a bad way :D
(Smalltalk ui icon iconNamed: #testGreenIcon) becomeForward:  (Smalltalk ui icon iconNamed: #testGreenIcon) darker darker.
(Smalltalk ui icon iconNamed: #testYellowIcon) becomeForward:  (Smalltalk ui icon iconNamed: #testYellowIcon) dimmed dimmed.
(Note that if you execute it several times, it will be darker and darker until you get a black icon!)

The only other way I found would be to recreate the object, but I'm not comfortable enough with UI stuff to help you more than that :/

Pierre


On 19/11/2020 02:12, sergio ruiz wrote:

Hey, all.. 

I am taking the Pharo Mooc, and was wondering:

is there any way to change the color next to the test method name?

I am colorblind, and I can’t tell the different between green and yellow.

Thanks!