Option: adds configurable spacing between icon and string keys

Fixes #2004
This commit is contained in:
李通洲
2025-10-13 09:54:34 +08:00
parent e3a698f7b1
commit 32dcf9487f
5 changed files with 52 additions and 9 deletions
+10
View File
@@ -451,6 +451,11 @@ const char* ffOptionsParseDisplayJsonConfig(FFOptionsDisplay* options, yyjson_va
{ "string", FF_MODULE_KEY_TYPE_STRING },
{ "icon", FF_MODULE_KEY_TYPE_ICON },
{ "both", FF_MODULE_KEY_TYPE_BOTH },
{ "both-0", FF_MODULE_KEY_TYPE_BOTH_0 },
{ "both-1", FF_MODULE_KEY_TYPE_BOTH_1 },
{ "both-2", FF_MODULE_KEY_TYPE_BOTH_2 },
{ "both-3", FF_MODULE_KEY_TYPE_BOTH_3 },
{ "both-4", FF_MODULE_KEY_TYPE_BOTH_4 },
{}
});
if (error) return error;
@@ -612,6 +617,11 @@ bool ffOptionsParseDisplayCommandLine(FFOptionsDisplay* options, const char* key
{ "string", FF_MODULE_KEY_TYPE_STRING },
{ "icon", FF_MODULE_KEY_TYPE_ICON },
{ "both", FF_MODULE_KEY_TYPE_BOTH },
{ "both-0", FF_MODULE_KEY_TYPE_BOTH_0 },
{ "both-1", FF_MODULE_KEY_TYPE_BOTH_1 },
{ "both-2", FF_MODULE_KEY_TYPE_BOTH_2 },
{ "both-3", FF_MODULE_KEY_TYPE_BOTH_3 },
{ "both-4", FF_MODULE_KEY_TYPE_BOTH_4 },
{}
});
}