Old 22nd May 2006, 11:31   #1
gbr
Senior Member
 
Join Date: Nov 2004
Location: Mumbai ( Bombay ), India
Posts: 143
Possible to set/select color theme with maki ?

I searched for this but couldn't find any info. Is it possible to select a color theme using maki ( or any way else ) ?

I have a skin with more than one 'style'. When the user switches styles, sometimes the theme he selected earlier looks terrible with the new style. What I would like to do is : every time the user switches styles, automatically select a theme suitable for that style.
gbr is offline   Reply With Quote
Old 22nd May 2006, 11:45   #2
Mr Jones
Nothing to say...
 
Mr Jones's Avatar
 
Join Date: Sep 2000
Location: UK
Posts: 23,064
Nope, directly setting a colour theme via maki has never , as far as I know, been possible, right the way back to WA3 days.
Mr Jones is offline   Reply With Quote
Old 22nd May 2006, 17:08   #3
rohan_pwln
Major Dude
 
rohan_pwln's Avatar
 
Join Date: Aug 2002
Location: 18 inches from hell
Posts: 736
You can switch to the next/previous colortheme in the list at the most. nothing else(afaik).

My MAKI contribs.: STONE
My WebSite My Blog My Skins: fnk 32 Rioport v1 Sienna Burning Steel
My Saying: Eat healthy, Stay fit... Die Anyway
rohan_pwln is offline   Reply With Quote
Old 22nd May 2006, 22:15   #4
leechbite
Major Dude
 
leechbite's Avatar
 
Join Date: Sep 2003
Location: Canada
Posts: 635
Send a message via Yahoo to leechbite
there might be a way to tell what is the current color theme through maps, but i havent experimented on it yet.
leechbite is offline   Reply With Quote
Old 23rd May 2006, 08:22   #5
martin.deimos
Android/UI Development
 
martin.deimos's Avatar
 
Join Date: Sep 2004
Location: Bavaria
Posts: 1,242
Send a message via ICQ to martin.deimos Send a message via AIM to martin.deimos Send a message via Yahoo to martin.deimos
you can get the current colortheme!
did this with mac os x - tell me if you want more info

WebSite: www.skinconsortium.com - Community for Userinterface Design & Coding
Skins: Click Here
martin.deimos is offline   Reply With Quote
Old 23rd May 2006, 08:54   #6
Mr Jones
Nothing to say...
 
Mr Jones's Avatar
 
Join Date: Sep 2000
Location: UK
Posts: 23,064
You might be able to get the current theme, but can you set it?
Mr Jones is offline   Reply With Quote
Old 23rd May 2006, 10:20   #7
Michgelsen
Major Dude
 
Michgelsen's Avatar
 
Join Date: Oct 2003
Location: Netherlands
Posts: 1,416
I want more info Martin, tell me how you did it please.

Because if you can find out what the current colortheme is, you can simulate a mouse click on the "next colortheme" button and cycle through the list, until you find the colortheme you'd like to set.
Michgelsen is offline   Reply With Quote
Old 23rd May 2006, 10:35   #8
martin.deimos
Android/UI Development
 
martin.deimos's Avatar
 
Join Date: Sep 2004
Location: Bavaria
Posts: 1,242
Send a message via ICQ to martin.deimos Send a message via AIM to martin.deimos Send a message via Yahoo to martin.deimos
... i know!

find in studio xnf where the colortheme is saved for your skin and then load it with getprivatestring(...) into maki!
if u use a timer u can watch if the string is changing (delay ~ 100)

WebSite: www.skinconsortium.com - Community for Userinterface Design & Coding
Skins: Click Here
martin.deimos is offline   Reply With Quote
Old 23rd May 2006, 14:53   #9
JW
Senior Member
 
Join Date: Nov 2004
Location: Valencia, CA
Posts: 304
I think he's trying to do it the other way around - change colortheme based on some other change, rather than change something when the colortheme is changed.

It can be done, but you'd have to have a privateInt to track which theme was in use, and increment that number each time the "next" button for the colorthemes window was clicked. THEN, you'd have to know where it was, and where you wanted to go based on the layout chosen, then click that button an appropriate number of times to get the desired theme.

In short, you'd have to really really REALLY want to do it.
JW is offline   Reply With Quote
Old 23rd May 2006, 16:57   #10
rohan_pwln
Major Dude
 
rohan_pwln's Avatar
 
Join Date: Aug 2002
Location: 18 inches from hell
Posts: 736
If you know which colortheme currently is loaded you can easily know how many times you need to switch to the next/previous colorthemes to get to the colortheme you require. That's something tedious, but that's one solution. Anyone eslse got a better one??

My MAKI contribs.: STONE
My WebSite My Blog My Skins: fnk 32 Rioport v1 Sienna Burning Steel
My Saying: Eat healthy, Stay fit... Die Anyway
rohan_pwln is offline   Reply With Quote
Old 23rd May 2006, 21:26   #11
leechbite
Major Dude
 
leechbite's Avatar
 
Join Date: Sep 2003
Location: Canada
Posts: 635
Send a message via Yahoo to leechbite
Quote:
Originally posted by martin.deimos
... i know!

find in studio xnf where the colortheme is saved for your skin and then load it with getprivatestring(...) into maki!
if u use a timer u can watch if the string is changing (delay ~ 100)
i was not successful before with this method, i should try this again.
leechbite is offline   Reply With Quote
Old 24th May 2006, 05:45   #12
Askey
Member
 
Join Date: Jan 2006
Posts: 82
i htought studio xnf was only changed once winamp closes... thats as far as i can tell anyway?..

if you delete the file, it doesnt come back until after winamp closes..
Askey is offline   Reply With Quote
Old 24th May 2006, 06:51   #13
martin.deimos
Android/UI Development
 
martin.deimos's Avatar
 
Join Date: Sep 2004
Location: Bavaria
Posts: 1,242
Send a message via ICQ to martin.deimos Send a message via AIM to martin.deimos Send a message via Yahoo to martin.deimos
that doesnt matter, askey! it will save it in cache before winamp closes!

it's working! inmac os x panther the systembuttons chage gfx when u switch colorthemes!

WebSite: www.skinconsortium.com - Community for Userinterface Design & Coding
Skins: Click Here
martin.deimos is offline   Reply With Quote
Old 26th May 2006, 04:27   #14
Askey
Member
 
Join Date: Jan 2006
Posts: 82
oh ok then...
Askey is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Skinning and Design > Modern Skins

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump