Docs: Kivy Style (#5425)

Co-authored-by: Silvris <58583688+Silvris@users.noreply.github.com>
Co-authored-by: black-sliver <59490463+black-sliver@users.noreply.github.com>
This commit is contained in:
Fabian Dill
2025-09-09 19:33:31 +02:00
committed by GitHub
parent 18ac9210cb
commit 287bb638a0

View File

@@ -60,3 +60,9 @@
* Indent `case` inside `switch ` with 2 spaces. * Indent `case` inside `switch ` with 2 spaces.
* Use single quotes. * Use single quotes.
* Semicolons are required after every statement. * Semicolons are required after every statement.
## KV
* Style should be defined in `.kv` as much as possible, only Python when unavailable.
* Should follow [our Python style](#python-code) where appropriate (quotation marks, indentation).
* When escaping a line break, add a space between code and backslash.