UI: Dynamic File Browser Tooltips #104547

Merged
Harley Acheson merged 27 commits from Harley/blender:FileTooltips into main 2024-01-03 03:56:23 +01:00
1 changed files with 10 additions and 12 deletions
Showing only changes of commit b71356e06d - Show all commits

View File

@ -232,12 +232,11 @@ static void file_draw_tooltip_custom_func(bContext * /*C*/, struct uiTooltipData
IMB_metadata_get_field(
thumb->metadata, "Thumb::Image::Height", value2, sizeof(value2)))
{
UI_tooltip_text_field_add(
tip,
BLI_sprintfN("%s \u00D7 %s", value1, value2),
nullptr,
UI_TIP_STYLE_NORMAL,
UI_TIP_LC_NORMAL);
UI_tooltip_text_field_add(tip,
BLI_sprintfN("%s \u00D7 %s", value1, value2),
nullptr,
UI_TIP_STYLE_NORMAL,
Harley marked this conversation as resolved Outdated

Same here re offline file handling in IMB_thumb_manage().

Same here re offline file handling in `IMB_thumb_manage()`.
UI_TIP_LC_NORMAL);
UI_tooltip_text_field_add(tip, nullptr, nullptr, UI_TIP_STYLE_SPACER, UI_TIP_LC_NORMAL);
}
}
@ -256,12 +255,11 @@ static void file_draw_tooltip_custom_func(bContext * /*C*/, struct uiTooltipData
IMB_metadata_get_field(
thumb->metadata, "Thumb::Video::Height", value2, sizeof(value2)))
{
UI_tooltip_text_field_add(
tip,
BLI_sprintfN("%s \u00D7 %s", value1, value2),
nullptr,
UI_TIP_STYLE_NORMAL,
UI_TIP_LC_NORMAL);
UI_tooltip_text_field_add(tip,
BLI_sprintfN("%s \u00D7 %s", value1, value2),
nullptr,
UI_TIP_STYLE_NORMAL,
UI_TIP_LC_NORMAL);
}
if (IMB_metadata_get_field(
thumb->metadata, "Thumb::Video::Frames", value1, sizeof(value1)) &&