Updated Modello Common libraries 54/33854/1
authorAlice Liu <alice.liu@intel.com>
Thu, 15 Jan 2015 14:42:37 +0000 (22:42 +0800)
committerAlice Liu <alice.liu@intel.com>
Thu, 15 Jan 2015 14:42:37 +0000 (22:42 +0800)
Package version up (3.0.44).

Change-Id: I620473d4016dd23d7291849fe31847bfa8519f7b
Signed-off-by: Alice Liu <alice.liu@intel.com>
package/changelog
package/pkginfo.manifest
web-ui-fw/0.0.2/0.0.2_Common/original/css/car/components/settings/css/settings.css
web-ui-fw/0.0.2/0.0.2_Common/original/css/car/components/settings/js/themes.js

index c8465e0..a776538 100644 (file)
@@ -1,3 +1,7 @@
+* 3.0.44
+- Updated Modello Common libraries
+== Alice Liu <alice.liu@intel.com> 2015-01-15
+
 * 3.0.43
 - Updated help documentation and auto completion of
 MediaServer API
index 5e9b5a7..3b89a4a 100644 (file)
@@ -1,4 +1,4 @@
-Version:3.0.43
+Version:3.0.44
 Maintainer: Alice Liu<alice.liu@intel.com>
 
 Package:ivi-3.0-web-add-ons
index d3f9e90..8e79f73 100644 (file)
        width: 200px;
 }
 
+.subPanelToggleButtonExtraWide {
+       width: 300px;
+}
+
 .buttonsArea {
        width: 680px;
        margin-top: 20px;
index ca422ef..f28ae68 100644 (file)
@@ -17,6 +17,8 @@
  */
 var Themes = function() {
        "use strict";
+       var self = this;
+
        /**
         * Marks a given user theme as selected.
         *
@@ -29,6 +31,13 @@ var Themes = function() {
                }
        };
 
+       this.toggleAnimation = function() {
+               var animation = Configuration.get("animationEnabled");
+               Configuration.set("animationEnabled", !animation);
+               animation = Configuration.get("animationEnabled");
+               self.animationEnabled(animation);
+       }
+
        this.init();
 };
 
@@ -81,6 +90,21 @@ Themes.prototype.show = function() {
                        themeList += templateName;
                        themeList += '\', foreach: Settings.Theme.themes }"></div>';
                        $(themeList).appendTo($('.' + themesContent));
+
+                       var animation = Configuration.get("animationEnabled");
+                       if (animation === undefined) {
+                               animation = true;
+                       }
+                       Configuration.set("animationEnabled", animation);
+                       self.animationEnabled(animation);
+
+                       var button = "";
+                       button = '<div id="animationButton" class="toggleButton subPanelToggleButton subPanelToggleButtonExtraWide" data-bind="click: Settings.Theme.toggleAnimation">';
+                       button += '<div class="bgColorThemeTransparent boxShadowInset toggleButtonBackground"></div>';
+                       button += '<div class="fontColorNormal fontSizeMedium fontWeightBold toggleButtonText" data-bind="text: Settings.Theme.animationEnabled() ? \'TURN OFF ANIMATION\' : \'TURN ON ANIMATION\'"></div>';
+                       button += '</div>';
+                       $(button).appendTo($('.tabsTopSubPanel'));
+
                        ko.applyBindings(window.Settings);
                }
        };
@@ -112,4 +136,14 @@ Themes.prototype.loadThemes = function(successCallback) {
                        }
                });
        }
+
+/**
+ * Indicates if animation is enabled
+ *
+ * @property animationEnabled
+ * @public
+ * @type ko.observable
+ * @default true
+ */
+Themes.prototype.animationEnabled = ko.observable(true);
 };
\ No newline at end of file