Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Setting color for active item (Read 2613 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Setting color for active item

Hi, i'm setting my foobar using Columns UI. It's ok but i can't set color for active/playing item
I'm looking here Preferences>Display>Columns UI>Colours and Fonts. here there is active item frame but when i set a color it doesn't display (also checked Use custom... checkbox)
Some help?
Thanks

Setting color for active item

Reply #1
for coloring active (selected) item, just set colors in Colors and Fonts, and forget about active frame thing

for coloring playing item you should dive in playlist view > globals: http://yuo.be/wiki/columns_ui:manual

here is sample script example:

Code: [Select]
$if($or(%_isplaying%,%_ispaused%),
$if($strcmp($mod(%_time_elapsed_seconds%,2),0),
$set_style(back,$rgb(128,128,128),$rgb(160,160,160))
)
)


for it to work you should not use "themed" mode for NGPlaylist

Setting color for active item

Reply #2
Hi! Thanks for this reply!! but i don't understand where put that code. i'm in Globals window, here i have two "tab"
1) Variables: this field is void
2) Style: here i have this code

Code: [Select]
$if(%_themed%,,$if($and(%isplaying%,$not(%_is_group%)),

$puts(back,$offset_colour(%_back%,$offset_colour($calculate_blend_target(%_back%),ff0000,20),25))
$puts(back-selected,$offset_colour(%_selected_back%,$offset_colour($calculate_blend_target(%_selected_back%),ff0000,20),25))
$puts(back-selected-no-focus,$offset_colour(%_selected_back_no_focus%,$offset_colour($calculate_blend_target(%_selected_back_no_focus%),ff0000,20),25))
,

$ifequal($mod($if2(%_display_index%,%list_index%),2),0,
$puts(back,$offset_colour(%_back%,$calculate_blend_target(%_back%),12))
$puts(back-selected,%_selected_back%)
$puts(back-selected-no-focus,%_selected_back_no_focus%)
,
$puts(back-selected,$offset_colour(%_selected_back%,$calculate_blend_target(%_selected_back%),7))
$puts(back-selected-no-focus,$offset_colour(%_selected_back_no_focus%,$calculate_blend_target(%_selected_back_no_focus%),7))
$puts(back,%_back%)
)



Setting color for active item

Reply #3
Cut that code and paste in editor, then backup somewhere.

In global variables tab you define global variables for later usage in style tab or in columns for playlist view

enter this i.e. in variables tab:

Code: [Select]
$set_global(strip_bg,$rgb(240,244,248))
$set_global(strip_sel,$rgb(228,236,246))

$set_global(group_bg,$rgb(230,234,241))


that paste this in style tab:

Code: [Select]
$set_style(frame-top,1,f8f8f8)
$set_style(frame-left,1,f0f0f0)
$set_style(frame-right,1,f0f0f0)
$set_style(frame-bottom,1,e0e0e0)

$if($strcmp($mod(%list_index%,2),1),
$set_style(back,$get_global(strip_bg),$get_global(strip_sel))
)

$if(%_is_group%,$set_style(back,$get_global(group_bg)))


just to see how it works, so you can browse provided help link from previous post and create something you like

Setting color for active item

Reply #4
Hi 2E7AH. i want to thank you but i'm totally newbie... i'm not interested to become an expert user of foobar. i only want to change color of the plying item. i've tried what you tell me but i realize more confusion! :S

Setting color for active item

Reply #5
If you put the code from post #2 in your style tab you should get colored + flickering playing item

And if you like to mess with this things you should take your time - you can't customize your preferences in a day, and this approach is fine IMO as you'll get what's going on instead of using some skin candy which you can only look, hardly change anything or use foobar's features in full potencial

Setting color for active item

Reply #6
i've already put code from post#2 in style tab. i get a blinking selection i think was wrong... only one thing and i hope not to annoy: how i can remove that blinking?
i have removed it commenting second line (//$if($strcmp($mod(%_time_elapsed_seconds%,2),0),) but i don't know if it's correct

and in this line " $set_style(back,$rgb(255,255,0),$rgb(160,255,0)) " what is the second $rgb? i know the first is the selection color but the second isn't the text color.

Setting color for active item

Reply #7
isn't it obvious?

$if(%_isplaying%,$set_style(back,$rgb(255,0,0)))

Setting color for active item

Reply #8
it's obvious because i understand it by my test and not by your reply. i think if a person want really help another person should answer more cordially. but it's only my ignorant opinion.

Setting color for active item

Reply #9
I posted reply by your unedited post, but what's up with your whining? 
I saw couple of your posts asking about skinning and that's why I provided more extensive posts
Suite yourself

 
SimplePortal 1.0.0 RC1 © 2008-2021