Lan Yu:
Perhaps I should clarify, what exactly do you mean when you say you want to "change the groups background? I assumed you meant the group header line. Do you mean the background for the actual playlist items? Or maybe the background color for the part of the playlist that has no entries?
If it is the header line then you need to modify your existing $set_style(back,):
$set_style(back,
$ifequal($mod(%_playlist_number%,2),0,$get_global(cBgStd),$get_global(cBgAlt)),
$get_global(cBgSel))
$if(%isplaying%,$set_style(back,$get_global(cBgPlay),$get_global(cBgPlay)))
The quick and easy way to do it would be to add the $if(%_is_group%) below your existing code so that it will override the colors for group headers like this:
$set_style(back,
$ifequal($mod(%_playlist_number%,2),0,$get_global(cBgStd),$get_global(cBgAlt)),
$get_global(cBgSel))
$if(%isplaying%,$set_style(back,$get_global(cBgPlay),$get_global(cBgPlay)))
$if(%_is_group%,$set_style(back,$rgb(96,96,96)))
It looks like you are defining other colors in:
File> Preferences> Display> Columns UI> Playlist View> "Globals" Tab> "Variables" SubTab
You may wish to define a variable such as cBgGrp and then reference it like this:
$set_style(back,
$ifequal($mod(%_playlist_number%,2),0,$get_global(cBgStd),$get_global(cBgAlt)),
$get_global(cBgSel))
$if(%isplaying%,$set_style(back,$get_global(cBgPlay),$get_global(cBgPlay)))
$if(%_is_group%,$set_style(back,$get_global(cBgGrp)))
--
If you want to change the background for individual playlist items you need to modify this part of your code:
$set_style(back,
$ifequal($mod(%_playlist_number%,2),0,$get_global(cBgStd),$get_global(cBgAlt)),
$get_global(cBgSel))
To something like this:
$set_style(back,$rgb(0,128,256),$get_global(cBgSel))
--
If you want to change the background for the empty part of the playlist that contains no entries you will need to change
File> Preferences> Display> Columns UI> Colours and Fonts> "Colours" Tab> Item / Background[/i]