Recommended Posts

Removing black line:

Change (Preferences > Display > PanelsUI > Edit layout and this line in the beginning of code):

$drawrect(0,02,%_width%,%_height%,brushcolor-240-240-240 pencolor-null)

to

$drawrect(0,00,%_width%,%_height%,brushcolor-240-240-240 pencolor-null)

:)

Edited by mBunio
Question for those using this config, anyone know how to resize the right sidebar by several pixels? It's just a tad too small to fit all the text.

bdsjj6.png

Rightclick the captionbar and select Settings. Now, somewhere in the beginning there should be a sidebar value. By default it's set to 200. I'm not sure though if everything will dynamicly adapt to new vaule. But hopefully.... :/

Ah so that's what it was! Awesome. I got the volume, seekbar, and spectrum analyzer now. Now time to edit in a search button :)

Just noticed something. When you double click a song to start it playing the track number moves up about a pixel. I know it's just a small detail, but just an idea for another fix in the next version.

It's easy: change in item display

$alignabs(5,-1,%_width%,%_height%,,middle)

to:

$alignabs(5,0,%_width%,%_height%,,middle)

One more thing:

When you don't know year,genre or album name you have:

30913498hh9.jpg

so I've used e.g.

[%genre%]

instead of

%genre%

In albums without name, year, etc. it looks like this:

57706045pg0.jpg

Great mod moglenstar. Smart and efficient. I like it :)

okay, lets see if i can get this right first time..

mogfuu0.2 is done!

mogfuu0.2.png

thanks for all of the feedback, and patience with the previous version.. heh

changes:

- cleaned up the code, pui is now 4kb smaller

- squashed as many bugs as i could

- added ability to toggle wsh panel on/off for volume and seekbar, independently

- added toggle to align playback buttons left, center, right

- added artist/album overlay on album art

known bugs:

- for some reason when starting foo, the bottom panel background isn't rendered - resize window to make it show!

this is an upgrade to the previous release, so you will need that first (for the images) - i'm only providing the pui for this

download

SWEEET!!!!

I have the foobar wsh crash so I'm not using those bars but I did notice that when I toggled them by changing botht he values that only the volume bar showed.

thanks for that, i'll fix the seekbar - i think i forgot to put the js code in for it :x

edit:

js code for seekbar added now :)

Edited by moglenstar

Use

	$panel(wsh seek,WSH panel,1,$sub(%_height%,39),$sub(%_width%,80),5,),

for seekbar.

Then, click RMB on white area instead of seekbar, configure, choose JScript and paste this code:

var weight_normal =400;
var weight_bold   =800;
var italic_no =0;
var italic	=1;
var uline_no  =0;
var uline	 =1;
//--------
var align_top   =0;
var align_middle=1;
var align_bottom=2;

var align_left  =0;
var align_center=1;
var align_right =2;

var trim_no	 =0;
var trim_chara  =1;
var trim_word   =2;
var trim_elips_chara =3;
var trim_elips_word  =4;
var trim_elips_path  =5;

var flag_rtl		=0x0001;
var flag_vert	   =0x0002;
var flag_nofit	  =0x0004;
var flag_dispctrl   =0x0020;
var flag_nofallback =0x0400;
var flag_trailspace =0x0800;
var flag_nowrap	 =0x1000;
var flag_linelimit  =0x2000;
var flag_noclip	 =0x4000;

function StrFmt(alignH,alignV,trim,flag){ return ((alignH<<28)|(alignV<<24)|(trim<<20)|flag); }
//--------
function RGB(r,g,b){ return (0xff000000|(r<<16)|(g<<8)|(b)); }
function RGBA(r,g,b,a){ return ((a<<24)|(r<<16)|(g<<8)|(b)); }
//--------
function TimeFmt(t){
	var zpad = function(n){
		var str = n.toString();
		return (str.length<2) ? "0"+str : str;
	}
	var h = Math.floor(t/3600); t-=h*3600;
	var m = Math.floor(t/60); t-=m*60;
	var s = Math.floor(t);
	if(h>0) return h.toString()+":"+zpad(m)+":"+zpad(s);
	return m.toString()+":"+zpad(s);
}
//----------------------------------------------------------------------------

var g_font = gdi.Font(-8, 0, 0, 0, "DS-Digital");
var g_titlefmt = fb.TitleFormat("");
var g_fileinfo = null;

var g_drag = 0;
var g_drag_seek = 0;

