Mini Kabibi Habibi

Current Path : C:/Program Files/Adobe/Adobe Photoshop 2025/Required/layouts/Masks/Properties/
Upload File :
Current File : C:/Program Files/Adobe/Adobe Photoshop 2025/Required/layouts/Masks/Properties/masks-2662.exv

// Copyright 2023 Adobe Systems Incorporated

zNameDensity = '$$$/MaskPanel/Name/Density=Density:';
zNameFeather = '$$$/MaskPanel/Name/Feather=Feather:';
zPixelMask = '$$$/MaskPanel/MaskSelection/LayerMask=Layer Mask';
zVectorMask = '$$$/MaskPanel/MaskSelection/VectorMask=Vector Mask';
zRefineMask = '$$$/MaskPanel/Button/SelectAndMask=Select and Mask...';
zColorRange = '$$$/MaskPanel/Button/ColorRange=Color Range...';
zInvert = '$$$/MaskPanel/Button/Invert=Invert';
zTipUserMaskIcon = '$$$/MaskPanel/ToolTip/AddLayerMask=Add a layer mask';
zTipVectorMaskIcon = '$$$/MaskPanel/ToolTip/AddVectorMask=Add a vector mask';
zTipFilterMaskIcon = '$$$/MaskPanel/ToolTip/AddFilterMask=Add a filter mask';
zTipDensity = '$$$/MaskPanel/ToolTip/Density=Set the density for the mask';
zTipFeather = '$$$/MaskPanel/ToolTip/Feather=Set the feather for the mask';
zTipRefineMask = '$$$/MaskPanel/ToolTip/RefineMask=Refine mask';
zTipColorRange = '$$$/MaskPanel/ToolTip/ColorRange=Color Range';
zTipInvert = '$$$/MaskPanel/ToolTip/Invert=Invert layer mask';
vMaskPanelWidth = gListPaletteWidth;
iconButtonHeight = 15;
iconButtonWidth = 27;
font = static_small_font;
vPixelMaskWidth = zstring_width(zstring: zPixelMask, font_id: gUIFont, font_size: gSmallFontSize);
vVectorMaskWidth = zstring_width(zstring: zVectorMask, font_id: gUIFont, font_size: gSmallFontSize);
vFilterMaskWidth = zstring_width(zstring: '$$$/MaskPanel/MaskSelection/FilterMask=Filter Mask', font_id: gUIFont, font_size: gSmallFontSize);
vNoLayerSelectedWidth = zstring_width(zstring: '$$$/MaskPanel/MaskSelection/NoLayerSelected=No layer selected', font_id: gUIFont, font_size: gSmallFontSize);
vMultiLayersSelectedWidth = zstring_width(zstring: '$$$/MaskPanel/MaskSelection/MultiLayersSelected=Multi layers selected', font_id: gUIFont, font_size: gSmallFontSize);
vNoMaskSelectedWidth = zstring_width(zstring: '$$$/MaskPanel/MaskSelection/NoMask=No mask selected', font_id: gUIFont, font_size: gSmallFontSize);
vInfoWidth = max(vPixelMaskWidth, vVectorMaskWidth, vFilterMaskWidth, vNoLayerSelectedWidth, vMultiLayersSelectedWidth, vNoMaskSelectedWidth);
// Note - this is a special case, regular #defines such as Macintosh or WIN_32 are not available here

#ifdef MacEve
vSliderHeight = 17;
vSliderWidth = zstring_asinteger(zstring: '$$$/MaskPanel/Mac/SliderWidth=189');
vSliderOffset = 3;
vButtonSpace = gSpace + 2;
#endif

#ifdef WinEve
vSliderHeight = 12;
vSliderWidth = zstring_asinteger(zstring: '$$$/MaskPanel/Win/SliderWidth=181');
vButtonSpace = gSpace;
#endif

