main
Jan Umbach 2024-07-14 14:06:24 +02:00
parent aca0b70cf8
commit d47383f598
1 changed files with 3 additions and 3 deletions

View File

@ -372,7 +372,7 @@
let shx_globalValues = {
"text1": "Marie", // all keys are global values
"font": "LT Beverage",
"font-size": "normal",
"fontSize": "normal",
};
function SHX_IFC_getCurrentValue(id, key) {
@ -629,7 +629,7 @@
html += SHX_IFC_genTextInput('shx-text1', 'Text', 'Text', SHX_IFC_getCurrentValue(id, 'text1'), section_id);
html += SHX_IFC_genDropdownSelect('shx-font', 'Schriftart', 'Schriftart', SHX_IFC_getCurrentValue(id, 'font'), ['LT Beverage', "Rose", "Arial"], section_id);
html += SHX_IFC_genDropdownSelect('shx-font-size', 'Schriftgröße', 'Schriftgröße', SHX_IFC_getCurrentValue(id, 'font-size'), ['Klein', "Normal", "Groß"], section_id);
html += SHX_IFC_genDropdownSelect('shx-fontSize', 'Schriftgröße', 'Schriftgröße', SHX_IFC_getCurrentValue(id, 'fontSize'), ['Klein', "Normal", "Groß"], section_id);
html += SHX_IFC_genSwatchSelect('shx-backgroundType', 'Hintergrundtyp', 'Hintergrundtyp', SHX_IFC_getCurrentValue(id, 'backgroundType'), {"roundRect": {name: "Rechteckig abgerundet", imgUrl: "{{ "shx-text-w-bg-rect.png" | asset_url }}"}, "padding": {name: "Angepasst", imgUrl: "{{ "shx-text-w-bg-custom.png" | asset_url }}"}}, section_id);
html += SHX_IFC_genColorSelect('shx-color1', 'Textfarbe', 'Textfarbe', SHX_IFC_getCurrentValue(id, 'color1'), [], section_id);
html += SHX_IFC_genColorSelect('shx-color2', 'Hintergrundfarbe', 'Hintergrundfarbe', SHX_IFC_getCurrentValue(id, 'color2'), [], section_id);
@ -643,7 +643,7 @@
html += SHX_IFC_genTextInput('shx-text1', 'Text', 'Text', SHX_IFC_getCurrentValue(id, 'text1'), section_id);
html += SHX_IFC_genDropdownSelect('shx-font', 'Schriftart', 'Schriftart', SHX_IFC_getCurrentValue(id, 'font'), ['LT Beverage', "Rose", "Arial"], section_id);
html += SHX_IFC_genDropdownSelect('shx-font-size', 'Schriftgröße', 'Schriftgröße', SHX_IFC_getCurrentValue(id, 'font-size'), [['Klein #small','Klein'], ["Normal #normal","Normal"], ["Groß #big","Groß"]], section_id);
html += SHX_IFC_genDropdownSelect('shx-fontSize', 'Schriftgröße', 'Schriftgröße', SHX_IFC_getCurrentValue(id, 'fontSize'), [['Klein #small','Klein'], ["Normal #normal","Normal"], ["Groß #big","Groß"]], section_id);
html += SHX_IFC_genColorSelect('shx-color1', 'Textfarbe', 'Textfarbe', SHX_IFC_getCurrentValue(id, 'color1'), [], section_id);
html += SHX_IFC_genColorSelect('shx-color2', 'Textumrandungsfarbe', 'Textumrandungsfarbe', SHX_IFC_getCurrentValue(id, 'color2'), [], section_id);
html += SHX_IFC_genColorSelect('shx-color3', 'Hintergrundfarbe', 'Hintergrundfarbe', SHX_IFC_getCurrentValue(id, 'color3'), [], section_id);