function on_paint(gr){
	var ww = window.Width;
	var wh = window.Height;
	var pos = 0;
	var length = fb.PlaybackLength;
	var txt;

	if(length > 0){
		if(g_drag){
			pos = window.Width * g_drag_seek;
			txt = "Seek " + TimeFmt(g_drag_seek * length) + " / " + TimeFmt(length);
		}
		else{
			pos = window.Width * (fb.PlaybackTime / length);
			txt = g_titlefmt.Eval();
		}
	}

	gr.FillGradRect(  0, 0,	pos, wh, 90, RGB(190,190,190), RGB(110,110,110));
	gr.FillGradRect(pos, 0, ww-pos, wh, 90, RGB(200,200,200), RGB(180,180,180));

	gr.DrawString(txt, g_font, RGB(0,0,0), 0, 0, ww, wh,
		StrFmt(align_center, align_middle, trim_no, flag_nowrap | flag_noclip));

	gr.DrawRect(0,0, ww-1, wh-1, 1.0, RGB(255,255,255));
}
function on_size(){
}
function on_focus(focused){
	//fb.trace("focus " + focused);
}
function on_key_down(key){
	//fb.trace("key " + key);
}
function on_mouse_lbtn_down(x,y){
	g_drag = 1;
}
function on_mouse_lbtn_up(x,y){
	if(g_drag){
		g_drag = 0;
		g_drag_seek = x / window.Width;
		g_drag_seek = (g_drag_seek<0) ? 0 : (g_drag_seek<1) ? g_drag_seek : 1;
		fb.PlaybackTime = fb.PlaybackLength * g_drag_seek;
	}
}
function on_mouse_move(x,y){
	if(g_drag){
		g_drag_seek = x / window.Width;
		g_drag_seek = (g_drag_seek<0) ? 0 : (g_drag_seek<1) ? g_drag_seek : 1;
		window.Repaint();
	}
}
function on_mouse_wheel(delta){
	//fb.trace("wheel " + delta);
}
//--------
function on_playback_starting(cmd, paused){
}
function on_playback_new_track(info){
	window.Repaint();
}
function on_playback_stop(){
	window.Repaint();
}
function on_playback_seek(time){
	window.Repaint();
}
function on_playback_pause(state){
}
function on_playback_edited(){
}
function on_playback_dynamic_info(){
}
function on_playback_dynamic_info_track(){
}
function on_playback_time(time){
	window.Repaint();
}
function on_volume_change(val){
}

//EOF

Looks and works so great, you both do great work.

The default seekbar and volume bar look fine as is so I'm not that fussed about the crash errors, I'm sure the problem will be found out eventually.

Now I can finally ditch iTunes and start using foobar, works with my VS perfectly.

Edited by ReLapse

I changed mine a little, nothing major but just to suit me.

I removed the the genre display, moved the date across to where the genre used to be and I reshacked a new icon to suit my shell replacement.

post-40433-1180095400_thumb.jpg

Thanks again to Molgen and Dawxxx666.

Well done moglenstar, very smart. But I think the only defect of dawxxx666's config and its mods is the navigation in the playlist (scroll and scroll and scroll again, so I think I'll stick with toolej's fb2k for that), otherwise that's a great setup. Thanks again.

themogfuuinactiontg4.png

Well seeing that I'm rather new and hopeless at foobar how hard would it be to implement that type of playlist into the current config I'm using?

