HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: esa372 on 2023-02-14 18:20:59

Title: Columns UI - Columns vs NG playlists question
Post by: esa372 on 2023-02-14 18:20:59
I've been using this "Columns" playlist for quite a while, and I'd like to duplicate it with the "NG" playlist so I can use the latest "Columns UI" component.

(http://www.samadhilounge.com/esa/images/HA/c.jpg)

The problem is, when the NG playlist is used, I lose certain features that I'd rather keep.  The one that I really like to keep "as is" is the blue selection highlight bar.  Is there a way to adjust it's length, so that it only highlights the track, and not the empty space on the left?  My scripts don't seem to affect it.

(http://www.samadhilounge.com/esa/images/HA/ng.jpg)

I also lose the burgundy highlights and the shading gradation behind the individual tracks, but that's not quite as important to me.

So, what says the community?  Is there a way to duplicate the settings of my Columns playlist in the NG playlist?  ...or am I stuck in 2007 with version 0.5.1?

Thanks!
Title: Re: Columns UI - Columns vs NG playlists question
Post by: Daeron on 2023-02-15 05:59:00
Break down the left and right side into individual columns and color them separately using the Style tab for each column in the foobar2000 preferences window.

Put something like this in the Style tab:
https://wiki.yuo.be/columns_ui:config:colour_string
Code: [Select]
$set_style(back,background colour,selected item background colour[,selected item background colour when window is not focused])
You can set the left side's background always black, while making the right side change color when highlighted.

I think you can retrieve %list_index% or something like that as well to color each row individually (or do alternating background colors for example based on %list_index% and $mod() function as I recall).
Title: Re: Columns UI - Columns vs NG playlists question
Post by: esa372 on 2023-02-15 07:05:55
Thank you so much for the suggestions, Daeron!

I'll have a go at it tomorrow, and report back.
Title: Re: Columns UI - Columns vs NG playlists question
Post by: Daeron on 2023-02-15 15:13:31
Here is an example for the alternating background:
Code: [Select]
$puts(A,$rgb(255,0,0,255,0,0))
$puts(B,$rgb(0,0,255,0,0,255))

$ifequal($mod(%_playlist_number%,2),0,
$set_style(back,$get(A),$get(A),$get(A)),
$set_style(back,$get(B),$get(B),$get(B))
)
For some reason I used %_playlist_number% but %list_index% seems to work as well.
Title: Re: Columns UI - Columns vs NG playlists question
Post by: esa372 on 2023-02-15 20:31:30
Thanks for the alternating background script!
...but, it over-rides the Global Colors & Fonts, so that the highlite bar doesn't show (curiously, though, the active item frame does show).

Also, I don't understand how to "break down the left and right side into individual columns".  I thought I could use a splitter and have two Playlist Views side-by-side - that doesn't work, though.  Could you give a tip on how to do that?

I've gotten a step closer, though, thanks to you!  This is how it looks now:
(http://www.samadhilounge.com/esa/images/HA/ng02.jpg)
Title: Re: Columns UI - Columns vs NG playlists question
Post by: Daeron on 2023-02-15 20:50:21
File>Preferences>Display>CUI>Playlist view>Columns>[add 2]

Make one column show this (via Display script tab, use titleformatting):
Code: [Select]
Sade
Soldier of Love
2010
Style it so the background is always black (via the Style script tab, use $set_style(back.... ):

Make the other column show:
Code: [Select]
<Tracknumbers> <Track titles>
Style it so the background turns blue when highlighted (Style script tab, use $set_style(back.... )

If you dont want the background script to override highlights then you need to modify it with different colors:
$set_style(back,$get(B),$get(B),$get(B))

Again the syntax is:
Code: [Select]
$set_style(back,background colour,selected item background colour[,selected item background colour when window is not focused])
Title: Re: Columns UI - Columns vs NG playlists question
Post by: esa372 on 2023-02-16 02:50:01
I got it, now - thank you for clearing that up for me.
(http://www.samadhilounge.com/esa/images/HA/ng03.jpg)
(As you can see, I chose to display the album art, for now...  but, that may change.)

If it's not any trouble, I have two more problems that you might be able to help me with:

1) The bar at the top of the panel - the one that says "Sade / Soldier Of Love" - is there any way to modify that?  Say, ad the date to it, or even remove if entirely?  I've poked around, but I don't see any options to customize that line.

2) Below is my "Track Info" panel.  I'd like to change just the progress bar font from Segoe UI to MS Sans Serif, but leave the rest of the display untouched.  I've tried using "$set_font(font face,point size,flags)", but it just returns "Unknown Function"...  any ideas?

(http://www.samadhilounge.com/esa/images/HA/ti01.jpg)

Thanks, again!  I don't think I would've figured this out without your help...  and now I can upgrade to the latest Columns UI.

Title: Re: Columns UI - Columns vs NG playlists question
Post by: Daeron on 2023-02-16 07:24:24
1. That part is called "Groupings". I think you can set it at File>Preferences>Display>CUI>Playlist view>Columns>Groupings or something like that, but I am purely going off my memory here. In any case should be easy enough to find it now that you know the name.

You can use titleformatting to change what is displayed and even use $rgb() etc to change the colors. Inserting $tab() at the end removes the horizontal line.

2. I dont think $set_style(font,... is implemented. And more often than not you can't use multiple fonts within a single UI element.

One notable exception is the Spider Monkey Panel component which lets you display just about anything but requires more programming knowledge.

If you want a nicer progress bar I would recommend the Waveform Minibar (mod) component (its topic on this forum has some nice examples).
Title: Re: Columns UI - Columns vs NG playlists question
Post by: marc2k3 on 2023-02-16 07:48:47
2. I dont think $set_style(font,... is implemented. And more often than not you can't use multiple fonts within a single UI element.

Using Item details you can...

(https://i.imgur.com/HMLaAsq.png)

And for fb2k 2.0, my JScript Panel 3 component has an easily customisable text display panel which offers similar functionality to the above but it's usable in Default UI, supports text over album art and coloured emoji if running windows 10 or later. No programming skills required.

(https://i.imgur.com/Ylw53xX.png)

It doesn't have $set_font but uses my own custom $font function: https://jscript-panel.github.io/gallery/text-display/#fonts







Title: Re: Columns UI - Columns vs NG playlists question
Post by: esa372 on 2023-02-16 08:40:04
Thank you, Daeron - your advice has been invaluable.

Using Item details you can...
Thanks, marc2k3 - I'll check it out tomorrow.