Kwam gisteren DIT plaatje tegen op een Duitse KNX site.
De maker ervan gevraagd hoe hij die kleuren erin had gekregen en dat blijkt dus te gaan door het wijzigen van de template.xml van betreffende functie.
Templates staan bij mij in Public Documents\Gira\HS+FS Experte 4.0\quad\templates\data
Het voorbeeld wat ie gaf is deze:
<panel pos="1" click="0" layout="pan_text">
<text cell="txt2" align="1" value="CO2- Wert" color="#8B1A1A" />
<text_dyn cell="txt3" align="1" len="4" prec="2" unit=" ppm" color="#00FF00" >
<content value_slot="slot_text_read1" />
</text_dyn>
</panel>
Geen idee welke template dat is.
Heb vervolgens op goed geluk maar wat color statements toegevoegd aan de 1-116 "Text display plus" template en zowaar, niet alleen maar witte text meer!
De gewijzigde template:
<template id="1-116">
<!-- Tempate 1-116 Text -->
<!-- Auf Panel 1 ist Info -->
<logic id="logic_info" operation="or">
<slot id="$par_type" compare="4" />
<slot id="$par_type" compare="5" />
</logic>
<!-- Auf Panel 1 ist Icon -->
<logic id="logic_icon" operation="or">
<slot id="$par_type" compare="7" />
<slot id="$par_type" compare="8" />
</logic>
<!-- Panel 2 ist zweizeilig -->
<logic id="logic_doubleline" operation="or">
<slot id="$par_type" compare="3" />
<slot id="$par_type" compare="5" />
<slot id="$par_type" compare="8" />
</logic>
<!-- Auf Panel 2 ist Slot 1 -->
<logic id="logic_text1" operation="or">
<slot id="$par_type" compare="1" />
<slot id="$par_type" compare="4" />
<slot id="$par_type" compare="7" />
</logic>
<!-- Panel 1 -->
<panel pos="1" click="0">
<icon layout="pan_singlebtn.ico_n" ico="$par_symbol" visible_slot="logic_icon"/>
<text layout="pan_text.txt" value="$par_info1" visible_slot="logic_info" color="#FF0000"/>
<text_dyn layout="pan_text.txt" visible_slot="$par_type" on_value="2" color="#8B1A1A">
<content value_slot="slot_text_1" />
</text_dyn>
<text layout="pan_text.txt2" value="$par_info1" visible_slot="$par_type" on_value="6" color="#00FF00"/>
<text_dyn layout="pan_text.txt3" visible_slot="$par_type" on_value="6" color="#0000FF">
<content value_slot="slot_text_1" />
</text_dyn>
</panel>
<!-- Panel 2 -->
<panel pos="2" click="0">
<text_dyn layout="pan_text.txt" visible_slot="logic_text1">
<content value_slot="slot_text_1" />
</text_dyn>
<text_dyn layout="pan_text.txt2" visible_slot="logic_doubleline">
<content value_slot="slot_text_1" />
</text_dyn>
<text_dyn layout="pan_text.txt3" visible_slot="logic_doubleline">
<content value_slot="slot_text_2" />
</text_dyn>
<text_dyn layout="pan_text.txt" visible_slot="$par_type" on_value="2" color="#111A2A">
<content value_slot="slot_text_2" />
</text_dyn>
<text layout="pan_text.txt2" value="$par_info2" visible_slot="$par_type" on_value="6" color="#8B1A1A"/>
<text_dyn layout="pan_text.txt3" visible_slot="$par_type" on_value="6">
<content value_slot="slot_text_2" color="#0F0F00"/>
</text_dyn>
</panel>
</template>
Las ook ergens dat ze BGR gebruiken in plaats van RGB....
Als iemand de correcte wijze snapt van het inserten van color statements hoor ik het graag!
Kleuren in Gira app
Re: Kleuren in Gira app
Met bv size="10" kun je de tekst grootte aanpassen.
Handig aangezien bij sommige templates de tekst grootte wel erg gering is.
Zeker op een iPad.
Handig aangezien bij sommige templates de tekst grootte wel erg gering is.
Zeker op een iPad.