Repository navigation
feat(bar): add bar's orientation - #6212
Conversation
- add bar' orientation feature
- add feature bar orientation
- add test_case for bar orientation
- as astylerc format
liamHowatt
left a comment
There was a problem hiding this comment.
Fixes #6172
The test took me a moment to understand but it seems reliable 😁
| void lv_bar_set_mode(lv_obj_t * obj, lv_bar_mode_t mode); | ||
|
|
||
| /** | ||
| * Set the type of bar. |
There was a problem hiding this comment.
Duplicated docstring
| * Set the type of bar. | |
| * Set the orientation of the bar. |
- change comment type --> orientation for orientation APIs
orient->orientation
orient -> orientation
There was a problem hiding this comment.
Thank you for opening this PR. Please fix the last two things pointed out @PGNetHun and I think it can be merged.
|
@TridentTD Do you have time to finalize this PR? |
|
We need some feedback on this pull request. Now we mark this as "stale" because there was no activity here for 14 days. Remove the "stale" label or comment else this will be closed in 7 days. |
|
I've updated the test and renamed the parameter name to |
|
I found an Issue. struct lv_bar_t { but, in my visual studio simulator the enums are handled as int and this results in wrong behavior. when assigning a 2 to it (LV_BAR_ORIENTATION_VERTICAL = 2) removing the ": 2" or |
|
Ah, I see. Could you send a Pull request to fix it? Just change |
|
I never done it, but I will try! Do I fork the main, or 9.2 branch for that? |
|
It's great that you will create your first PR here 🙂 We have a guide about it here. Please fork |
Description of the feature or fix
Add feature bar's orientation.
Notes
lv_conf_template.hrun lv_conf_internal_gen.py and update Kconfig.scripts/code-format.py(astyle version v3.4.12 needs to be installed) and follow the Code Conventions.