| Current Path : C:/Program Files/Adobe/Adobe Photoshop 2025/Required/layouts/Masks/Bars/ |
| Current File : C:/Program Files/Adobe/Adobe Photoshop 2025/Required/layouts/Masks/Bars/cxui_mask_bar.eve |
layout cxui_mask_bar {
constant:
bar_title: '$$$/CxUI/Mask/Bar/Title=Mask Bar';
bar_button_width: 38;
bar_button_height: 35;
drag_bar_width: 12;
text_button_height: bar_button_height - 7;
interface:
is_background_mask: true;
view cxui_bar_window(name: bar_title,
placement: place_row,
spacing: 0,
margin: 0) {
cxui_background_view(placement: place_row,
margin: 0,
spacing: 0,
horizontal: align_center,
vertical: align_fill) {
cxui_drag_bar(identifier: @drag,
width: drag_bar_width,
horizontal: align_left,
vertical: align_fill);
TView(width: 3);
row(margin: 0,
spacing: 0,
horizontal: align_left,
vertical: align_fill) {
TOptional(bind: @is_background_mask, value: false) {
row(margin: 0,
spacing: gGap,
horizontal: align_left,
vertical: align_fill) {
TIconButton(identifier: @subtract_mask_text,
dataType: 'int32',
frame: 2,
fontColorFromTheme: true,
alignIconTextTogether: true,
width: bar_button_width,
height: text_button_height,
horizontal: align_fill,
vertical: align_center,
button_style: 'context_bar',
iconRootName: 'CxUI_MaskBrushMinus',
layoverText: '$$$/CxUI/Mask/Bar/Button/HideImage/Text=Subtract from mask',
layoverTextPosition: align_right,
tooltip: '$$$/CxUI/Mask/Bar/Button/HideImage/Tooltip=Subtract from mask');
TIconButton(identifier: @add_mask_text,
dataType: 'int32',
frame: 2,
fontColorFromTheme: true,
alignIconTextTogether: true,
width: bar_button_width,
height: text_button_height,
horizontal: align_fill,
vertical: align_center,
button_style: 'context_bar',
iconRootName: 'CxUI_MaskBrushPlus',
layoverText: '$$$/CxUI/Mask/Bar/Button/RevealImage/Text=Add to mask',
layoverTextPosition: align_right,
tooltip: '$$$/CxUI/Mask/Bar/Button/RevealImage/Tooltip=Add to mask');
TPunchButton(identifier: @modify_text,
dataType: 'int32',
width: bar_button_height,
height: bar_button_height,
horizontal: align_left,
vertical: align_center,
button_style: 'context_bar',
iconRootName: 'CxUI_MaskModify',
tooltip: '$$$/CxUI/Type/Bar/Button/ModifyMask/Tooltip=Modify mask feather and density');
TIconButton(identifier: @disable,
dataType: 'int32',
width: bar_button_width,
height: bar_button_height,
horizontal: align_left,
vertical: align_center,
button_style: 'context_bar',
iconRootName: 'CxUI_MaskDisable',
tooltip: '$$$/CxUI/Mask/Bar/Button/DisableMask/Tooltip=Hide mask');
TIconButton(identifier: @view,
dataType: 'int32',
width: bar_button_width,
height: bar_button_height,
horizontal: align_left,
vertical: align_center,
button_style: 'context_bar',
iconRootName: 'CxUI_MaskView',
tooltip: '$$$/CxUI/Mask/Bar/Button/View/Tooltip=Change mask view');
}
}
TOptional(bind: @is_background_mask, value: true) {
row(margin: 0,
spacing: gGap,
horizontal: align_center,
vertical: align_fill) {
TIconButton(identifier: @generate_background,
dataType: 'int32',
frame: 2,
fontColorFromTheme: true,
alignIconTextTogether: true,
width: bar_button_width,
height: text_button_height,
horizontal: align_left,
vertical: align_center,
button_style: 'context_bar',
iconRootName: 'CxUI_GenerateBackground',
layoverText: '$$$/CxUI/Mask/Bar/Button/GenerateBackground/Text=Generate background',
layoverTextPosition: align_right,
richtooltip: true);
TIconButton(identifier: @import_background,
dataType: 'int32',
frame: 2,
fontColorFromTheme: true,
alignIconTextTogether: true,
width: bar_button_width,
height: text_button_height,
horizontal: align_left,
vertical: align_center,
button_style: 'context_bar',
iconRootName: 'CxUI_ImageBackground',
layoverText: '$$$/CxUI/Mask/Bar/Button/ImportImage/Text=Import background',
layoverTextPosition: align_right,
richtooltip: true);
TIconButton(identifier: @paint_bucket,
dataType: 'int32',
width: bar_button_width,
height: bar_button_height,
horizontal: align_left,
vertical: align_center,
button_style: 'context_bar',
iconRootName: 'CxUI_Fill',
richtooltip: true);
TIconButton(identifier: @subtract_mask,
dataType: 'int32',
width: bar_button_width,
height: bar_button_height,
horizontal: align_left,
vertical: align_center,
button_style: 'context_bar',
iconRootName: 'CxUI_MaskBrushMinus',
tooltip: '$$$/CxUI/Mask/Bar/Button/HideImage/Tooltip=Subtract from mask');
TIconButton(identifier: @add_mask,
dataType: 'int32',
width: bar_button_width,
height: bar_button_height,
horizontal: align_left,
vertical: align_center,
button_style: 'context_bar',
iconRootName: 'CxUI_MaskBrushPlus',
tooltip: '$$$/CxUI/Mask/Bar/Button/RevealImage/Tooltip=Add to mask');
TPunchButton(identifier: @modify,
dataType: 'int32',
width: bar_button_height,
height: bar_button_height,
horizontal: align_left,
vertical: align_center,
button_style: 'context_bar',
iconRootName: 'CxUI_MaskModify',
tooltip: '$$$/CxUI/Type/Bar/Button/ModifyMask/Tooltip=Modify mask feather and density');
}
}
}
row(margin: 0,
spacing: 0,
horizontal: align_left,
vertical: align_fill) {
TPunchButton(identifier: @more,
dataType: 'int32',
width: bar_button_width,
height: bar_button_height,
horizontal: align_left,
vertical: align_center,
button_style: 'context_bar',
iconRootName: 'CxUI_More',
tooltip: '$$$/CxUI/Bar/Common/Button/More/Tooltip=More options');
}
}
}
}