refactor: rename DTree to DValue

This commit is contained in:
udo
2026-06-12 11:05:52 +00:00
parent 941f5aea08
commit 7066da3cde
157 changed files with 1203 additions and 1074 deletions
@@ -21,10 +21,10 @@ String gauge_attr_id(String value)
return(ascii_safe_name(value));
}
String gauge_range_color(DTree ranges, f64 value)
String gauge_range_color(DValue ranges, f64 value)
{
String matched = "";
ranges.each([&](DTree range, String key) {
ranges.each([&](DValue range, String key) {
f64 from_value = float_val(first(range["from"].to_string(), "-999999999"));
f64 to_value = float_val(first(range["to"].to_string(), "999999999"));
if(value >= from_value && value <= to_value && matched == "")