Mini Kabibi Habibi

Current Path : C:/Program Files/Adobe/Adobe Photoshop 2025/Required/layouts/Color/Dialogs/
Upload File :
Current File : C:/Program Files/Adobe/Adobe Photoshop 2025/Required/layouts/Color/Dialogs/cubeNonModal-1659.exv

// Copyright 2023 Adobe Systems Incorporated

vCubeSide = 256;
vEyedropper = 2370;
vRadioWidth = max(zstring_width(zstring: '$$$/Dialog/ColorCube/H=H:'), zstring_width(zstring: '$$$/Dialog/ColorCube/S=S:'), zstring_width(zstring: '$$$/Dialog/ColorCube/Brightness=B:'), zstring_width(zstring: '$$$/Dialog/ColorCube/R=R:'), zstring_width(zstring: '$$$/Dialog/ColorCube/G=G:'), zstring_width(zstring: '$$$/Dialog/ColorCube/B=B:'), zstring_width(zstring: '$$$/Dialog/ColorCube/L=L:'), zstring_width(zstring: '$$$/Dialog/ColorCube/a=a:'), zstring_width(zstring: '$$$/Dialog/ColorCube/b=b:'), zstring_width(zstring: '$$$/Dialog/ColorCube/C=C:'), zstring_width(zstring: '$$$/Dialog/ColorCube/M=M:'), zstring_width(zstring: '$$$/Dialog/ColorCube/Y=Y:'), zstring_width(zstring: '$$$/Dialog/ColorCube/K=K:')) + gCheckBoxWidth + gSmallGap + 3;
vEditWidth = 3 * max_digit_width() + gEditDoubleOutset;
vLabWidth = 4 * max_digit_width() + gEditDoubleOutset;
vHexFieldWidth = 10 * max_digit_width();
vMarginNewWidth = max(0, 60 - zstring_width(zstring: '$$$/PickerPalette/new=new'));
vMarginCurrentWidth = max(0, 60 - zstring_width(zstring: '$$$/PickerPalette/current=current'));
view(view_id: 'cube', name: '$$$/Dialog/ColorCube/LDRTitle=Color Picker (Foreground Color)', class_name: 'TNonModalCubeDialog', placement: place_row, spacing: 1, child_horizontal: align_fill, child_vertical: align_top) {
    group(child_horizontal: align_fill, child_vertical: align_fill, spacing: 15) {
        group(placement: place_row, child_horizontal: align_fill, spacing: gLargeSpace) {
            group(spacing: 0) {
                group(placement: place_row, vertical: align_top, child_vertical: align_center) {
                    group(spacing: 1) {
                        static_text(name: '$$$/PickerPalette/new=new', horizontal: align_center, vertical: align_bottom);
                        view(view_id: 'pikt', class_name: 'TPickedColor', height: 69, width: 61);
                        static_text(name: '$$$/PickerPalette/current=current', horizontal: align_center, vertical: align_top);
                    }
                    group() {
                        group(spacing: 2) {
                            view(view_id: 'gwrn', class_name: 'TEventIconImage', height: 13, width: 13, tooltip: '$$$/PickerPalette/ToolTips/GamutWarner=Warning: out of gamut for printing');
                            view(view_id: 'gswt', class_name: 'TGamutSwatch', height: 14, width: 14, tooltip: '$$$/PickerPalette/ToolTips/GamutSwatch=Click to select in gamut color');
                        }
                        group(spacing: 2) {
                            view(view_id: 'wwrn', class_name: 'TEventIconImage', height: 13, width: 13, tooltip: '$$$/PickerPalette/ToolTips/WebWarner=Warning: not a web safe color');
                            view(view_id: 'wswt', class_name: 'TWebSwatch', height: 14, width: 14, tooltip: '$$$/PickerPalette/ToolTips/WebSwatch=Click to select web safe color');
                        }
                    }
                }
            }
            group(vertical: align_top, child_horizontal: align_fill, spacing: gLargeSpace) {
                group(name: 'OKCancel', child_horizontal: align_fill) {
                    button(name: gOKString, view_id: 'ok  ', dismiss: true,
                        default: true);
                    button(name: gCancelString, view_id: 'cncl', dismiss: true);
                }
                button(view_id: 'adds', name: '$$$/Dialog/ColorCube/AddToSwatches=Add to Swatches', dismiss: true);
                button(view_id: 'cust', name: '$$$/Dialog/ColorCube/CustomColors=Color Libraries', dismiss: true);
                button(view_id: 'acey', name: '$$$/Apollo/Dialog/ColorCube/ActivateEyedropper=Eyedropper', dismiss: false);
            }
        }
        group(view_id: 'clst', class_name: 'TRadioCluster', placement: place_row, child_horizontal: align_fill, child_vertical: align_fill) {
            group(vertical: align_top, spacing: gSpace) {
                group(horizontal: align_fill, spacing: gGap) {
                    group(placement: place_row, child_horizontal: align_left, spacing: gSmallGap) {
                        radio(view_id: 'hrad', name: '$$$/Dialog/ColorCube/H=H:', width: vRadioWidth);
                        edit_text(view_id: 'hue ', class_name: 'TFixedPoint', width: vEditWidth);
                        static_text(class_name: 'THotText', name: '$$$/Dialog/ColorCube/Degrees=^D');
                    }
                    group(placement: place_row, child_horizontal: align_left, spacing: gSmallGap) {
                        radio(view_id: 'srad', name: '$$$/Dialog/ColorCube/S=S:', width: vRadioWidth);
                        edit_text(view_id: 'satu', class_name: 'TFixedPoint', width: vEditWidth);
                        static_text(class_name: 'THotText', name: '$$$/ControlStrings/Percent=%');
                    }
                    group(placement: place_row, child_horizontal: align_left, spacing: gSmallGap) {
                        radio(view_id: 'lrad', name: '$$$/Dialog/ColorCube/Brightness=B:', width: vRadioWidth);
                        edit_text(view_id: 'brit', class_name: 'TFixedPoint', width: vEditWidth, name: '$$$/private/empty=');
                        static_text(class_name: 'THotText', name: '$$$/ControlStrings/Percent=%');
                    }
                }
                group(horizontal: align_fill, spacing: gGap) {
                    group(placement: place_row, child_horizontal: align_left, spacing: gSmallGap) {
                        radio(view_id: 'rrad', name: '$$$/Dialog/ColorCube/R=R:', width: vRadioWidth);
                        edit_text(view_id: 'red ', class_name: 'TFixedPoint', width: vEditWidth);
                    }
                    group(placement: place_row, child_horizontal: align_left, spacing: gSmallGap) {
                        radio(view_id: 'grad', name: '$$$/Dialog/ColorCube/G=G:', width: vRadioWidth);
                        edit_text(view_id: 'gren', class_name: 'TFixedPoint', width: vEditWidth);
                    }
                    group(placement: place_row, child_horizontal: align_left, spacing: gSmallGap) {
                        radio(view_id: 'brad', name: '$$$/Dialog/ColorCube/B=B:', width: vRadioWidth);
                        edit_text(view_id: 'blue', class_name: 'TFixedPoint', width: vEditWidth);
                    }
                }
                edit_text(view_id: 'hexv', class_name: 'TFixedPoint', name: '$$$/Dialog/ColorCube/Hex=#', width: vHexFieldWidth, max_chars: 8, horizontal: align_left);
                group(spacing: 0, margin: 0, margin_left: gSpace, child_horizontal: align_left) {
                    group(margin_left: 0, spacing: 0) {
                        view(height:8);
                        control (view_id: 'frbk', class_name: 'TSmallFBSelector', horizontal: align_right, height: vFBSelSize, width: vFBSelSize, resize_size_horizontal: sizeFixed);
                    }
                }
                view(class_name: 'TEyedropperOptions', view_id: 'panl', placement:place_column, child_vertical: align_center, margin_width: gOptionsMarginWidth, margin_height: gOptionsMarginHeight) {
                    popup(resource_id: vEyedropper, view_id: 'eyed', height: gSmallPopupHeight, tooltip: '$$$/EyedropperOptions/Tooltip/SampleSize=The number of pixels sampled by the eyedropper');
                    popup(resource_id: vEyedropper+2, view_id: 'eyes', height: gSmallPopupHeight, tooltip: '$$$/EyedropperOptions/Tooltip/SampleMode=Eyedropper sample mode');
                    view(class_name: 'TNarrowGroupSeparator', width:1, height: gOptionsPanelGroupBarHeight, vertical: align_center);
                    check_box(view_id: 'eyeh', class_name: 'TMiniCheckBox', name: '$$$/EyeDropperToolOptions/showsamplingring=Show Sampling Ring', alternate_icon: 'ShowSamplingRing', tooltip: '$$$/EyeDropperToolOptions/Tooltip/showsamplingring=Show the sampling ring when using the eyedropper tool');
                }
            }
            group(vertical: align_top, spacing: gSpace) {
                group(view_id: 'lab ', horizontal: align_fill, child_horizontal: align_fill, spacing: gGap) {
                    group(placement: place_row, spacing: gGap) {
                        radio(view_id: 'Lrad', horizontal: align_right, name: '$$$/Dialog/ColorCube/L=L:');
                        edit_text(view_id: 'lite', class_name: 'TFixedPoint', width: vLabWidth);
                    }
                    group(placement: place_row, spacing: gGap) {
                        radio(view_id: 'Arad', horizontal: align_right, name: '$$$/Dialog/ColorCube/a=a:');
                        edit_text(view_id: 'achr', class_name: 'TFixedPoint', width: vLabWidth);
                    }
                    group(placement: place_row, spacing: gGap) {
                        radio(view_id: 'Brad', horizontal: align_right, name: '$$$/Dialog/ColorCube/b=b:');
                        edit_text(view_id: 'bchr', class_name: 'TFixedPoint', width: vLabWidth);
                    }
                }
                group(view_id: 'cmyk', horizontal: align_fill, child_horizontal: align_fill, spacing: gGap) {
                    group(placement: place_row, spacing: gGap) {
                        edit_text(view_id: 'cyan', class_name: 'TFixedPoint', name: '$$$/Dialog/ColorCube/C=C:', width: vEditWidth);
                        static_text(class_name: 'THotText', name: '$$$/ControlStrings/Percent=%');
                    }
                    group(placement: place_row, spacing: gGap) {
                        edit_text(view_id: 'mgnt', class_name: 'TFixedPoint', name: '$$$/Dialog/ColorCube/M=M:', width: vEditWidth);
                        static_text(class_name: 'THotText', name: '$$$/ControlStrings/Percent=%');
                    }
                    group(placement: place_row, spacing: gGap) {
                        edit_text(view_id: 'yelo', class_name: 'TFixedPoint', name: '$$$/Dialog/ColorCube/Y=Y:', width: vEditWidth);
                        static_text(class_name: 'THotText', name: '$$$/ControlStrings/Percent=%');
                    }
                    group(placement: place_row, spacing: gGap) {
                        edit_text(view_id: 'blak', class_name: 'TFixedPoint', name: '$$$/Dialog/ColorCube/K=K:', width: vEditWidth);
                        static_text(class_name: 'THotText', name: '$$$/ControlStrings/Percent=%');
                    }
                }
            }
        }
    }
    group(spacing: 1) {
        static_text(view_id: 'prmt', horizontal: align_left, width: vCubeSide + 30);
        group(placement: place_row, child_vertical: align_center, spacing: 1) {
            view(view_id: 'xsct', class_name: 'TCubeXSection', height: vCubeSide, width: vCubeSide);
            view(view_id: 'cor1', class_name: 'TSliderSet', height: vCubeSide + 12, width: 10);
            view(view_id: 'core', class_name: 'TCubeCore', height: vCubeSide, width: 19);
            view(view_id: 'cor2', class_name: 'TSliderSet', height: vCubeSide + 12, width: 10);
        }
        group(margin_top: 4) {
            check_box(view_id: 'webs', name: '$$$/Dialog/ColorCube/WebOnly=Only Web Colors');
        }
    }
}
// Footer - Copyright 2023 Adobe Systems Incorporated