Help - Search - Members - Calendar
Full Version: columns ui playlist colouring
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
derzel
hi there!

i lately switched to latest columns ui version (0.2.1 alpha 11 v3) and experienced a problem i can't find any solution myself...hoping someone may give me a hint here.

i got an column like this:
CODE
$get_global(cTxtArtist)
$if3(
$if($greater(%subsong%,0),$caps(%artist%),)
,%DISCOGS_ARTIST%,%artist%,$rgb(255,0,0)<No Artist>
)
'   '
$get_global(cTxtTitle)
$if3(
$if($greater(%subsong%,0),$caps(%title%),)
,%DISCOGS_TRACK_TITLE%,%title%,$rgb(255,0,0)<No Title>
)
'   '
$if(%isplaying%,$rgb(0,164,0)'['+%_time_elapsed% $if2($rgb(128,255,0)'['%_length%']'
$rgb(0,164,0) -%playback_time_remaining%']',']'),
$if2($rgb(128,255,255)$if($strcmp(%length_seconds%,0),$rgb(255,0,0),)'['%_length%']',))


i use no custom style script for the column instead using globals variables:
CODE
$set_global(cTxtStd,$rgb(112,112,112))
$set_global(cTxtSel,$rgb(255,0,0))
$set_global(cTxtArtist,$rgb(255,112,43))
$set_global(cTxtNo,$rgb(255,190,159))
$set_global(cTxtTitle,$rgb(255,255,128))
$set_global(cTxtTime,$rgb(146,218,215))


everything fine so far, but when i highlight or select an item in my playlist columns changes the text-colours (randomly as it appears to me). columns ui doesn't touch any columns having uncoloured text in it (see index column in screenshot added), but every column with some coloured text is changed. pls refer to picture added.

IPB Image

i was able to prevent columns ui from changing colours in other columns (see '#' column or playing symbol '>>') by using custom style script:

CODE
$set_style(text,
$get_global(cTxtNo),$get_global(cTxtNo)
)


...but i was not able 2 write one fitting the column above. is there any possibility to prevent columns ui from changing textcolours of selected items? as it appears to me it's a default setting. i tried a clean columns install with only one coloured column and had the same problem. thanx a lot for your time and help!

---
greetz
derzel
BuM
I think what u wanna do is this....

$set_global(cTxtStd,$rgb(112,112,112,112,112,112))

add ur color a 2nd time... it will keep it the color u want even
when selected
derzel
thx a lot for the fast reply!
that will fix the problem biggrin.gif

*bow*
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.