Mini Kabibi Habibi
// Copyright 2023 Adobe Systems Incorporated
vGapForPopup = 3;
vToleranceString = '$$$/PaintBucketOptions/Tolerance=Tolerance:';
vPatternString = '$$$/PaintBucketOptions/PatternPicker=Pattern:';
v_panl_anti_String = '$$$/PaintBucketOptions/AntiAliased=Anti-alias';
v_panl_merg_String = '$$$/PaintBucketOptions/AllLayers=All Layers';
v_panl_cntg_String = '$$$/PaintBucketOptions/Contiguous=Contiguous';
mFullBrushMode = 801;
// The view resource is selected based on the resource_id of the view's child popup menu.
// Which is somewhat brittle if the same popup menu appears in different views.
vPaintBucketOldContentsPopupMenu = 1811;
font = static_small_font;
view(class_name: 'TOldBucketOptions', view_id: 'panl', width: gOptionsPanelWidth, height: gOptionsPanelHeight, spacing: gSmallGap, placement: place_row, child_vertical: align_center, margin_width: gOptionsMarginWidth, margin_height: gOptionsMarginHeight) {
popup(resource_id: vPaintBucketOldContentsPopupMenu, view_id: 'cont', height: gSmallPopupHeight, spacing: vGapForPopup, tooltip: '$$$/BucketOptions/Tooltip/Contents=Set source for fill area');
group(placement: place_row, spacing: 2, child_vertical: align_center, tooltip: '$$$/PaintTools/ToolTips/Pattern=Click+drag to select a pattern') {
view(class_name: 'TPatternThumbnailView', view_id: 'patn', width: gBrushPreviewSize + 13, height: gBrushPreviewSize);
}
control(class_name: 'TBlendReadout', placement: place_row, spacing: gSmallGap, view_id: 'blen', enabled: false, child_vertical: align_center) {
popup(resource_id: mFullBrushMode, spacing: vGapForPopup, view_id: 'bpop', width: gBlendPopupFixedWidth, height: gSmallPopupHeight, tooltip: '$$$/BucketOptions/ToolTips/FillMode=Fill Mode');
group(spacing: 2, placement: place_row, child_vertical: align_center, tooltip: '$$$/BucketOptions/Tooltip/FillOpacity=Set opacity for fill') {
static_text(view_id: 'stit', name: gSliderLabelOpacity, class_name: 'THotText', horizontal: align_right);
popup_edit_slider(view_id: 'pusl', placement: place_row, edit_class_name: 'TUnitsFixedPoint', edit_display_format: gOpacityEditFormat, edit_view_id: 'cell', slider_view_id: 'tbib');
}
}
edit_text(view_id: 'tolr', class_name: 'TFixedPoint', max_digits: 3, tooltip: '$$$/BucketOptions/Tooltip/Tolerance=Range of colors to fill', name: vToleranceString);
view(class_name: 'TNarrowGroupSeparator', width: 1, height: gOptionsPanelGroupBarHeight, vertical: align_center);
check_box(view_id: 'anti', class_name: 'TMiniCheckBox', name: v_panl_anti_String, alternate_icon: 'AntiAlias', tooltip: '$$$/BucketOptions/Tooltip/AntiAlias=Smoothes edge transition');
check_box(view_id: 'cntg', class_name: 'TMiniCheckBox', name: v_panl_cntg_String, alternate_icon: 'Contiguous', tooltip: '$$$/BucketOptions/Tooltip/Merged=Fill only contiguous pixels');
check_box(view_id: 'merg', class_name: 'TMiniCheckBox', name: v_panl_merg_String, alternate_icon: 'SampleAllLayers', tooltip: '$$$/BucketOptions/Tooltip/Contiguous=Fill composite image');
}
// Footer - Copyright 2023 Adobe Systems Incorporated