Quick question - skinning MyPics (1 Viewer)

Rob Hexenmeister

MP Donator
  • Premium Supporter
  • May 12, 2011
    243
    59
    Slaithwaite
    Home Country
    United Kingdom United Kingdom
    A quick question please on how MP builds the folder thumbs for MyPictures:

    I think it is hard-coded to use previewbackgound.png in the media folder to create the frame for the folder thumb, am I correct?

    Many thanks
    RH
     

    CyberSimian

    Test Group
  • Team MediaPortal
  • June 10, 2013
    3,751
    2,894
    Southampton
    Home Country
    United Kingdom United Kingdom
    I think it is hard-coded to use previewbackgound.png in the media folder to create the frame for the folder thumb
    Sorry, but it is not clear which thumb you mean. For example, do you mean the square thumb that has four tiny pictures embedded within it? This is used for each item in folder view, and is also the value of #selectedthumb for the item that has the focus.

    Can you post a screen shot with the relevant thumb identified?

    -- from CyberSimian in the UK
     

    Rob Hexenmeister

    MP Donator
  • Premium Supporter
  • May 12, 2011
    243
    59
    Slaithwaite
    Home Country
    United Kingdom United Kingdom
    Sorry, but it is not clear which thumb you mean

    My apologies for not being clear, yes the square thumb with the four pictures is the one I mean, although it isn't square in my skin as it is stretched to 16:9 ratio, but the folder.jpg image that is also created is 500x500 within each picture folder.

    I was just wondering which graphic is used to create the background so that I can edit it in my skin/theme. I think it is probably previewbackground.png but am not certain, and before I change it I thought I had better ask,

    Thanks as ever
    RH

    Example pictures thumb.png
     

    CyberSimian

    Test Group
  • Team MediaPortal
  • June 10, 2013
    3,751
    2,894
    Southampton
    Home Country
    United Kingdom United Kingdom
    I think it is probably previewbackground.png
    The MP skin engine does have various hard-coded names for things, but for images they usually have names that begin "Default" (but this may not be true for all cases).

    Looking at your screen shot, the background used for the thumb looks as though it changes from dark in the lower left to bright in the top right. Does your version of "previewbackground" do that? Mine does not -- it changes from dark at the bottom to bright at the top (no left/right variation). But of course you may have a different version for your skin.

    I have just scanned the MP source code looking for occurrences of "previewbackground", and the only place that it is used is in "Utils.cs", where this error message text occurs:
    Utils: Your skin does not supply previewbackground.png to create CreateTileThumb!
    So it looks as though that is indeed the image file used to create the tiled thumb. (y)

    -- from CyberSimian in the UK
     

    Rob Hexenmeister

    MP Donator
  • Premium Supporter
  • May 12, 2011
    243
    59
    Slaithwaite
    Home Country
    United Kingdom United Kingdom
    @Rob Hexenmeister if you change previewbackground.png you need delete all folder.jpg and recreate it with new background :)

    Exactly what I did over the weekend and it has worked. Folder thumbs looking much better with black faded edges. I also adjusted the border widths so when zoomed to 16:9 they appear even all the way round. Shame about the cross in the middle being a little distorted but there is no way around that.
     

    Users who are viewing this thread

    Similar threads

    Hi. I was probably being a bit fast and loose with my terminology. I meant "somewhere within the files that MP2 uses in its database". Anyway, I found a way to do this which was far from automated but relatively low effort. I found what looked like all the images (CD covers, DVD covers, backgrounds etc all lumped together in...
    Hi. I was probably being a bit fast and loose with my terminology. I meant "somewhere within the files that MP2 uses in its...
    I am in the process of setting up a legacy media player (Mede8er) which I happened to have laying around into my home cinema setup...
    Replies
    2
    Views
    432
    Thankyou High_Five, that worked perfectly, I now remember doing that 10 years ago, thanks for jogging my old memory. Cheers Tony
    Thankyou High_Five, that worked perfectly, I now remember doing that 10 years ago, thanks for jogging my old memory. Cheers Tony
    Hi everyone, I have been using it For 16 years now (from V1.1.1) and it has worked flawlessly. I only use TV Series and Moving...
    Replies
    2
    Views
    377
    PS: But maybe the MP2 team will be back tomorrow, and development and bug fixes will continue. Time will tell.
    PS: But maybe the MP2 team will be back tomorrow, and development and bug fixes will continue. Time will tell.
    Hi, Help Please. I've got several FLAC audio files that play OK on my PC, and my HTPC, via: Media Player / Windows Media Player /...
    Replies
    8
    Views
    749
    I am following the official documentation for setting up the Kodi plugin in media portal. I have got no issues with media portal, nor media portal plugin on Kodi, but with the Kodi plugin that must be installed in the media portal, as it is not getting detected. I have made a copy of the dll file into the plugins folder as found in my...
    I am following the official documentation for setting up the Kodi plugin in media portal. I have got no issues with media portal...
    I am following the official documentation for setting up the Kodi plugin in media portal. I have got no issues with media portal...
    Replies
    0
    Views
    225
    Well, I had already recognized your problem, but I still wanted to point out the basic connections once again. Unfortunately, I don't have a fundamentally different solution for you, but with this approach you should achieve your goal. ;) The idea of first setting the current genre colors with the defines is certainly a good one, as...
    Well, I had already recognized your problem, but I still wanted to point out the basic connections once again. Unfortunately, I...
    Good afternoon, Does anyone know a way of referencing the genre colour of the currently selected item in the TV Guide. We are all...
    Replies
    4
    Views
    2K
    Top Bottom