docs(scale): fix scale docs
This commit is contained in:
@@ -15,7 +15,7 @@ The scale widget is divided in the following three parts:
|
|||||||
- :cpp:enumerator:`LV_PART_ITEMS` Minor ticks. See red minor ticks in the example image.
|
- :cpp:enumerator:`LV_PART_ITEMS` Minor ticks. See red minor ticks in the example image.
|
||||||
- :cpp:enumerator:`LV_PART_INDICATOR` Major ticks and its labels (if enabled). See pink labels and green major ticks in the example image.
|
- :cpp:enumerator:`LV_PART_INDICATOR` Major ticks and its labels (if enabled). See pink labels and green major ticks in the example image.
|
||||||
|
|
||||||
.. image:: /misc/par_/scale.png
|
.. image:: /misc/scale.png
|
||||||
|
|
||||||
Usage
|
Usage
|
||||||
*****
|
*****
|
||||||
|
|||||||
@@ -1,6 +1,30 @@
|
|||||||
|
A simple horizontal scale
|
||||||
Scale with customized section style
|
"""""""""""""""""""""""""
|
||||||
""""""""""""""""
|
|
||||||
|
|
||||||
.. lv_example:: widgets/scale/lv_example_scale_1
|
.. lv_example:: widgets/scale/lv_example_scale_1
|
||||||
:language: c
|
:language: c
|
||||||
|
|
||||||
|
An vertical scale with section and custom styling
|
||||||
|
"""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
|
||||||
|
.. lv_example:: widgets/scale/lv_example_scale_2
|
||||||
|
:language: c
|
||||||
|
|
||||||
|
A simple round scale
|
||||||
|
""""""""""""""""""""
|
||||||
|
|
||||||
|
.. lv_example:: widgets/scale/lv_example_scale_3
|
||||||
|
:language: c
|
||||||
|
|
||||||
|
A round scale with section and custom styling
|
||||||
|
"""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
|
||||||
|
.. lv_example:: widgets/scale/lv_example_scale_4
|
||||||
|
:language: c
|
||||||
|
|
||||||
|
An scale with section and custom styling
|
||||||
|
""""""""""""""""""""""""""""""""""""""""
|
||||||
|
|
||||||
|
.. lv_example:: widgets/scale/lv_example_scale_5
|
||||||
|
:language: c
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user