QUOTE(spase @ Oct 18 2004, 03:29 PM)
just a quick idea I had for coo_columns:
have a way to give a playlist a "tag"
the idea came to me as a simple way to mark a playlist as containing singles rather than full albums, but I suppose it could be useful in other ways (such as genres etc.)
for example: when you make a new playlist, have a check box for "singles." (basic) or when making a playlist, have a text box for defining associated tags--a place where you can type something like %_playlist_type% = singles" or something similar. (advanced) then in playlist formatting, add something like
$if($stricmp(%_playlist_tag%,singles),,[%album])
or
$if($stricmp(%_playlist_genre%,rock),{insert color codes here},,)
i can see how this would be useful along with the proposed color tagging in the playlist switcher box as well, as in different genre's playlists get different colors in the switcher, etc.
i'm not sure if this would be possible as far as the way foobar works, but it would be a more elegant way of marking playlists, rather than using the "-s-" designation.
Giving playlists tags isn't something that I think should be implemented in a UI, rather the core or at least a separate component. Anyway, you can try the new titleformatting for playlist names, and so you can effectively cut out the "-s-".
QUOTE(upNorth @ Oct 18 2004, 07:42 PM)
QUOTE(musicmusic @ Oct 17 2004, 03:54 PM)
QUOTE(upNorth @ Oct 17 2004, 10:48 AM)
I would much rather have the playlist switcher coloring I
proposed earlier

Hmm, I dont think that would actually be too difficult to support. I'll look into it and maybe it will make it into alpha 5

That would be great!

If implementet the way I hope, it would make the display more elegant. What I intended to do in the first place, was to look for parts of a playlist name like "-s-" and replace it with color codes. That way "-s-" woudn't be visible in the playlists list at all, but the color would tell you it's a "singles" playlist.
If this gets implemented, I would also start using other such markers to color extended information (genre, sorting, ...) in playlist names, as I personally like using colors for enhanced readability.
I don't know if spase's way is any simpler to use or implement (sounds more complicated to me, but I'm no expert), but go with whatever you think is best. I'm only after the option to add colors, but the "find and replace" method I suggested would at least make it easy to use more than one color in one single playlist name.
Enough blah blah. If a "kissing-smiley" doesn't do the trick, I don't know what will...

The simplest way for me to implement it (and how I did..), was just to use titleformatting, and set the title of the playlist to %title%. So you can parse the title how you want, insert colour codes blah blah... In your case maybe $replace(%title%,-s-,<colour code>,..) would be fine.
Anyhow,
alpha 5 is out.
Changelog:
QUOTE
alpha 5
-sidebar panel captions are now optional, default to off for toolbars
-added SHIFT, CTRL modifier key for adding panels to sidebar, as described above
-ui_drop_item_callback now supported
-added simple commandline support for importing/exporting fcs files, so you can associate them if you want. see foobar2000 /columnsui:help for details.
-added option to disable drawing of playback button backgrounds and remove the padding around the bitmaps (requires restart of foobar, buttons are still indented on mousedown since there isn't any other mouse down effect used)
-modifed appearance of sidebar panel captions
-added custom sidebar auto hide show/hide delay settings
-speed test now tests all formatting strings & columns
-fixed vis colour chooser
-added option to remove underscores for dropped playlists
-added option for action when doubleclicking on empty space on playlist
-not registered as a dialog with the dialog manager anymore; fixes "IDOK"/default push button stuff for ui_extensions that are dialogs (was using bad workaround before), and used another work around for the broken tabbing that results as a result of not using dialog manager...
-fixed old columns auto-sizing bug
-info button in prefs detects libpng & zlib
-added option to use titleformatting with playlist switcher panel
-fixed some bugs in playlist switcher drawing code
-changed wm_mousewheel handler, should scroll properly for pages now
-added annoying warning to "List all toolbars"
alpha 4
-fixed bug in painting menu, button toolbar backgrounds
-fixed escape in menubar
-fixed "edit this column"
-added sidebar panel captionbars
-implement revised ui_extension api
-ui is now tabable
-changed sidebar add panel behaviour
UI Extension sdk (Copy & paste link) updated as well, minor fix to select text for edit controls in ui_extension::g_on_tab().