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

#1 2010-01-24 13:42:08

Mitmat
Scratcher
Registered: 2010-01-17
Posts: 7

How modifying color of categories ?

I want customize Scratch interface and add new blocks and categories.

For adding a new category, I duplicated the "Sensing" category and I renamed it "Prog&Play". Then I added some new blocks as "open game", "close game" and "refresh".

Now, I would like changing the color in red.
I carry out to modify blocks color successfully but not the "Prog&Play" button (which is always in bleue, the color of the original "Sensing" category) as indicated in next image:
http://mp1point2.free.fr/images/image1.jpg

To change color of blocks I used the "System Browser" as indicated in next image:
http://mp1point2.free.fr/images/image2.jpg

So, how can I change color of my new category "Prog&Play"?

Thank you for your help

Offline

 

#2 2010-01-24 13:54:17

billyedward
Scratcher
Registered: 2008-01-03
Posts: 500+

Re: How modifying color of categories ?

The reason that the image is not changing is that it is an image.
You will have to edit the image itself. The easiest way to do this is to get the 'scratch skin' from the source code page, edit, and read it into the project as it explains there.


"I'd love to change the world, but they haven't released the source code yet."
Check out the latest version of Streak --> http://billy.scienceontheweb.net/Streak

Offline

 

#3 2010-01-25 10:15:40

Mitmat
Scratcher
Registered: 2010-01-17
Posts: 7

Re: How modifying color of categories ?

Thank you for your quick answer.

I downloaded the ScratchSkin1.4.zip and I extracted it in my directory that looks like this:
./Scratch.exe
./ScratchSourceCode1.4.changes
./ScratchSourceCode1.4.image
./SqueakV2.sources
./ScratchSkin/
./ScratchSkin/...

In the "ScratchSkin" directory, I added three new images called "progandplay.gif", "progandplayOver.gif" and "progandplayPressed.gif" (I inspired myself from existing "sensing.gif", "sensingOver.gif" and "sensingPressed.gif")

In the Wokspace I executed this line:

Code:

ScratchFrameMorph readSkinFrom: (FileDirectory default directoryNamed: 'ScratchSkin')

I think that the dictionary is updated, but my Prog&Play button is still with "sensing" images...
What is wrong? How can I associate a specific image with the "Prog&Play" button?

Offline

 

#4 2010-01-25 10:51:44

Mitmat
Scratcher
Registered: 2010-01-17
Posts: 7

Re: How modifying color of categories ?

It's OK  smile

I have figured it out by myself...

Just do a "right-clic"->"Open"->"Scratch" and all is reloaded.

Offline

 

#5 2010-01-26 19:29:10

TheSentry
Scratcher
Registered: 2009-11-04
Posts: 6

Re: How modifying color of categories ?

i  dont get it

Offline

 

#6 2010-01-26 21:27:24

billyedward
Scratcher
Registered: 2008-01-03
Posts: 500+

Re: How modifying color of categories ?

Mitmat: So your question is answered, then?
TheSentry: This question relates to editing the actual source code of scratch. It is by no means essential to using scratch, so if you don't understand, it's OK.


"I'd love to change the world, but they haven't released the source code yet."
Check out the latest version of Streak --> http://billy.scienceontheweb.net/Streak

Offline

 

Board footer