aMSN Forums
February 20, 2018, 04:23:33 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: New forum for aMSN !!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: What are the properties for the colorbar?  (Read 4468 times)
MÅÐKņ
Super Power User
**
Offline Offline

Posts: 215



View Profile
« on: September 19, 2009, 05:57:36 pm »

Hi, i was updating a skin and i want to ask this:

How can i configure the colorbar? I se in some skins that it take some pixels from the left, make a stretch and the rest of the pixmap come out for the right side. But ihave seen tiled colorbars, etc.

How can i tile the middle or what other properties have this window section?

Thnx in advance! :wink:  Cheesy
Logged

kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9428


View Profile WWW
« Reply #1 on: September 19, 2009, 08:57:01 pm »

Humm... very good question, I looked at the code and it looks like that part was never ported to use the skin system, so it all uses hardcoded values...
the colorbar is divided into three parts, first part is from pixels 0 to 10 and goes on the left, the second part is the 11th pixel being repeated, then the last part on the right are the pixels 12 to the end from the colorbar...
You think it should be skinnable? then which options do you suggest ?
And could you provide a patch? Cheesy (look at skins.tcl, function getColorbar)
Logged

KaKaRoTo
MÅÐKņ
Super Power User
**
Offline Offline

Posts: 215



View Profile
« Reply #2 on: September 20, 2009, 08:38:47 pm »

I think that only needs 2 o 3 extra parameters look at this example:



The first option would be stretch the middle coordinates from head to the end of the bar.

The second option would be fill the bar tiling the middle coordinates.

And the lastest option wold be to change the pixels from the left/right like you can see on the third example.

It wolud make more flexible the graphical results and will not need too much programming lines, i'll read the tcl file i'm programmer, but i don't know the tcl structure and or it's limitations.

Thnx for reading :wink:
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!