[Pharo Mooc] Change colors of test results

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[Pharo Mooc] Change colors of test results

sergio_101
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!


----
peace,
sergio
photographer, journalist, visionary

Public Key: https://pgp.key-server.io/pks/lookup?op=get&search=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101

Reply | Threaded
Open this post in threaded view
|

Re: [Pharo Mooc] Change colors of test results

hogoww

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!

Reply | Threaded
Open this post in threaded view
|

Re: [Pharo Mooc] Change colors of test results

sergio_101
ah! i just saw this.

thanks for the help..

On Nov 19, 2020, at 2:20 AM, hogoww <[hidden email]> wrote:

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 :/

----
peace,
sergio
photographer, journalist, visionary

Public Key: https://pgp.key-server.io/pks/lookup?op=get&search=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101


signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Pharo Mooc] Change colors of test results

Stéphane Ducasse
In reply to this post by sergio_101
sergio 

please let us know how e can proceed because we could do a theme for colorblind people. 

S

On 19 Nov 2020, at 02:12, sergio ruiz <[hidden email]> 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!


----
peace,
sergio
photographer, journalist, visionary

Public Key: https://pgp.key-server.io/pks/lookup?op=get&search=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101


--------------------------------------------
Stéphane Ducasse
03 59 35 87 52
Assistant: Aurore Dalle 
FAX 03 59 57 78 50
TEL 03 59 35 86 16
S. Ducasse - Inria
40, avenue Halley, 
Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
Villeneuve d'Ascq 59650
France