Would be nice to have 2 panels above (instead of the 3 in that sample shot) one for artist and the other for album.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • I have not even heard of that game. will take a look
    • Chasys Photo 5.41.01 by Razvan Serea Chasys Photo is a suite of image editing applications including a layer-based image editor with adjustment layers, linked layers, timeline and frame-based animation, icon editing, image stacking and comprehensive plug-in support (Chasys Photo Editor), a fast image viewer (Chasys Photo Viewer) and a fast multi-threaded image file converter (Chasys Photo Converter) , with RAW image support in all components. It supports the native file formats of several competitors including Adobe Photoshop, Affinity Photo, ArtWeaver, Corel PhotoPaint, FireAlpaca, GIMP, Krita, Paint.NET, PaintShop Pro and Pixlr, and the whole suite is designed to make effective use of multi-core processors, touch-screens and pen-input devices. Designed under the mantra of “unique, flexible and powerful”, Chasys Photo takes a radically different approach to image editing with the aim of opening up new possibilities for those who dare to be different. Chasys Photo key features: Free-style layering with blending modes Adjustment layers with multiple adjustments per layer Linked layers (a.k.a Linked Smart Objects) Composite, Image List, Frame Animation and Object Animation image modes Animation, both frame-based and object-based (timeline animation) Animation Composer engine Image Stacking for noise reduction, super-resolution, etc. Tablet/Pen-input/Stylus support with pressure control Touch-screen support with gestures including pitch-to-zoom and multi-finger panning Support for the native formats of Adobe Photoshop, Affinity Photo, ArtWeaver, Corel PhotoPaint, FireAlpaca, GIMP, Krita, Paint.NET, PaintShop Pro and Pixlr Support for common formats such as JPEG, animated PNG, animated GIF, TIFF, PICT, WebP, HEIF, DDS, JPEG-2000, JPEG-XR, JPEG-XL, AVI video, etc. Support for the OpenRaster interchange file format and rare formats such as QOI, MNG/JNG and DPX Support for older formats such as PPM/PGM/PBM, PCX/DCX, PCD, TGA, COKE, etc. Comprehensive Camera RAW file support with live adjustment Extensive plug-in support with streamlined SDKs Support for Photoshop Filter Plug-ins (.8BF) Advanced printing and scanning engines PDF document generation Icon and cursor editing, import and export, including Vista-style and Mac-OS icons Screen Capture, including Video Screen Capture with multiple triggering modes Video capture from devices (e.g. TV/Video) Supports multi-core processors, High-DPI displays and Multiple Display setups Integrated File Browser, Bluetooth OBEX and in-built utilities (Calculator, Notepad) Shell integration with thumbnails and conflict detection Unlimited Undo/Redo and Asynchronous Auto-Save, with Just-in-time memory compression to save space Fully re-editable text with advanced styling and effects (TextArt) Full alpha channel through out the workflow with Alpha protection (a.k.a. transparency protection) Multiple language support with user-editable language files and translation assistant (Chasys Photo Language Studio) Anti-aliasing and super-sampling support in tools and paths* Smart-resizing (similar to seam-carving) Best-in-class post-edit heuristics anti-aliasing engine Physical measurement specification with display size detection via EDID Uses the latest CD5 specification with animation and multi-resolution Super-fast internal graphics engine (JpDRAW2) Full UNICODE support in all components Metadata save, restore and scale to imitate vector art Configurable Guides and Grids with Snap-to-Grid Smart-dither to custom palette Asynchronous preview rendering engine Pantone equivalent palettes for PMS 100 to 814-2x Automatic color naming ... and many more! Chasys Photo 5.41.01 changelog: New Features Layered images with multiple pages (Composite/Multi-page) Additional templates to support template-centric workflow New Layer Blend Mode: Inverse Luma Mask Horizon detection in Rotate Transform Cropping option when importing video Orientation options in QR Code Generator plug-in Solved angle ambiguities (CCW versus CW) Internal Improvements Improved graphics engine (JpDRAW2™ v26.05) Improved CD5 codec (v4.10, improved ACSC compression) Improved interpolation when downsizing images Improved motion detection in Video Capture Slightly lower memory usage (RAM is getting expensive!) File Support and Bug Fixes Improved PXZ file support (placeholders, blanks) [bug-fix] Memory leak in flt_JPEG.dll Download: Chasys Photo 5.41.01 | 46.1 MB (Freeware) View: Chasys Photo Home Page | Wikipedia Page | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • We don't need stars for the word, just use the word "CSAM"
    • If they want to do business in the UK then they can't ignore it. thats why Imgur pulled out of the UK
    • Most of UK Gov are involved in pedophelia and satanic cults/rituals aka epstein mossad agent.
  • Recent Achievements

    • Very Popular
      Captain_Eric earned a badge
      Very Popular
    • One Month Later
      amusc earned a badge
      One Month Later
    • One Month Later
      DJC50PLUS earned a badge
      One Month Later
    • Week One Done
      DJC50PLUS earned a badge
      Week One Done
    • Proficient
      Eric Biran went up a rank
      Proficient
  • Popular Contributors

    1. 1
      +primortal
      508
    2. 2
      PsYcHoKiLLa
      220
    3. 3
      ATLien_0
      92
    4. 4
      +Edouard
      89
    5. 5
      Steven P.
      83
  • Tell a friend

    Love Neowin? Tell a friend!