Author: nathangray
New Revision: 55708
URL: http://svn.stylite.de/viewvc/egroupware?rev=55708&view=rev
Log:
Change portlet header text color to contrast with selected color
Modified:
trunk/egroupware/api/js/etemplate/et2_widget_portlet.js
— trunk/egroupware/api/js/etemplate/et2_widget_portlet.js (original)
+++ trunk/egroupware/api/js/etemplate/et2_widget_portlet.js Mon Apr 11 18:42:50 2016
@@ -162,6 +162,10 @@
this._super.apply(this, arguments);
},
- doLoadingFinished: function() {
-
this.set_color(this.options.color);
- },
- /**
- If anyone asks, return the content node, so content goes inside
*/
@@ -364,7 +368,9 @@
*/
set_color: function(color)
{
-
this.options.color = color;
this.header.css("backgroundColor", color);
-
this.header.css('color', jQuery.Color(this.header.css("backgroundColor")).lightness() > 0.5 ? 'black':'white');
this.content.css("backgroundColor", color);
},
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs