mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:14:37 +02:00
Modules: adds missing options when generating full config file
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -150,6 +150,8 @@ void ffGenerateCPUJsonConfig(FFCPUOptions* options, yyjson_mut_doc* doc, yyjson_
|
||||
ffTempsGenerateJsonConfig(doc, module, options->temp, options->tempConfig);
|
||||
|
||||
yyjson_mut_obj_add_bool(doc, module, "showPeCoreCount", options->showPeCoreCount);
|
||||
|
||||
yyjson_mut_obj_add_strbuf(doc, module, "tempSensor", &options->tempSensor);
|
||||
}
|
||||
|
||||
bool ffGenerateCPUJsonResult(FFCPUOptions* options, yyjson_mut_doc* doc, yyjson_mut_val* module) {
|
||||
|
||||
@@ -178,6 +178,9 @@ void ffGeneratePhysicalDiskJsonConfig(FFPhysicalDiskOptions* options, yyjson_mut
|
||||
yyjson_mut_obj_add_strbuf(doc, module, "namePrefix", &options->namePrefix);
|
||||
|
||||
ffTempsGenerateJsonConfig(doc, module, options->temp, options->tempConfig);
|
||||
|
||||
yyjson_mut_obj_add_bool(doc, module, "hideVirtual", !!(options->hideType & FF_PHYSICALDISK_TYPE_VIRTUAL));
|
||||
yyjson_mut_obj_add_bool(doc, module, "hideUnused", !!(options->hideType & FF_PHYSICALDISK_TYPE_UNUSED));
|
||||
}
|
||||
|
||||
bool ffGeneratePhysicalDiskJsonResult(FFPhysicalDiskOptions* options, yyjson_mut_doc* doc, yyjson_mut_val* module) {
|
||||
|
||||
Reference in New Issue
Block a user