vPreviewWidth = 32;
vPreviewHeight = 32;
vRefineMaskWidth = zstring_width(zstring: zRefineMask, font_id: gUIFont, font_size: gSmallFontSize);
vColorRangeWidth = zstring_width(zstring: zColorRange, font_id: gUIFont, font_size: gSmallFontSize);
zInvertWidth = zstring_width(zstring: zInvert, font_id: gUIFont, font_size: gSmallFontSize);
vButtonWidth = max(vRefineMaskWidth, vColorRangeWidth, zInvertWidth) + gButtonSpace + gButtonSpace;
buttonFillerWidth = gStdPaletteWidth - (4 * iconButtonWidth);
view(class_name: 'TMaskPanel', view_id: 'mask', width: vMaskPanelWidth, resize_size_horizontal: sizeRelSuperView) {
    group(width: vMaskPanelWidth, child_horizontal: align_fill, resize_size_horizontal: sizeRelSuperView) {
        group(placement: place_row, spacing: gGap, vertical: align_top, margin: gPanelBorderMargin, resize_size_horizontal: sizeRelSuperView) {
            view(view_id: 'mskp', vertical: align_center, class_name: 'TMaskPanelThumbnailView', width: vPreviewWidth, height: vPreviewHeight);
            static_text(view_id: 'iftx', vertical: align_center, font: static_small_font, horizontal: align_fill, name: '$$$/MaskPanel/MaskSelection/NoMask=No mask selected');
            group(placement: place_row, spacing: 0, vertical: align_center, horizontal: align_right, resize_location_horizontal: locationRelSuperView) {
                group(placement: place_offscreen, vertical: align_center, horizontal: align_left) {
                    view(view_id: 'ftM1', class_name: 'TIconImageHiliteView', tooltip: zTipFilterMaskIcon, height: gPaletteIconHeight, width: gPaletteIconWidth, show: true);
                    view(view_id: 'ftM2', class_name: 'TIconImageHiliteView', tooltip: zTipFilterMaskIcon, height: gPaletteIconHeight, width: gPaletteIconWidth, show: true);
                }
                group(placement: place_offscreen, vertical: align_center, horizontal: align_left) {
                    view(view_id: 'usM1', class_name: 'TIconImageHiliteView', tooltip: zTipUserMaskIcon, height: gPaletteIconHeight, width: gPaletteIconWidth, show: true);
                    view(view_id: 'usM2', class_name: 'TIconImageHiliteView', tooltip: zTipUserMaskIcon, height: gPaletteIconHeight, width: gPaletteIconWidth, show: true);
                }
                group(placement: place_offscreen, vertical: align_center, horizontal: align_left) {
                    view(view_id: 'vtM1', class_name: 'TIconImageHiliteView', tooltip: zTipVectorMaskIcon, height: gPaletteIconHeight, width: gPaletteIconWidth, show: true);
                    view(view_id: 'vtM2', class_name: 'TIconImageHiliteView', tooltip: zTipVectorMaskIcon, height: gPaletteIconHeight, width: gPaletteIconWidth, show: true);
                }
            }
        }
        divider(resize_size_horizontal: sizeRelSuperView);
        group(view_id: 'dens', class_name: 'TEditSlider', child_horizontal: align_fill, margin: gPanelBorderMargin, spacing: 0, tooltip: zTipDensity, resize_size_horizontal: sizeRelSuperView) {
            group(placement: place_row, spacing: 0, margin_left: 5, margin_right: 5, resize_size_horizontal: sizeRelSuperView) {
                static_text(view_id: 'dsht', name: zNameDensity, horizontal: align_left, class_name: 'THotText', vertical: align_center);
                edit_text(view_id: 'dsed', width: 4 * max_char_width(), class_name: 'TUnitsFixedPoint', horizontal: align_right, resize_location_horizontal: locationRelSuperView);
            }
            slider(view_id: 'dssl', height: vSliderHeight, resize_size_horizontal: sizeRelSuperView);
        }
        group(view_id: 'fetr', class_name: 'TEditSlider', child_horizontal: align_fill, margin: gPanelBorderMargin, spacing: 0, tooltip: zTipFeather, resize_size_horizontal: sizeRelSuperView) {
            group(placement: place_row, spacing: 0, margin_left: 5, margin_right: 5, resize_size_horizontal: sizeRelSuperView) {
                static_text(view_id: 'ftht', name: zNameFeather, horizontal: align_left, class_name: 'THotText', vertical: align_center);
                edit_text(view_id: 'fted', width: 4 * max_char_width(), class_name: 'TUnitsFixedPoint', horizontal: align_right, resize_location_horizontal: locationRelSuperView);
            }
            slider(view_id: 'ftsl', height: vSliderHeight, resize_size_horizontal: sizeRelSuperView);
        }
        group(placement: place_row, spacing: vButtonSpace, show: true, horizontal: align_fill, margin: gPanelBorderMargin, resize_size_horizontal: sizeRelSuperView) {
            static_text(view_id: 'refn', font: static_small_font, vertical: align_top, name: '$$$/MaskPanel/RefineLabel/Refine=Refine:');
            group(placement: place_column, spacing: vButtonSpace, show: true, horizontal: align_right, resize_location_horizontal: locationRelSuperView) {
                button(name: zRefineMask, view_id: 'rfeg', show: true, width: vButtonWidth, tooltip: zTipRefineMask, dismiss: false);
                button(name: zColorRange, view_id: 'clrg', show: true, width: vButtonWidth, tooltip: zTipColorRange, dismiss: false);
                button(name: zInvert, view_id: 'invt', show: true, width: vButtonWidth, tooltip: zTipInvert, dismiss: false);
            }
        }
    }
}
// Footer - Copyright 2023 Adobe Systems Incorporated