Help - Search - Members - Calendar
Full Version: Text is black when using $set_style
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Support - (fb2k)
tool++
Ok for some weird, weird reason, using set style with text makes the text black.

Not only that, but it is getting noticed as the selected colour is what I specify it.

Here's the string for the column:

CODE


$if(%_isplaying%,
    $set_style(text,000000,000000)
    $set_style(back,FFFFFF,FFFFFF)
    $set_style(frame-top,1,222222)
    $set_style(frame-bottom,1,222222)
    $set_style(frame-right,1,222222)
,

$select(%tracknumber%,
$set_style(text,646464,FFFFFF)
$set_style(back,D2D2D2,000000)
$puts(isdone,1)
,
)

$if($strcmp($get(isdone),1),,
$set_style(text,787878,FFFFFF)
$set_style(frame-top,1,C8C8C8)
$ifequal($mod(%_playlist_number%,2),0,
$set_style(back,E6E6E6,000000)
,
$set_style(back,F0F0F0,000000)
)
)    
)




fluffy
Don't you need the little box before and after the hex notation? I'm not sure how to make one...try converting the values to rgb.
tool++
Not in set style :|

Here's the wiki entry for it:

http://music.morbo.org/wiki/columns_ui:config:colour_string


And afaik I'm following it to the book.

I also have another similar string in a different column that works perfectly unless I use if2 instead of if,, (which is also effing weird).
Bachi-Bouzouk
Here, your text is not in black but in light grey:

IPB Image
http://eolindel.free.fr/images/tool.gif

(Maybe you use enable legacy support or something like that, even if I can't see why that option would change anything)
tool++
Interesting, disabling globals fixed it :S

Thanks btw <3
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.