From a3def87ac741be64b99c448c770f9454467dac81 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Mon, 22 Jan 2018 19:11:20 +0000 Subject: [PATCH] f18.js: some Dashboard coloring added git-svn-id: https://svn.fhem.de/fhem/trunk@15960 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/www/pgm2/f18.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/fhem/www/pgm2/f18.js b/fhem/www/pgm2/f18.js index c37273744..19c67f947 100644 --- a/fhem/www/pgm2/f18.js +++ b/fhem/www/pgm2/f18.js @@ -1,7 +1,7 @@ "use strict"; 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_small = (screen.width < 480 || screen.height < 480); @@ -365,8 +365,19 @@ f18_setCss(why) style += "div.ui-dialog { border:1px solid #"+cols.link+"; }"; style += "button.ui-button { background:#"+cols.oddrow+"!important; "+ "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(!$("head #fhemweb_css").length) $("head").append("");