reduce size of config file from 100k to some bytes... we just save non default values...
[enigma2.git] / skin.py
diff --git a/skin.py b/skin.py
index 520780e..c6d0678 100644 (file)
--- a/skin.py
+++ b/skin.py
@@ -126,6 +126,16 @@ def applySingleAttribute(guiObject, desktop, attrib, value):
                        guiObject.setSelectionEnable(0)
                elif attrib == "transparent":
                        guiObject.setTransparent(int(value))
+               elif attrib == "borderColor":
+                       guiObject.setBorderColor(parseColor(value))
+               elif attrib == "borderWidth":
+                       guiObject.setBorderWidth(int(value))
+               elif attrib == "scrollbarMode":
+                       guiObject.setScrollbarMode(
+                               { "showOnDemand": guiObject.showOnDemand,
+                                       "showAlways": guiObject.showAlways,
+                                       "showNever": guiObject.showNever
+                               }[value])
                elif attrib != 'name':
                        print "unsupported attribute " + attrib + "=" + value
        except int:
@@ -155,7 +165,7 @@ def loadSkin(desktop):
        for windowstyle in elementsWithTag(skin.childNodes, "windowstyle"):
                style = eWindowStyleSkinned()
                
-               style.setTitleFont(gFont("Arial", 20));
+               style.setTitleFont(gFont("Regular", 20));
                style.setTitleOffset(eSize(20, 5));
                
                for borderset in elementsWithTag(windowstyle.childNodes, "borderset"):