HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: kelesh on 2004-01-15 06:25:04

Title: On-Screen Display Format Like Synergy for OSX
Post by: kelesh on 2004-01-15 06:25:04
Its a little dirty but it seems to do a good job:

Quote
$puts(timelength, $len(%_length%))
$puts(titlelength, $len(%title%))
$puts(firstlinelength, $add($get(titlelength), $get(timelength), 1))
$puts(albumlength, $sub($len(%album%)), 0)
$puts(artistlength, $len(%artist%))
$puts(maxlength, $max($get(artistlength),$get(albumlength), $get(firstlinelength)))
$puts(linelength, $add(3, $get(maxlength)))
$puts(linelength2,  $sub($get(linelength), $div($get(linelength), 9)))
$ifgreater($get(linelength), 20, $puts(linelength3, $get(linelength2)), $puts(linelength3, $get(linelength)))
FFFFFF[%title%  -  %_length%]
$char(10)FFFFFF$repeat($char(8211), $get(linelength3))
[$char(10)FFFFFF%album%]
[$char(10)FFFFFF%artist%]


screenshot (http://web.mit.edu/kelesh/www/pics/osdformatshot.jpg)

If anybody wants to clean it up, and get the divider bar to always be sized correctly, let me know. 

I used these settings:
auto pop-up, white on black, aligned left for window and text, anti-aliasing, background transparency at position 6/10.

For some reason volume popup just shows a white window, its quite annoying, but I rarely change the volume in software so its not really an issue.
Title: On-Screen Display Format Like Synergy for OSX
Post by: pyrosb on 2004-01-15 11:14:00
how did u get foobar to look like this? is this a windows pc?
Title: On-Screen Display Format Like Synergy for OSX
Post by: mazy on 2004-01-15 14:24:02
it's that 'brushed aqua' (or something like that) skin / theme for winxp or windowblinds ...
Title: On-Screen Display Format Like Synergy for OSX
Post by: kelesh on 2004-01-16 02:25:45
yeah, windowblinds and iskin 
Title: On-Screen Display Format Like Synergy for OSX
Post by: anza on 2004-01-16 11:33:02
You shouldn't use spaces after commas when writing title formatting strings.
Title: On-Screen Display Format Like Synergy for OSX
Post by: kelesh on 2004-01-17 03:12:21
Quote
You shouldn't use spaces after commas when writing title formatting strings.

why's that?
Title: On-Screen Display Format Like Synergy for OSX
Post by: anza on 2004-01-17 09:33:28
Because that's the way TAGZ formatting is. You shouldn't use spaces unless you want to display them. (I think) they don't interfere with this formatting because they're only used in front of numbers etc.
Title: On-Screen Display Format Like Synergy for OSX
Post by: jarsonic on 2004-01-17 17:09:01
what font are you using?
Title: On-Screen Display Format Like Synergy for OSX
Post by: kelesh on 2004-01-17 20:28:03
Tahoma Bold 18 - its the default i think
Title: On-Screen Display Format Like Synergy for OSX
Post by: Lyx on 2004-01-20 20:34:28
Quote
If anybody wants to clean it up, and get the divider bar to always be sized correctly, let me know.


do it yourself.

You can see how to do it in my current update of the gems-style. Take a look at the end of the systray string. Basically, what i'm doing is to get the sizes of all displayed lines, choose the longest one, and then pad a seperator-character with the same length (adding a modificator for fine-tuning).

http://pelit.koillismaa.fi/fb2k/strings.php?f=47 (http://pelit.koillismaa.fi/fb2k/strings.php?f=47)

- Lyx
Title: On-Screen Display Format Like Synergy for OSX
Post by: kelesh on 2004-01-21 10:55:52
uh yeah, i do exactly the same thing if you look at my string.  I find the biggest line, then add a padder.  its really a pain in the arse for non fixed-width fonts, but it seems to be okay now.