INTERACT FORUM

More => Old Versions => Media Center 17 => Topic started by: marko on June 12, 2012, 03:40:17 am

Title: Skinnable frames & borders introduced in build 171
Post by: marko on June 12, 2012, 03:40:17 am
The history behind the introduction of this system can be read here (http://yabb.jriver.com/interact/index.php?topic=72654.0).

Matt,
Thank you for trying something completely different.

I'm still exploring the possibilities here, but here are my initial observations.

The system is using the "GlowShadow" file for tool tips which is giving those produced by hovering over truncated text in panes and columns an odd look.

Theater View is applying "Border_Frame" to all photos and artist images. Is this a bug?

Where is "Frame_ThumbnailBorder" used? I made a temporary all cyan version, but could not see it anywhere?

Initial feeling here is really positive. I've created a drop shadow file here that is more akin to what we had in build 161, using a zero margin left and top, and a 10 pixel margin right and bottom for the drop shadow.
I have to run, but will post screens and "Border_DropShadow" file when I get back in.

-marko
Title: Re: Skinnable frames & borders introduced in build 171
Post by: Matt on June 12, 2012, 09:59:08 am
Thanks for the feedback.

Next build:
Changed: Build 171 would unintentionally show frames on images in Theater View.
Fixed: List truncation tool tips would look incorrect with build 171.

"Frame_ThumbnailBorder.png" is obsolete (it was used for one or two beta builds), and can be deleted.
Title: Re: Skinnable frames & borders introduced in build 171
Post by: marko on June 12, 2012, 01:08:47 pm
Cheers Matt.

Having spent an hour or two on this, I have to say that the default drop shadow is really quite clever in the way it transitions between light and dark backgrounds.

After much switching back and forth though, I decided that I like mine better. Truthfully though, there's not a lot in it.

So, build 161 had the old drop shadow effect that served us all so well for so long...
(http://www.theganghut.co.uk/pics/ia/17/snap-100.jpg)

The default from build 171 onwards looks like so...
(http://www.theganghut.co.uk/pics/ia/17/snap-017.jpg)

Build 171 also allows us to modify the shadow effect via skinning. I like this, which is more like build 161, keeping the edges crisp and clean...
(http://www.theganghut.co.uk/pics/ia/17/snap-018.jpg)

As I said, there's not a lot in it.

The only things left now are really minor...


Thank you again for coming up with an innovative solution to the problem.

If anyone wants a copy of the Border_DropShadow file I've used above, save this...
(http://www.theganghut.co.uk/pics/ia/17/Border_DropShadow.png)
add it to your skin folder, and finally, add the following code to your skin xml file...
Code: [Select]
<BORDER>
  <Entry Name="DropShadow" Bitmap="Border_DropShadow.png" Rows="1,?-Flex,9" Columns="1,?-Flex,9" Cells="B2-Skip">
    <Data InternalMarginLeft="1" InternalMarginTop="1" InternalMarginRight="9" InternalMarginBottom="9"></Data>
  </Entry>
</BORDER>

-marko
Title: Re: Skinnable frames & borders introduced in build 171
Post by: Scolex on June 13, 2012, 12:45:09 am
Matt,
Thank you for implementing this change.

Marko,
Thank you for doing the leg work on what is required in the skin to make use of the change.

I am quite happy with my new NO border skin.
Title: Re: Skinnable frames & borders introduced in build 171
Post by: marko on June 17, 2012, 04:54:11 am
Matt,
Is there any chance that the "Custom" system could be extended to include the skin items folder?

We could then set a "Custom Skin Items" folder to hold these shadow files and have every skin use them. I did try, but MC ignored it!!

-marko
Title: Re: Skinnable frames & borders introduced in build 171
Post by: Matt on June 18, 2012, 06:54:12 am
That's an interesting idea.

Did you know that you can put the borders into an individual skin as well?  Since you use a custom skin, this might solve it for you.
Title: Re: Skinnable frames & borders introduced in build 171
Post by: marko on June 18, 2012, 10:47:12 am
Afternoon Matt,

That's exactly what I've done. What this means however, is that for every skin I switch to, I will also need to copy the shadow files and edit the xml.

We already have the ability to create "Custom Art", "Custom Resources" and "Custom Webpages" that when present, are used in place of the "Default" folders.
If that same approach could be applied to a "Custom Skin Items" folder too, then my shadow files would be used regardless of the skin I choose to load, saving the hassle of copying files and editing xml every time.

-marko