refactor: minor refactoring and widget docs update
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
|
||||
Simple Buttons
|
||||
--------------
|
||||
|
||||
.. lv_example:: widgets/btn/lv_example_btn_1
|
||||
:language: c
|
||||
|
||||
|
||||
Styling buttons
|
||||
---------------
|
||||
|
||||
.. lv_example:: widgets/btn/lv_example_btn_2
|
||||
:language: c
|
||||
|
||||
Gummy button
|
||||
------------
|
||||
|
||||
.. lv_example:: widgets/btn/lv_example_btn_3
|
||||
:language: c
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
|
||||
Simple Button matrix
|
||||
--------------------
|
||||
|
||||
.. lv_example:: widgets/btnmatrix/lv_example_btnmatrix_1
|
||||
:language: c
|
||||
|
||||
|
||||
Custom buttons
|
||||
--------------
|
||||
|
||||
.. lv_example:: widgets/btnmatrix/lv_example_btnmatrix_2
|
||||
:language: c
|
||||
|
||||
|
||||
Pagination
|
||||
----------
|
||||
|
||||
.. lv_example:: widgets/btnmatrix/lv_example_btnmatrix_3
|
||||
:language: c
|
||||
|
||||
|
||||
20
examples/widgets/button/index.rst
Normal file
20
examples/widgets/button/index.rst
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
Simple Buttons
|
||||
--------------
|
||||
|
||||
.. lv_example:: widgets/button/lv_example_button_1
|
||||
:language: c
|
||||
|
||||
|
||||
Styling buttons
|
||||
---------------
|
||||
|
||||
.. lv_example:: widgets/button/lv_example_button_2
|
||||
:language: c
|
||||
|
||||
Gummy button
|
||||
------------
|
||||
|
||||
.. lv_example:: widgets/button/lv_example_button_3
|
||||
:language: c
|
||||
|
||||
22
examples/widgets/buttonmatrix/index.rst
Normal file
22
examples/widgets/buttonmatrix/index.rst
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
Simple Button matrix
|
||||
--------------------
|
||||
|
||||
.. lv_example:: widgets/buttonmatrix/lv_example_buttonmatrix_1
|
||||
:language: c
|
||||
|
||||
|
||||
Custom buttons
|
||||
--------------
|
||||
|
||||
.. lv_example:: widgets/buttonmatrix/lv_example_buttonmatrix_2
|
||||
:language: c
|
||||
|
||||
|
||||
Pagination
|
||||
----------
|
||||
|
||||
.. lv_example:: widgets/buttonmatrix/lv_example_buttonmatrix_3
|
||||
:language: c
|
||||
|
||||
|
||||
@@ -2,27 +2,27 @@
|
||||
Image from variable and symbol
|
||||
------------------------------
|
||||
|
||||
.. lv_example:: widgets/img/lv_example_img_1
|
||||
.. lv_example:: widgets/image/lv_example_image_1
|
||||
:language: c
|
||||
|
||||
|
||||
Image recoloring
|
||||
----------------
|
||||
|
||||
.. lv_example:: widgets/img/lv_example_img_2
|
||||
.. lv_example:: widgets/image/lv_example_image_2
|
||||
:language: c
|
||||
|
||||
|
||||
Rotate and zoom
|
||||
---------------
|
||||
|
||||
.. lv_example:: widgets/img/lv_example_img_3
|
||||
.. lv_example:: widgets/image/lv_example_image_3
|
||||
:language: c
|
||||
|
||||
Image offset and styling
|
||||
------------------------
|
||||
|
||||
.. lv_example:: widgets/img/lv_example_img_4
|
||||
.. lv_example:: widgets/image/lv_example_image_4
|
||||
:language: c
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ void lv_example_tabview_2(void)
|
||||
/*Create a Tab view object*/
|
||||
lv_obj_t * tabview;
|
||||
tabview = lv_tabview_create(lv_screen_active());
|
||||
lv_tabview_set_tab_position(tabview, LV_DIR_LEFT);
|
||||
lv_tabview_set_tab_bar_position(tabview, LV_DIR_LEFT);
|
||||
lv_tabview_set_tab_bar_size(tabview, 80);
|
||||
|
||||
lv_obj_set_style_bg_color(tabview, lv_palette_lighten(LV_PALETTE_RED, 2), 0);
|
||||
|
||||
Reference in New Issue
Block a user