Help - Search - Members - Calendar
Full Version: problem with ui_columns (foobar 0.9 RC1)
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Support - (fb2k)
mleko
i have problem: i have the latest calumns UI and foobar 0.9 rc1

when I run foobar 0.9 rc1 the colour formatting from columns UI dissapeard
and i dont know how I can restore them?

here the code:

Playlist view--> Global -->Variables:

" $puts(somecolor,$char(3)555555$char(3)) "
and

Playlist view--> Global -->styles:

CODE

$if(%_isplaying%,$rgb(164,235,12),$rgb(14,66,121))|
$rgb(14,66,121)|
$if(%_isplaying%,$rgb(56,106,179),$if($strcmp($mod(%_playlist_number%,2),0),$rgb(224,234,243),$rgb(237,242,249)))|
$rgb(180,192,207)|
$rgb(201,210,221)|
$rgb(200,215,240)|
$rgb(237,242,249)|
$rgb(237,242,249)|
$rgb(200,215,240)|



Shade[ST] told me that color formatting has changed in the latest columns ui, and is no longer compatible with the old format.
Use:
CODE

CODE

$set_style(#ITEM#[,1|0],#COLOR1#[,#COLOR2#][,#COLOR3#])


#ITEM# is text or back or frame-top, frame-left, frame-right, frame-bottom
if #ITEM# is one of the frames, the next item in the list is the frame status (on/off)

The colors are in hex format, with no special characters (eg, web format) : AFBF08 is a color.
Only #COLOR1# is used if coloring a frame. For text, colors 1 and 2 are used (text / textselected)
for background, color1 is back color, color2 is back/selected, color3 is back/selected-unfocused.

Example styling :
CODE

$set_global(pText,5BC8DB)
$set_global(pTextSel,A3D5D6)
$set_global(pBack,2F365E)
$set_global(pBackSel,493E30)
$set_global(pBackSelU,314833)

$set_style(text,$get_global(pText),$get_global(pTextSel))
$set_style(back,$get_global(pBack),$get_global(pBackSel),$get_global(pBackSelU))




coudl anyone help me??
Shade[ST]
Okay, your goal here is to convert each number to hexadecimal. The new test variable for %_isplaying% is now %isplaying%, and you can select your colors in the globals tab (at the bottom, the ... picks your color, and then the hexadecimal value you can copy to the $set_style(...) parameters.)

Have a look at this page :

http://music.morbo.org/wiki/columns_ui:config:colour_string
Frank Bicking
QUOTE(Shade[ST] @ Feb 24 2006, 11:05 PM)
Okay, your goal here is to convert each number to hexadecimal.

That's not necessary, $set_style supports color values returned by the $rgb() function, too, and this syntax is even going to be defaulted.
mleko
ok but how change it:

CODE

$if(%isplaying%,$rgb(164,235,12),$rgb(14,66,121))|
$rgb(14,66,121)|
$if(%isplaying%,$rgb(56,106,179),$if($strcmp($mod(%_playlist_number%,2),0),$rgb(224,234,243),$rgb(237,242,249)))|
$rgb(180,192,207)|
$rgb(201,210,221)|
$rgb(200,215,240)|
$rgb(237,242,249)|
$rgb(237,242,249)|
$rgb(200,215,240)|


i dont know anything (amost smile.gif )about formatting --> i found this formatting somewhere in the internet:)

ok i try do it myself smile.gif
i have: colour text when playing, text when not playing, back when playing

i DON`T have:
-colout ifselected (how do it?)
-two colours of background in playlist (DONE smile.gif )
-small 1-pixel border between tracks

this is screen:

user posted image
Thief
sorry for beeing little offtopic here, but how can i get this cute progress bar in foobars status bar? (i'm using latest RC and latest ColunmsUI). Can you please show me this code? Thanks in advance.
Shade[ST]
QUOTE(Thief @ Feb 24 2006, 09:03 PM)
sorry for beeing little offtopic here, but how can i get this cute progress bar in foobars status bar? (i'm using latest RC and latest ColunmsUI). Can you please show me this code? Thanks in advance.
*


Get windowblinds. You'll find your share of windows customizations.
NEMO7538
QUOTE(Thief @ Feb 24 2006, 07:03 PM)
sorry for beeing little offtopic here, but how can i get this cute progress bar in foobars status bar? (i'm using latest RC and latest ColunmsUI). Can you please show me this code? Thanks in advance.
*


do you mean this?
CODE

//
$puts(progress_char,█)
$puts(progress_length,66)

$puts(progress_color1,000080)
$puts(progress_color1a,$blend($get(progress_color1),0080FF,%_time_elapsed%,%_time_total%))

$puts(progress_color2a,804000)
$puts(progress_color2,$blend(FFBA75,$get(progress_color2a),%_time_elapsed%,%_time_total%))

// progressbar
$puts(progressbar,
$if(%_length_seconds%,

$puts(progress,$muldiv(%_time_elapsed_seconds%,$get(progress_length),%_length_seconds%))
$transition($repeat($get(progress_char),$get(progress)),$get(progress_color1),$get(progress_color1a))
$transition($repeat($get(progress_char),$sub($get(progress_length),$get(progress))),$get(progress_color2),$get(progress_color2a)),streaming...))
$get(progressbar)
Thief
QUOTE(Shade[ST)
,Feb 25 2006, 06:29 AM]Get windowblinds. You'll find your share of windows customizations.
*


well no, i just want to get this progress bar like at screeny above. and personally i don't like windowblinds at all.
QUOTE(NEMO7538 @ Feb 25 2006, 08:58 AM)
do you mean this?
*


yes this, thanks, but unfortunately this code not working for me, i putted it into Display -> ColumnsUI -> Title formating -> Status bar. Nothing changed..
Please help, i'm pretty new to ColumnsUI customization.

[edit] oops, sorry, its working! can someone share with me nice status bar config (where i can see file format also)? thank you.
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.