Rodja Trappe 4 rokov pred
rodič
commit
1541486165
2 zmenil súbory, kde vykonal 9 pridanie a 4 odobranie
  1. 8 3
      README.md
  2. 1 1
      main.py

+ 8 - 3
README.md

@@ -36,14 +36,19 @@ Note: The script will automatically reload the GUI if you modify your code.
 
 See [main.py](https://github.com/zauberzeug/nicegui/tree/main/main.py) for an example of all API calls you can make with NiceGUI.
 
-### Styling
+### Design
 
-We use the [Quasar Framework](https://quasar.dev/) and hence have their full styling power. Each element provides a `design` property which directly correlates to the Quasar designs:
+We use the [Quasar Framework](https://quasar.dev/) and hence have their full design power. Each NiceGUI element provides a `design` property which content is passed [as props the Quasar component](https://justpy.io/quasar_tutorial/introduction/#props-of-quasar-components):
+
+<img src="https://github.com/zauberzeug/nicegui/tree/main/sceenshots/demo-design.png?raw=true" width="100" align="right">
 
 ```python
-ui.radio(['x', 'y', 'z'], value='x', design='inline color=green')
+ui.radio(['x', 'y', 'z'], design='inline color=green')
+ui.button(icon='touch_app', design='outline round')
 ```
 
+For all styling "props" as Quasar calls them have a look at [their documentation](https://quasar.dev/vue-components/button#design).
+
 ## Plots
 
 <img src="https://github.com/zauberzeug/nicegui/tree/main/sceenshots/live-plot.gif?raw=true" width="400" align="right">

+ 1 - 1
main.py

@@ -41,7 +41,7 @@ with ui.row():
             ui.label('Style', 'h5')
             ui.icon('fas fa-umbrella-beach', size='70px').add_classes('text-amber-14').add_style('margin: 9px')
             ui.link('color palette', 'https://quasar.dev/style/color-palette')
-            ui.button(icon='touch_app', design='outline rounded')
+            ui.button(icon='touch_app', design='outline round')
 
     with ui.card():
         ui.label('Binding', 'h5')