Help - Search - Members - Calendar
Full Version: Colours and ColumnsUI
Hydrogenaudio Forums > Hosted Forums > foobar2000 > General - (fb2k)
Takaji
Hey guys, recently I decided to fool around with the colors in my foobar settings (beforehand I was using a theme that I had found that looked nice. I'm new to playing around with the actual formatting strings, and all I wanted to do was change the colour that a track title is when it is playing.

I find though, that when I try to change a colour, it doesn't change to right one. I've been mapping out colours for 2 hours already, and in these settings there's a lot of colours I don't even SEE being displayed ever. I'm starting to wonder what they're for really... it seems as though a lot of the colours almost resemble an inverted version of what is in the code... but not exactly.

I'm not sure how else to explain this. I was reading up on string formats and colours, and I still don't understand it. I'll paste what's in my global settings, and the colour settings for the "title" column. If somebody can explain it to me, please let me know!

Global variables:
$if($strcmp($tracknumber(),01),is_first=1)
$if($strcmp($tracknumber(),02),is_second=1)
$if($strcmp($tracknumber(),03),is_third=1)
$if($strcmp($tracknumber(),04),is_fourth=1)

Codec=
$if($strcmp($codec(),Musepack), %__mpc_profile%)
%__bitrate% kbps $if([%__extrainfo%],'VBR',$if($stricmp($codec(),'MP3'),'CBR'))

//Color Themes
color1=4F4F4F
color2=4A4A4A
normalfont=C4C4C4
albumfont=FFFFFF
artistfont=D0B364
commentfont=AC8B33


Global colours
000000|555555|$if(%_isplaying%,$rgb(220,220,220),$rgb(255,255,255))|$if(%_isplaying%,$rgb(204,208,212),$rgb(230,234,238))|$if(%_isplaying%,$rgb(204,208,212),$rgb(240,244,248))


Track title display colour:
$if(%_isplaying%,5374CC|AC950D,%_normalfont%|C4C4C4)
$if(%_is_first%,|%_color1%|%_color1%,|%_color2%|%_color2%)



I hope I've included all the right info. If I didn't, please let me know. Hope someone can explain this a little better to me.

~Justin
iStormy
FB colors are backwards from the standard RGB used all over the world, causing endless errors, annoyance, and wasted time. To use the color #123456 you have to swap it to #563412.

Hope this helps you.
Lyx
As an alternative for more readable code, consider the $rgb() function.
Takaji
Thanks for the help! The fact that I know that the colours are switched like that makes a big help. I'll also try the $rgb() function too.
ssamadhi97
QUOTE(iStormy @ Dec 5 2005, 08:48 PM)
FB colors are backwards from the standard RGB used all over the world, causing endless errors, annoyance, and wasted time.
*


Haha. You have no idea just how common BGR order really is.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.