@
Arcanthur - This is how I use colorbox blur in Aura and AZ2
In Startup.xml
Code:
<onload>Skin.SetString(colorbox_effect,blur)</onload>
<onload>Skin.SetString(colorbox_quality,4)</onload>
<onload>Skin.SetString(colorbox_blend,100)</onload>
<onload>Skin.SetString(colorbox_blursize,30)</onload>
<onload>Skin.SetString(colorbox_bitsize,1)</onload>
<onload>Skin.SetString(colorbox_pixelsize,12)</onload>
<onload>Skin.SetString(colorbox_desat,0.3)</onload>
<onload>Skin.SetString(colorbox_black,000000)</onload>
<onload>Skin.SetString(colorbox_white,ffffff)</onload>
<onload>Skin.SetString(colorbox_main,main:fhls*-;0.45;0.9)</onload>
<onload>Skin.SetString(colorbox_comp,main:hls*0.75;0;0@fhls*-;0.45;0.9)</onload>
<onload condition="System.HasAddon(script.colorbox) + Skin.HasSetting(EnableBlur)">RunScript(script.colorbox,daemon=True)</onload>
<onload condition="Skin.HasSetting(EnableBlur)">SetProperty(FIVE_daemon_set,$INFO[Skin.String(colorbox_effect)],home)</onload>
<onload condition="System.HasAddon(script.colorbox)">AlarmClock(nms1,SetProperty(NINE_manual_set,"var=main,set=$INFO[Skin.String(colorbox_main)]|var=comp,set=$INFO[Skin.String(colorbox_comp)]|var=quality,set=$INFO[Skin.String(colorbox_quality)]|var=blursize,set=$INFO[Skin.String(colorbox_blursize)]|var=bitsize,set=$INFO[Skin.String(colorbox_bitsize)]|var=pixelsize,set=$INFO[Skin.String(colorbox_pixelsize)]|var=black,set=$INFO[Skin.String(colorbox_black)]|var=white,set=$INFO[Skin.String(colorbox_white)]|var=blend,set=$INFO[Skin.String(colorbox_blend)]|var=desat,set=$INFO[Skin.String(colorbox_desat)]",home),00:05,true)</onload>
The skin strings set various properties of colorbox. Main ones you want are:
colorbox_effect (to set colorbox to use blur)
colorbox_quality (to set quality of generated blur image, 1 is best, 8 is worst - considering its blur though, you can get away with 8. I like 4 though)
colorbox_blursize (how strong the blur is)
Most of the other settings relate to other effects colorbox can do.
The runscript line starts colorbox. I have a skin setting to enable it so that it doesn't run unnecessarily if disabled - Skin.HasSetting(EnableBlur).
You could just remove the setting altogether if you always want to use colorbox.
The FIVE_daemon line starts the blur service of colorbox.
The AlarmClock sets the colorbox settings after a delay to give colorbox time to start.
To blur images, you need a hidden control that you pass the images to:
Code:
<control type="multiimage" id="7975">
<left>-2160</left>
<width>1</width>
<height>1</height>
<timeperimage>7000</timeperimage>
<randomize>true</randomize>
<fadetime>600</fadetime>
<imagepath background="true">$VAR[Global_Background_Image_Var]</imagepath>
<visible>System.HasAddon(script.colorbox)</visible>
<visible>Skin.HasSetting(EnableBlur)</visible>
</control>
Replace the $VAR with the image that you want to blur. The 7975 control is the blur daemon (i.e. FIVE as in 797
5)
I just pass it my default background variable because I want to apply blur to everything. But you might just want to pass $INFO[ListItem.Art(fanart)] or whatever.
Colorbox will now blur whatever image is in 7975 and output the blurred item to:
$INFO[Window(home).Property(ImageFilterFIVE)]
Put that infolabel in your image control that you use for the background.