Skin engine enhancements (themes, guide colors, skin functions, weather settings...) | Page 22

Discussion in 'Area 51 - Testing Area' started by ajp8164, December 17, 2011.

  1. doveman

    doveman Portal Pro

    Joined:
    February 12, 2008
    Messages:
    2,326
    Likes Received:
    166
    Ratings:
    +182 / 3
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    That's cool. I'd looked into this before and thought it was hardcoded somewhere as I couldn't find an .xml for it, but if there is one that I can edit that's great. Could you tell me which file it is please?

     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. hkjensen
    • Premium Supporter

    hkjensen MP Donator

    Joined:
    June 11, 2007
    Messages:
    164
    Likes Received:
    47
    Location:
    Copenhagen
    Ratings:
    +63 / 0
    Home Country:
    Denmark Denmark
    Hi

    Found a bug when the skin directory is not in %PROGRAMDATA%

    Setting Guide settings in section TV-Client look for SkinSettings.xml in %PROGRAMDATA%\Team MediaPortal\MediaPortal\Skin\<skinname>

    and not directory specified in MediaPortalDirs.xml

    Solution:

    public static string SkinName
    - set dir according to specified in MediaPortalsDir.xml and not CommonApplicationData

    private static bool ReadConfig(string configDir)
    - set Selectedskindir according to skindirectory and skinname

    Code (Text):
    1. diff --git a/mediaportal/Utils/Configuration/Config.cs b/mediaportal/Utils/Configuration/Config.cs
    2. index 131af8d..464cc5d 100644
    3. --- a/mediaportal/Utils/Configuration/Config.cs
    4. +++ b/mediaportal/Utils/Configuration/Config.cs
    5. @@ -215,11 +215,9 @@ namespace MediaPortal.Configuration
    6.         if (value != skinName)
    7.         {
    8.           skinName = value;
    9. -          string commonAppData =
    10. -            Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)
    11. -            + @"\Team MediaPortal\MediaPortal\";
    12. -          Set(Dir.SelectedSkin, Path.Combine(commonAppData, @"skin\" + skinName + @"\"));
    13. +          Set(Dir.SelectedSkin, Path.Combine(Get(Dir.Skin), skinName + @"\"));
    14.           Set(Dir.Weather, Path.Combine(Get(Dir.SelectedSkin), @"Media\Weather\"));
    15. +
    16.         }
    17.       }
    18.     }
    19. @@ -325,6 +323,7 @@ namespace MediaPortal.Configuration
    20.               }
    21.             }
    22.           }
    23. +          Set(Dir.SelectedSkin, Path.Combine(Get(Dir.Skin), skinName + @"\"));
    24.           return true;
    25.         }
    26.         catch (Exception)
    27.  
    BUG: http://mantis.team-mediaportal.com/view.php?id=3954
     
    Last edited: August 17, 2012
    • Like Like x 3
  4. doveman

    doveman Portal Pro

    Joined:
    February 12, 2008
    Messages:
    2,326
    Likes Received:
    166
    Ratings:
    +182 / 3
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Hi,

    You haven't replied to tell me which xml should be edited to change the shutdown menu options. Could you please tell me?
     
  5. catavolt
    • Team MediaPortal
    • Administrator

    catavolt Design Group Manager

    Joined:
    August 13, 2007
    Messages:
    12,260
    Likes Received:
    4,997
    Gender:
    Male
    Occupation:
    Technical Documentation, Translation
    Location:
    Lanzarote
    Ratings:
    +7,423 / 38
    Home Country:
    Germany Germany
    Show System Specs
    Hi doveman, it´s hardcoded in MP using standard dialog, so nothing to change/hide ;)
     
  6. doveman

    doveman Portal Pro

    Joined:
    February 12, 2008
    Messages:
    2,326
    Likes Received:
    166
    Ratings:
    +182 / 3
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Ah, OK thanks. I won't waste my time looking for it then ;)

    I'll start a new thread to discuss whether the shutdown menu should be changed.

    EDIT: Done https://forum.team-mediaportal.com/threads/modify-shutdown-menu.109179/ if anyone want's to take a look and discuss.
     
    Last edited: July 4, 2012
  7. Jelmo

    Jelmo Portal Pro

    Joined:
    September 8, 2007
    Messages:
    711
    Likes Received:
    43
    Gender:
    Male
    Ratings:
    +52 / 0
    Home Country:
    Germany Germany
    Show System Specs
  8. Holzi
    • Team MediaPortal

    Holzi Super Moderator

    Joined:
    April 21, 2010
    Messages:
    7,928
    Likes Received:
    1,591
    Gender:
    Male
    Location:
    Ba-Wü
    Ratings:
    +2,228 / 8
    Home Country:
    Germany Germany
    Show System Specs
    Is it possible to have an extra genre(color) for TVShows? At the moment they are the same colour as Movies..
    Thanks!
     
  9. losttown

    losttown Community Skin Designer

    Joined:
    January 7, 2008
    Messages:
    167
    Likes Received:
    58
    Ratings:
    +58 / 0
    Hi,
    I have problem with accepting properties and skin expressions into xpos and ypos attributes of controls, is this a known issue?
    and how works RingLayout in Group control?
    Thanks in advance losttown
     
  10. ajp8164

    ajp8164 Portal Pro

    Joined:
    January 9, 2008
    Messages:
    575
    Likes Received:
    583
    Gender:
    Male
    Occupation:
    Consulting Software Engineer
    Location:
    Atlanta, GA
    Ratings:
    +584 / 0
    Home Country:
    United States of America United States of America
    Show System Specs
    It is not possible to use skin variables for x,y positions. Due to the way skin x,y positions are handled it is. It likely to be supported anytime soon. Sorry.
     
    • Like Like x 2
  11. elliottmc
    • Premium Supporter

    elliottmc Retired Team Member

    Joined:
    August 7, 2005
    Messages:
    14,927
    Likes Received:
    4,011
    Gender:
    Male
    Location:
    Cardiff, UK
    Ratings:
    +5,503 / 13
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Heyyy, Andy is back !!!!!!!
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!