Mini Kabibi Habibi
/* This resource defines a dialog and some content within that is common across all (or at least multiple) user feedback dialogs that we
display. To provide different experiences for different features / workflows, it has a `nested_layout_parent_view_t` view in the middle
which is intended to serve as the container for different "details" view hierarchies, defined by separate .eve files. For more, see
@feedback_dialog_t */
layout userFeedbackDialog
{
constant:
zHeader : '$$$/Dialog/UserFeedback/Header/Default=Rate your result';
zIncludeImageData : '$$$/Dialog/UserFeedback/IncludeImagesAndData=&Include images and data in your feedback';
zAIDisclaimerText : '$$$/SyntheticFill/PolicyLabel=Adobe does not use your images or data to train our generative AI models.';
zLearnMore : '$$$/Dialog/UserFeedback/LearnMore=Learn more';
interface:
showPreview : false;
showIncludeImageDataCheckBox : false;
showAIDisclaimerText : false;
includeImageData : false;
hideDialogHeader : false;
view feedback_dialog_t( name : '',
placement : place_column,
margin : 0,
width : 400,
isResizable : false,
dboxProcIdentifier : -1)
{
column(horizontal : align_fill,
margin : [20, 20, 20, 20],
spacing : 10)
{
TOptional(bind: @hideDialogHeader, horizontal: align_fill, value: false)
{
TStaticText(identifier: @header, name: zHeader, font: headingFont);
TNarrowGroupSeparator(height: 1, horizontal: align_fill);
}
row(horizontal: align_fill, child_vertical: align_center)
{
TOptional(bind: @showPreview)
{
TThumbnailView(identifier: @preview, width: 50, height: 50);
}
TOptional(bind: @showIncludeImageDataCheckBox)
{
TCheckBox(name: zIncludeImageData, bind: @includeImageData);
}
}
nested_layout_parent_view_t(identifier: @details_parent, horizontal: align_fill, vertical: align_fill)
{
/* Customizable interior "details" view goes here */
}
/* Make the remaining characters and the text field closer together. */
column(spacing: 5, horizontal: align_fill)
{
TStaticText(
identifier: @noteTextRemainingCharacters, horizontal: align_right,
name: "$$$/private/Dialog/UserFeedback/NoteTextRemainingCharactersPlaceholder=XXXX"); // placeholder replaced in feedback_dialog.cpp
/* PS-109476: allow 1000 characters, or about 200 words. Ingest supports 1 MB/event, room to grow if needed. */
TEditText(identifier: @noteText, lines: 3, width: 400, maxChars: 1000, horizontal: align_fill);
}
row(horizontal: align_fill, child_vertical: align_center)
{
TOptional(bind: @showAIDisclaimerText, placement: place_row)
{
TIconImageView(vertical: align_center, iconRootName: 'AIGenShield', horizontal: align_left);
row(vertical: align_center, horizontal: align_left, spacing: 0)
{
TStaticText(name: zAIDisclaimerText, useDefaultColor: true, font: staticSmallestFont);
TStaticText(identifier: @ai_learn_more_link, name: zLearnMore, font: staticSmallestFont);
}
}
}
row(horizontal: align_fill, child_vertical: align_center)
{
TButton(name: "$$$/ControlsStrings/Cancel=Cancel",
identifier: @cancel,
dismiss: true,
horizontal: align_right);
TButton(name: "$$$/Dialog/UserFeedback/Submit/Default=Submit feedback",
identifier: @ok,
dismiss: true,
default: true,
horizontal: align_right);
}
}
}
}