docs(scale): fix scale docs

This commit is contained in:
Gabor Kiss-Vamosi
2023-10-19 11:36:27 +02:00
parent 6a7d2e651c
commit 4081130dd9
2 changed files with 28 additions and 4 deletions

View File

@@ -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
***** *****

View File

@@ -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