2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

f18.js: some Dashboard coloring added

git-svn-id: https://svn.fhem.de/fhem/trunk@15960 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2018-01-22 19:11:20 +00:00
parent 1bff2a3e30
commit a3def87ac7

View File

@ -1,7 +1,7 @@
"use strict"; "use strict";
FW_version["f18.js"] = "$Id$"; FW_version["f18.js"] = "$Id$";
// TODO: rewrite menu, dashboard, floorplan // TODO: rewrite menu, dashboard, floorplan, Firefox-svg-coloring
var f18_attr, f18_aCol, f18_sd, f18_isMobile, f18_icon={}, f18_move=false; var f18_attr, f18_aCol, f18_sd, f18_isMobile, f18_icon={}, f18_move=false;
var f18_small = (screen.width < 480 || screen.height < 480); var f18_small = (screen.width < 480 || screen.height < 480);
@ -365,8 +365,19 @@ f18_setCss(why)
style += "div.ui-dialog { border:1px solid #"+cols.link+"; }"; style += "div.ui-dialog { border:1px solid #"+cols.link+"; }";
style += "button.ui-button { background:#"+cols.oddrow+"!important; "+ style += "button.ui-button { background:#"+cols.oddrow+"!important; "+
"border:1px solid #"+cols.link+"!important; }\n"; "border:1px solid #"+cols.link+"!important; }\n";
$("head style#f18_css").remove();
if(typeof DashboardDraggable != "undefined") {
var db = "#dashboard ";
style += db+".dashboard_widgetheader "+bg(cols.header);
style += db+".dashboard_tabnav "+bg(cols.menu+"!important");
style += db+".ui-widget-header .ui-state-default "+bg(cols.menu);
style += db+".ui-widget-header .ui-state-active "+bg(cols.sel);
style += db+".ui-widget-header "+fg(cols.fg+"!important;");
style += db+".ui-widget-header li { border:none!important; }";
style += db+".ui-widget-content a "+fg(cols.link+"!important" );
}
$("head style#f18_css").remove();
if(why == 'preset' || why == 'bg') { // Add background to css to avoid flicker if(why == 'preset' || why == 'bg') { // Add background to css to avoid flicker
if(!$("head #fhemweb_css").length) if(!$("head #fhemweb_css").length)
$("head").append("<style id='fhemweb_css'>\n</style>"); $("head").append("<style id='fhemweb_css'>\n</style>");