Bläddra i källkod

Edited Parser and theme/parameters.yaml

florian.residori@gmail.com 3 år sedan
förälder
incheckning
02cdaff6e8
3 ändrade filer med 60 tillägg och 28 borttagningar
  1. 2 0
      client_code/Parser/__init__.py
  2. 55 25
      client_code/Parser/form_template.yaml
  3. 3 3
      theme/parameters.yaml

+ 2 - 0
client_code/Parser/__init__.py

@@ -1,3 +1,5 @@
+# pretty print in output
+
 from ._anvil_designer import ParserTemplate
 from anvil import *
 import anvil.server

+ 55 - 25
client_code/Parser/form_template.yaml

@@ -2,12 +2,8 @@ is_package: true
 container:
   type: HtmlTemplate
   properties: {tooltip: '', background: '', foreground: '', border: '', visible: true,
-    role: null, html: '@theme:standard-page.html'}
+    role: null, html: ''}
 components:
-- type: Label
-  properties: {}
-  name: label_1
-  layout_properties: {slot: hero}
 - type: FlowPanel
   properties: {}
   name: flow_panel_1
@@ -17,37 +13,71 @@ components:
     properties: {}
     name: column_panel_1
     layout_properties: {}
-  - type: Button
-    properties: {role: null, align: left, tooltip: '', border: '', enabled: true,
-      foreground: '', visible: true, text: 'YAML
-
-        ', font_size: null, font: '', spacing_above: small, icon_align: left, spacing_below: small,
-      italic: false, background: '', bold: false, underline: false, icon: ''}
-    name: check_yaml
-    layout_properties: {slot: default, grid_position: 'IVHSBH,EPWHFD'}
-    event_bindings: {click: check_yaml_click}
-  - type: Button
-    properties: {role: null, align: right, tooltip: '', border: '', enabled: true,
-      foreground: '', visible: true, text: JSON, font_size: null, font: '', spacing_above: small,
+- type: ColumnPanel
+  properties: {col_widths: '{}'}
+  name: column_panel_2
+  layout_properties: {slot: default}
+  components:
+  - type: Label
+    properties: {role: null, align: left, tooltip: '', border: '', foreground: '',
+      visible: true, text: Input, font_size: null, font: '', spacing_above: small,
       icon_align: left, spacing_below: small, italic: false, background: '', bold: false,
       underline: false, icon: ''}
-    name: check_json
-    layout_properties: {grid_position: 'IVHSBH,AKJSSX'}
-    event_bindings: {click: check_json_click}
+    name: label_1
+    layout_properties: {slot: default, grid_position: 'VVNXBD,TONSHT'}
+  - type: Label
+    properties: {role: null, align: left, tooltip: '', border: '', foreground: '',
+      visible: true, text: Output, font_size: null, font: '', spacing_above: small,
+      icon_align: left, spacing_below: small, italic: false, background: '', bold: false,
+      underline: false, icon: ''}
+    name: label_2
+    layout_properties: {grid_position: 'VVNXBD,WAPGYW'}
   - type: TextArea
-    properties: {role: null, align: left, height: 812.2333, tooltip: '', placeholder: '',
+    properties: {role: null, align: left, height: 511.2333, tooltip: '', placeholder: '',
       border: '', enabled: true, foreground: '', visible: true, text: '', font_size: null,
       auto_expand: true, font: '', spacing_above: small, spacing_below: small, italic: false,
       background: '', bold: false, underline: false}
     name: input
-    layout_properties: {slot: default, grid_position: 'IVHSBH,EPWHFD ZAELRL,ZLIOFD',
-      column: null, width: 737.567}
+    layout_properties: {slot: default, grid_position: 'LQJPZA,LNCESO', column: null,
+      width: 491.567}
     event_bindings: {}
   - type: TextArea
-    properties: {role: null, align: left, height: 810.9666221435547, tooltip: '',
+    properties: {role: null, align: left, height: 513.9666221435547, tooltip: '',
       placeholder: '', border: '', enabled: true, foreground: '', visible: true, text: '',
       font_size: null, auto_expand: true, font: '', spacing_above: small, spacing_below: small,
       italic: false, background: '', bold: false, underline: false}
     name: output
-    layout_properties: {width: 802.567}
+    layout_properties: {width: 494.567, grid_position: 'LQJPZA,WPLCBP'}
     event_bindings: {}
+  - type: Label
+    properties: {role: null, align: left, tooltip: '', border: '', foreground: '',
+      visible: true, text: Variables, font_size: null, font: '', spacing_above: small,
+      icon_align: left, spacing_below: small, italic: false, background: '', bold: false,
+      underline: false, icon: ''}
+    name: label_3
+    layout_properties: {grid_position: 'DMMBLL,LWVNIT'}
+  - type: Label
+    properties: {}
+    name: label_4
+    layout_properties: {grid_position: 'DMMBLL,KIIKON'}
+  - type: TextArea
+    properties: {height: 254.23329999999999}
+    name: variabes
+    layout_properties: {grid_position: 'IYZCMA,CGPZMZ'}
+  - type: Button
+    properties: {role: null, align: left, tooltip: '', border: '', enabled: true,
+      foreground: '', visible: true, text: 'YAML
+
+        ', font_size: null, font: '', spacing_above: small, icon_align: left, spacing_below: small,
+      italic: false, background: '', bold: false, underline: false, icon: ''}
+    name: check_yaml
+    layout_properties: {slot: default, grid_position: 'IYZCMA,AQIWOW LZDEDM,OWJYKL'}
+    event_bindings: {click: check_yaml_click}
+  - type: Button
+    properties: {role: null, align: left, tooltip: '', border: '', enabled: true,
+      foreground: '', visible: true, text: JSON, font_size: null, font: '', spacing_above: small,
+      icon_align: left, spacing_below: small, italic: false, background: '', bold: false,
+      underline: false, icon: ''}
+    name: check_json
+    layout_properties: {grid_position: 'IYZCMA,AQIWOW YXUQEK,GYUHWC', slot: default}
+    event_bindings: {click: check_json_click}

+ 3 - 3
theme/parameters.yaml

@@ -72,7 +72,7 @@ color_scheme:
       - {name: Accent 1, color: '#9E9E9E'}
       - {name: Accent 2, color: '#616161'}
   colors:
-  - {name: Accent 1, color: '#d9534f'}
-  - {name: Accent 2, color: '#a94442'}
-  - {name: Background, color: '#71798c'}
+  - {name: Accent 1, color: '#009688'}
+  - {name: Accent 2, color: '#00796B'}
+  - {name: Background, color: '#defcff'}
   - {name: Card, color: '#FFFFFF'}