*/
var Themes = function() {
"use strict";
+ var self = this;
+
/**
* Marks a given user theme as selected.
*
}
};
+ this.toggleAnimation = function() {
+ var animation = Configuration.get("animationEnabled");
+ Configuration.set("animationEnabled", !animation);
+ animation = Configuration.get("animationEnabled");
+ self.animationEnabled(animation);
+ }
+
this.init();
};
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);
}
};
}
});
}
+
+/**
+ * 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
+* Wed Jan 07 2015 Jimmy Huang <jimmy.huang@intel.com> accepted/tizen/ivi/20141217.011338-1-g18f9718
+- Add button in Theme settings to toggle Homescreen animation
+
* Tue Dec 16 2014 Brian Jones <brian.j.jones@intel.com> accepted/tizen/ivi/20141216.021121-1-g82ba2df
- Adding new fonts to Modello that work with xwalk