PGM3 NewSkins: Unterschied zwischen den Versionen

Aus FHEMWiki
KKeine Bearbeitungszusammenfassung
K (Die Randnotiz in rot ist auffälliger)
 
Zeile 1: Zeile 1:
{{Randnotiz|RNTyp=Info|RNText=Das Frontend PGM3 wurde eingestellt. Von einer weiteren Nutzung wird daher abgeraten.<br>Alte Version im [http://svn.fhem.de/trac/browser/trunk/fhem/webfrontend/pgm3 SVN]}}
{{Randnotiz|RNTyp=Fehl|RNText=Das Frontend PGM3 wurde eingestellt. Von einer weiteren Nutzung wird daher abgeraten.<br>Alte Version im [http://svn.fhem.de/trac/browser/trunk/fhem/webfrontend/pgm3 SVN]}}


== pgm3 with different colors - skinable ==
== pgm3 with different colors - skinable ==

Aktuelle Version vom 15. Juni 2018, 13:28 Uhr

X mark.svgDas Frontend PGM3 wurde eingestellt. Von einer weiteren Nutzung wird daher abgeraten.
Alte Version im SVN


pgm3 with different colors - skinable

Required

  • You need at least the version pgm3 v100108. This version is included in fhem-4.9.

Where to change the colors

There is a new section in the config.php which is called "SKINS - change your colors". There you will find further information.

The colors of links, mouse-over and other CSS are changeable in the <pgm3>/include/style.css. Be sure to have a backup. CSS is not a part of this page.

Example

##########################
##ORANGE
    $bodybg="bgcolor='#FFDAB9'";
    $bg1="bgcolor='#FF8C00'";
    $bg2="bgcolor='#FFA500'";
    $bg4="bgcolor='#6394BD'";
    $bg5="bgcolor='#FFFFFF'";
    $fontcolor1="color='#000000'";
    $fontcolor3="color='#000000'";
    # The Button needs decimal Code Instead Hex.
    # Use the column left from the HEX on
    # [http://www.farb-tabelle.de/de/farbtabelle.htm http://www.farb-tabelle.de/de/farbtabelle.htm]
    # You must delete the old graphics after the change. "rm <pgm3>/tmp/*"
    $buttonBg_R='255';$buttonBg_G='165';$buttonBg_B='0';
    #Dec-Code from $bg1:
    $bg1_R='255';$bg1_G='140';$bg1_B='0';

Screenshot

Skin orange.jpeg

This will create a pgm3 which looks like the orange on the screenshot-page

Colors in HEX and decimal

HTML needs colors in Hexformat like #FFFFFF for white. The php library needs this in Dec like 255,140,0

There is a nice website with a table of all you need: [1].

Hints

pgm3 only creates new pictures if it is required. That means that you can not see your changes directly. In this case erase all your old pictures. They resides under pgm3 in the tmp-Directory:

rm <pgm3>/tmp/*

Limitations

  • At the moment the fonts in the php-graphics are black. This means that you need a bright background to read this

Links