Modules: adds missing options when generating full config file

This commit is contained in:
李通洲
2026-04-20 16:14:58 +08:00
parent dbed1b32b4
commit 910ba413da
3 changed files with 17 additions and 0 deletions
+12
View File
@@ -264,6 +264,18 @@ void ffGenerateColorsJsonConfig(FFColorsOptions* options, yyjson_mut_doc* doc, y
yyjson_mut_arr_add_uint(doc, range, options->block.range[i]);
}
}
switch (options->brightness) {
case FF_COLORS_BRIGHTNESS_NORMAL:
yyjson_mut_obj_add_str(doc, module, "brightness", "normal");
break;
case FF_COLORS_BRIGHTNESS_LIGHT:
yyjson_mut_obj_add_str(doc, module, "brightness", "light");
break;
default:
yyjson_mut_obj_add_str(doc, module, "brightness", "default");
break;
}
}
void ffInitColorsOptions(FFColorsOptions* options) {