/*************************************************************************
*
* ADOBE CONFIDENTIAL
* ___________________
*
*  Copyright 2011 Adobe Systems Incorporated
*  All Rights Reserved.
*
* NOTICE:  All information contained herein is, and remains
* the property of Adobe Systems Incorporated and its suppliers,
* if any.  The intellectual and technical concepts contained
* herein are proprietary to Adobe Systems Incorporated and its
* suppliers and are protected by trade secret or copyright law.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Adobe Systems Incorporated.
**************************************************************************/

layout PrefsHTMLTagColors
{
    view subview(identifier: "IDD_PREFS_HTML_TAG_COLORS",
                 margin: 5,
                 name: "$$$/PrefsHtmlTagColors/Title/CodeColoring=Code Coloring",
                 parent_container_id: "list_sheet_container",
                 spacing: 15)
    {
        row(spacing: 5)
        {
            column(spacing: 14)
            {
                static_text(horizontal: @align_right,
                            identifier: "IDC_STATIC",
                            name: "HtmlTagColors/themes/theme=Theme:");
            
                static_text(horizontal: @align_right,
                            identifier: "IDC_STATIC",
                            name: "$$$/PrefsHtmlTagColors/Label/DocumentType=Document type:");

                row(horizontal: @align_right)
                {
                    static_text(horizontal: @align_right,
                                identifier: "IDC_STATIC",
                                indent: 135,
                                name: "$$$/PrefsHtmlTagColors/Label/DefaultBackground=&Default background:");
                }

                static_text(horizontal: @align_right,
                            identifier: "IDC_STATIC",
                            name: "$$$/PrefsHtmlTagColors/Label/LiveCode=&Live Code background:");

                static_text(horizontal: @align_right,
                            identifier: "IDC_STATIC",
                            name: "$$$/PrefsHtmlTagColors/Label/ReadOnly=&Read only background:");

                static_text(horizontal: @align_right,
                            identifier: "IDC_STATIC",
                            name: "$$$/PrefsHtmlTagColors/Label/ForeGround=&Selection foreground:");

                placeholder(height: 5);
                
                static_text(horizontal: @align_left,
                            identifier: "IDC_STATIC",
                            name: "$$$/PrefsHtmlTagColors/Label/CurrentTagHighlighting=&Current Tag Highlighting");
                
                checkbox(identifier: "IDC_ENABLE_TAG_HIGHLIGHTING",
                            indent: 5,
                            name: "$$$/PrefsHtmlTagColors/TagHighlighting/Label/Enable=&Enable tag highlighting",
                            tab_next_node: "IDC_LIST_SCHEMES");
                
                static_text(horizontal: @align_right,
                            identifier: "IDC_STATIC",
                            name: "$$$/PrefsHtmlTagColors/TagHighlighting/Label/BackgroundColor=&Highlight color:");
            }

            column()
            {
                row()
                {
                    popup(identifier: "IDC_COMBO_HTML_TAG_COLORS_THEMES",
                          include_custom_item: false,
                          popup_minimum_width_chars: 5,
                          vertical_scroll: true);
                }

                row()
                {
                    list_box(apron_click_deselection: true,
                             empty_selection: true,
                             height: 100,
                             identifier: "IDC_LIST_SCHEMES",
                             keyboard_selectable: true,
                             set_default_focus: true,
                             tab_next_node: "IDC_BUTTON_EDIT_SCHEME",
                             vertical_scroll: true,
                             width: 313.5);
                }

                row(horizontal: @align_right)
                {
                    column()
                    {
                        row(horizontal: @align_left)
                {
                    button(action: @do_action,
                           default: false,
                                   horizontal: @align_left,
                           identifier: "IDC_BUTTON_EDIT_SCHEME",
                                   name: "$$$/PrefsHtmlTagColors/Button/EditColoring=&Edit Theme Colors",
                           tab_next_node: "IDC_BUTTON_RESET_COLOR_THEME");
                        }
                    }

                    column(horizontal: @align_right)
                    {
                        row(horizontal: @align_left)
                        {
                    button(action: @do_action,
                           default: false,
                                   horizontal: @align_left,
                           identifier: "IDC_BUTTON_RESET_COLOR_THEME",
                                   name: "$$$/PrefsHtmlTagColors/Button/Reset=&Restore Defaults",
                           tab_next_node: "IDC_EDIT_BACKGROUND");                           
                }
                    }
                }

                placeholder(height: 10);

                row(spacing: 15)
                {
                    column(spacing: 5)
                    {
                        row(spacing: 5)
                        {
                            ownerdrawn_button(height: 18,
                                              identifier: "IDC_BUTTON_BACKGROUND",
                                              indent: 2,
                                              name: "$$$/PrefsHtmlTagColors/IconButton/BackgroundColor=Background color",
                                              width: 21);

                            edit_text(characters: 8,
                                      identifier: "IDC_EDIT_BACKGROUND",
                                      tab_next_node: "IDC_EDIT_LIVE_BACKGROUND");
                        }

                        row(spacing: 5)
                        {
                            ownerdrawn_button(height: 18,
                                              identifier: "IDC_BUTTON_LIVE_BACKGROUND",
                                              indent: 2,
                                              name: "$$$/PrefsHtmlTagColors/IconButton/BackgroundColor1=Background color",
                                              width: 21);

                            edit_text(characters: 8,
                                      identifier: "IDC_EDIT_LIVE_BACKGROUND",
                                      tab_next_node: "IDC_EDIT_LOCKED_BACKGROUND");
                        }

                        row(spacing: 5)
                        {
                            ownerdrawn_button(height: 18,
                                              identifier: "IDC_BUTTON_LOCKED_BACKGROUND",
                                              indent: 2,
                                              name: "$$$/PrefsHtmlTagColors/IconButton/BackgroundColor2=Background color",
                                              width: 21);

                            edit_text(characters: 8,
                                      identifier: "IDC_EDIT_LOCKED_BACKGROUND",
                                      tab_next_node: "IDC_EDIT_SELECTION_FOREGROUND");
                        }

                        row(spacing: 5)
                        {
                            ownerdrawn_button(height: 18,
                                              identifier: "IDC_BUTTON_SELECTION_FOREGROUND",
                                              indent: 2,
                                              name: "$$$/PrefsHtmlTagColors/IconButton/BackgroundColor2=Background color",
                                              width: 21);

                            edit_text(characters: 8,
                                      identifier: "IDC_EDIT_SELECTION_FOREGROUND",
                                      tab_next_node: "IDC_EDIT_TAG_HIGHLIGHT_BACKGROUND");
                        }

                        placeholder(height: 73);

						row(spacing: 5)
                        {
                            ownerdrawn_button(height: 18,
                                                identifier: "IDC_BUTTON_TAG_HIGHLIGHT_BACKGROUND",
                                                indent: 2,
                                                name: "$$$/PrefsHtmlTagColors/IconButton/BackgroundColor2=Background color",
                                                width: 21);

                            edit_text(characters: 8,
                                        identifier: "IDC_EDIT_TAG_HIGHLIGHT_BACKGROUND",
                                        tab_next_node: "IDC_EDIT_HIDDEN_CHARS");
                        }
                     }

                    column(spacing: 0)
                    {
                        row(spacing: 5)
                        {
                            column(indent: 2,
                                   spacing: 14)
                            {
                                static_text(horizontal: @align_right,
                                            identifier: "IDC_STATIC",
                                            name: "$$$/PrefsHtmlTagColors/Label/HiddenCharacters=&Hidden characters:");

                                static_text(horizontal: @align_right,
                                            identifier: "IDC_STATIC",
                                            name: "$$$/PrefsHtmlTagColors/Label/LiveCodeChanges=Live Code &changes:");
								
                                static_text(horizontal: @align_right,
                                            identifier: "IDC_STATIC",
                                            name: "$$$/PrefsHtmlTagColors/Label/SelectionBackground=Selection &background:");
                            }

                            column(spacing: 5)
                            {
                                row(spacing: 5)
                                {
                                    ownerdrawn_button(height: 18,
                                                      identifier: "IDC_BUTTON_HIDDEN_CHARS",
                                                      indent: 2,
                                                      name: "$$$/PrefsHtmlTagColors/IconButton/BackgroundColor3=Background color",
                                                      width: 21);

                                    edit_text(characters: 8,
                                              identifier: "IDC_EDIT_HIDDEN_CHARS",
                                              tab_next_node: "IDC_EDIT_CHANGE_HIGHLIGHT");
                                }

                                row(spacing: 5)
                                {
                                    ownerdrawn_button(height: 18,
                                                      identifier: "IDC_BUTTON_CHANGE_HIGHLIGHT",
                                                      indent: 2,
                                                      name: "$$$/PrefsHtmlTagColors/IconButton/BackgroundColor4=Background color",
                                                      width: 21);

                                    edit_text(characters: 8,
                                              identifier: "IDC_EDIT_CHANGE_HIGHLIGHT");
                                }
                                
                                row(spacing: 5)
                                {
                                    ownerdrawn_button(height: 18,
                                                      identifier: "IDC_BUTTON_SELECTION_BACKGROUND",
                                                      indent: 2,
                                                      name: "$$$/PrefsHtmlTagColors/IconButton/BackgroundColor5=Background color",
                                                      width: 21);

                                    edit_text(characters: 8,
                                              identifier: "IDC_EDIT_SELECTION_BACKGROUND");
                                }
                               
                                placeholder(height: 31);
                            }
                        }
                    }
                }
            }
        }
    }
}
