Skin engine enhancements (themes, guide colors, skin functions, weather settings...) (1 Viewer)

doveman

Portal Pro
February 12, 2008
2,326
178
United Kingdom United Kingdom
Country flag
Well, the bottom line is that they can be hidden by editing the xml, which isn't too difficult and there are plenty of people who can help.

The trouble is, if we change something that has always been there, many people will demand that we put it straight back.
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?
 

hkjensen

MP Donator
  • Premium Supporter
  • June 11, 2007
    164
    65
    Copenhagen
    Denmark Denmark
    Country flag
    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:
    diff --git a/mediaportal/Utils/Configuration/Config.cs b/mediaportal/Utils/Configuration/Config.cs
    index 131af8d..464cc5d 100644
    --- a/mediaportal/Utils/Configuration/Config.cs
    +++ b/mediaportal/Utils/Configuration/Config.cs
    @@ -215,11 +215,9 @@ namespace MediaPortal.Configuration
            if (value != skinName)
            {
              skinName = value;
    -          string commonAppData =
    -            Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)
    -            + @"\Team MediaPortal\MediaPortal\";
    -          Set(Dir.SelectedSkin, Path.Combine(commonAppData, @"skin\" + skinName + @"\"));
    +          Set(Dir.SelectedSkin, Path.Combine(Get(Dir.Skin), skinName + @"\"));
              Set(Dir.Weather, Path.Combine(Get(Dir.SelectedSkin), @"Media\Weather\"));
    +
            }
          }
        }
    @@ -325,6 +323,7 @@ namespace MediaPortal.Configuration
                  }
                }
              }
    +          Set(Dir.SelectedSkin, Path.Combine(Get(Dir.Skin), skinName + @"\"));
              return true;
            }
            catch (Exception)
    BUG: http://mantis.team-mediaportal.com/view.php?id=3954
     
    Last edited:

    doveman

    Portal Pro
    February 12, 2008
    2,326
    178
    United Kingdom United Kingdom
    Country flag
    Well, the bottom line is that they can be hidden by editing the xml, which isn't too difficult and there are plenty of people who can help.

    The trouble is, if we change something that has always been there, many people will demand that we put it straight back.
    Hi,

    You haven't replied to tell me which xml should be edited to change the shutdown menu options. Could you please tell me?
     

    catavolt

    Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    12,961
    9,307
    Lanzarote
    Germany Germany
    Country flag
    Hi doveman, it´s hardcoded in MP using standard dialog, so nothing to change/hide ;)
     

    Holzi

    Super Moderator
  • Team MediaPortal
  • April 21, 2010
    7,930
    2,234
    Ba-Wü
    Germany Germany
    Country flag
    Is it possible to have an extra genre(color) for TVShows? At the moment they are the same colour as Movies..
    Thanks!
     

    losttown

    Community Skin Designer
    January 7, 2008
    167
    58
    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
     

    ajp8164

    Portal Pro
    January 9, 2008
    575
    1,166
    Atlanta, GA
    United States of America United States of America
    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
    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.
     

    elliottmc

    Retired Team Member
  • Premium Supporter
  • August 7, 2005
    14,927
    6,061
    Cardiff, UK
    United Kingdom United Kingdom
    Country flag
    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
    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.
    Heyyy, Andy is back !!!!!!!
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    ajs [solved] 4935: Add string.replace function to Skin engine MediaPortal 1 10
    S Stiefmütterliche Unterstützung für Maussteuerung in MP (Titan Skin) Allgemeines Supportforum 14
    Rob Hexenmeister Skin functions: What is available? General Support 7
    Rob Hexenmeister Skinning Online Videos question OnlineVideos 2
    Rob Hexenmeister Quick question - skinning MyPics General Support 7
    ajs [Info] 0.7 Beta - MPExtended, WebMP, Bootstrap skin by ajs - Hard way MPExtended 602
    S Touchscreen skin? MediaPortal 1 Talk 6
    azzuro [fixed] 5011: Version label in Splash screen - pos, size from skin MediaPortal 1 61
    catavolt [WiP] When changing theme in my skins, I always get this error message in logs MediaPortal 1 9
    joecrow MultiShortcut Plugin (Uavailable) in DWHD skin General Support 58
    V Skin With Menu Editor MediaPortal 1 Skins 13
    wizard123 New Skin Template ? MediaPortal 2 8
    Rob Hexenmeister [solved] Latest Media Handler - skinning buttons Fanart Handler 19
    CyberSimian [solved] MP1-4976 Built-in skin variables for current date MediaPortal 1 8
    Mr6686 [solved] Titan skin broken since update to 1.23 Installation, configuration support 6
    doskabouter Skin question Skins and Plugins Installer (MPEI) 1
    Y Titan Skin unter 1.23 nicht mehr so schön Allgemeines Supportforum 1
    framug 1.22.0 BasicHome Editor settings for DefaultWide HD skin not kept when update 1.22 3
    catavolt [solved] FanartHandler - Skin - Holiday and Spotlight support Fanart Handler 14
    ajs [fixed] 4936 - Strange behavior of the font in the skin MediaPortal 1 35
    ajs [solved] Latest Media Handler - Skin settings - Custom latests items number Fanart Handler 27
    Rob Hexenmeister [solved] Latests Media Handler - Skinning an updating window or control Fanart Handler 26
    T Skin Wechsel Installationsprobleme? 1
    JJDoherty Designing & implementing a new skin... Skins and Design 8
    D [fixed] Image browser crashing in Folder View (WMC skin) 2.2 Archive 10
    Similar threads

























    Top Bottom