From 4081130dd91567cd0b9b21d5e5c9e9dbcbff930e Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Thu, 19 Oct 2023 11:36:27 +0200 Subject: [PATCH] docs(scale): fix scale docs --- docs/widgets/scale.rst | 2 +- examples/widgets/scale/index.rst | 30 +++++++++++++++++++++++++++--- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/docs/widgets/scale.rst b/docs/widgets/scale.rst index 12fd0c743..27c782300 100644 --- a/docs/widgets/scale.rst +++ b/docs/widgets/scale.rst @@ -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_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 ***** diff --git a/examples/widgets/scale/index.rst b/examples/widgets/scale/index.rst index 1ee81216c..1fd123d5f 100644 --- a/examples/widgets/scale/index.rst +++ b/examples/widgets/scale/index.rst @@ -1,6 +1,30 @@ - -Scale with customized section style -"""""""""""""""" +A simple horizontal scale +""""""""""""""""""""""""" .. lv_example:: widgets/scale/lv_example_scale_1 :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 +