This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-02-25 14:12:45

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Changing Category Colors

I know how to change the color of blocks in a category, but how to I change the tabs that say stuff like control, pen, etc...


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#2 2012-02-25 15:31:48

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Changing Category Colors

It's:
Scratch-Objects (Class) -> ScriptableScratchMorph -> block specs -> blockColorFor:
and you should add something like:

Code:

'files' = aCategory ifTrue: [^ (Color h: 100 s: 0.95 v: 0.9)].

The above code would make the Files blocks green.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#3 2012-02-25 15:39:50

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: Changing Category Colors

jvvg wrote:

It's:
Scratch-Objects (Class) -> ScriptableScratchMorph -> block specs -> blockColorFor:
and you should add something like:

Code:

'files' = aCategory ifTrue: [^ (Color h: 100 s: 0.95 v: 0.9)].

The above code would make the Files blocks green.

How do you change the category tab though?


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#4 2012-02-25 15:57:25

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Changing Category Colors

Oh, that's a bit different. You have to change the pictures (search around a bit for what pictures to change), and then reload the skin (search around for that).


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

Board footer