Commit Graph
10 Commits
Author SHA1 Message Date
philmozandGitHub 92651429a2 feat(color): Use generic YAML parser to save/load Theme yaml files (#3346)
* Change ThemeFile class to use generic YAML parser instead of hard wired code.
Fix handling of empty input lines in YAML parser.
Increase size of YAML parser variables to handle theme 'info' property length.

* Update comment.

* Fix error.

* Proper fix for blank lines in YAML file.

* Fix YAML blank line handling (attempt 3).

* Ensure theme YAML file is backward compatible.

* Store selected theme in radio settings instead of selectedtheme.txt file.
On start, if radio settings theme is empty, try and load from selectedtheme.txt file.
In Companion, save/load the selected theme in the radio settings YAML file; but no UI to select theme.

* Update selected theme name in radio.yml if the theme name was edited.

* Only save 'selectedTheme' in Companion on color LCD radios.
2023-04-09 13:32:30 +10:00
Raphael Coeffic c2c23c43d9 Fix parsing last line without CRLF/LF.
Check EOF at the end of the buffer.
2021-12-31 10:53:11 +01:00
Raphael Coeffic 81d7768498 Fix arbitrary escaping in quoted strings 2021-12-30 14:21:02 +01:00
Raphael CoefficandPeter Feerick 66932626d5 YaML: escape exclamation marks to avoid issues with compliant parsers
and added some support for reading such escaped characters.
2021-11-28 11:31:47 +10:00
Raphael CoefficandRaphael Coeffic df4a44274b Added support for empty spaces within attribute names and double quotes 2021-11-22 13:23:28 +01:00
Raphael Coeffic a8f2212f2c Added support for lists (without index value) 2021-11-10 11:07:00 +01:00
Raphael Coeffic 7da2615d4f yaml: do not copy '\r' or '\n' into attribute name 2021-11-10 11:06:59 +01:00
Raphael Coeffic fcab8f2b24 Hide YAML traces behind DEBUG_YAML 2021-11-10 11:06:59 +01:00
rotormanandRisto fc2142ec78 Changed uniformly to EdgeTX boiler plate (also added boiler for files that were missing it). 2021-10-02 14:22:01 +02:00
Raphael CoefficandBertrand Songis 8b4d2b698d YAML storage (#7071)
YAML storage
2019-11-12 14:50:05 +01:00