Quick question - skinning MyPics (1 Viewer)

Rob Hexenmeister

MP Donator
  • Premium Supporter
  • May 12, 2011
    207
    49
    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
    2,849
    1,771
    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
    207
    49
    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
    2,849
    1,771
    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
    207
    49
    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

    Sums up the problem I am having. Sorry if I wasn't clear. No, #selectedthumb is not preserved on going to the next window. That's exactly what I am trying to solve. An example is moving from mytvrecordedtv.xml to mytvRecordedInfo. The variable changes from a screen grab thumbnail from the video file to a channel logo during...
    Sums up the problem I am having. Sorry if I wasn't clear. No, #selectedthumb is not preserved on going to the next window. That's...
    Good evening, I have a basic understanding of using skin.setstring and am able to set a skin property when a control gets focus...
    Replies
    2
    Views
    828
    @CyberSimian As I have just posted in the MP2 subforum I will stay with MP1 for the time being. Many thanks for all your very informative and detailed responses. I will take your advice and monitor the Scheduled recordings list for the discrepancies you have described. Cheers.
    @CyberSimian As I have just posted in the MP2 subforum I will stay with MP1 for the time being. Many thanks for all your very...
    I am in Australia. My problem is with recorded tv programs. Most times the program title and info are correct but quite often the...
    Replies
    36
    Views
    3K
    MP1 MP2 [solved] Purge old recordings DE
    Today my PVR disk died, taking with it a load of old recorded TV programmes. I swapped in a spare drive but I see that MP2 still thinks the old recordings exist. I expected the metadata for the recordings to be in same folder as the PVR but apparently not. How do I make MP2 forget about these old recordings? Needless to say, I tried...
    Today my PVR disk died, taking with it a load of old recorded TV programmes. I swapped in a spare drive but I see that MP2 still...
    Today my PVR disk died, taking with it a load of old recorded TV programmes. I swapped in a spare drive but I see that MP2 still...
    Replies
    0
    Views
    653
    If anyone ever experiences the above, I found a fix. Removing and reinstalling MP-TVSeries fixed it. It must have gotten corrupted during the reinstall of MP. I also had to do the same with TRAKT which had some issues too that were not apparent at the time. All is well once again. :cool:
    If anyone ever experiences the above, I found a fix. Removing and reinstalling MP-TVSeries fixed it. It must have gotten corrupted...
    After much trial and error and comparing this computer with another that was working, I finally found out that Fanarthandler...
    Replies
    1
    Views
    802
    Thank you so much, I have downloaded and then cut and pasted the files into their respective locations and iPlayer has its subcategories restored and a few of the broken sites that I had are now back and working. I think it proves that the core program is fine, but there is a problem with the internet connection. I have no idea what...
    Thank you so much, I have downloaded and then cut and pasted the files into their respective locations and iPlayer has its...
    Good evening I never was able to solve my TLS problems and my Online Videos installation is now getting seriously outdated (here...
    Replies
    6
    Views
    947
    Top Bottom