{
  "Type": "Window",
  "Id": "naming_policy",
  "Title": "Naming Policy",
  "Icon": "🏷️",
  "State": "Maximized",
  "DisplayLocation": "Taskbar",
  "WindowGroup": "static_menu",
  "IsRestorable": false,
  "IsMinimizable": false,
  "Width": "100%",
  "Height": "100%",
  "Children": [
    {
      "Type": "Grid",
      "Id": "naming_policy_layout",
      "Width": "100%",
      "Height": "100%",
      "HorizontalAlignment": "Stretch",
      "VerticalAlignment": "Stretch",
      "ColumnDefinitions": [
        "1fr"
      ],
      "RowDefinitions": [
        "1fr",
        "auto"
      ],
      "Children": [
        {
          "Type": "ScrollBox",
          "Grid.Column": 0,
          "Grid.Row": 0,
          "Id": "naming_policy_scroll",
          "Axis": "Vertical",
          "Width": "100%",
          "Height": "1fr",
          "Padding": "0",
          "Background": "transparent",
          "Children": [
            {
              "Type": "StackPanel",
              "Id": "naming_policy_rows",
              "Orientation": "Vertical",
              "Gap": 8,
              "Width": "100%",
              "Height": "Auto",
              "Children": [
                {
                  "Type": "StackPanel",
                  "Orientation": "Horizontal",
                  "Gap": 8,
                  "Children": [
                    {
                      "Type": "Label",
                      "Text": "Faction",
                      "Width": "180px",
                      "Classes": [
                        "ps-text-secondary"
                      ]
                    },
                    {
                      "Type": "Select",
                      "Id": "policy_race",
                      "Width": "100%",
                      "Value": "",
                      "Options": [],
                      "Command": "core.naming_policy_select_race"
                    }
                  ]
                },
                {
                  "Type": "StackPanel",
                  "Orientation": "Horizontal",
                  "Gap": 8,
                  "Children": [
                    {
                      "Type": "Label",
                      "Text": "Ship Class Theme",
                      "Width": "180px",
                      "Classes": [
                        "ps-text-secondary"
                      ]
                    },
                    {
                      "Type": "Select",
                      "Id": "policy_ship_class",
                      "Width": "100%",
                      "Value": "",
                      "Options": [],
                      "Command": "core.naming_policy_set"
                    }
                  ]
                },
                {
                  "Type": "StackPanel",
                  "Orientation": "Horizontal",
                  "Gap": 8,
                  "Children": [
                    {
                      "Type": "Label",
                      "Text": "Ship Name Theme",
                      "Width": "180px",
                      "Classes": [
                        "ps-text-secondary"
                      ]
                    },
                    {
                      "Type": "Select",
                      "Id": "policy_ship_name",
                      "Width": "100%",
                      "Value": "",
                      "Options": [],
                      "Command": "core.naming_policy_set"
                    }
                  ]
                },
                {
                  "Type": "StackPanel",
                  "Orientation": "Horizontal",
                  "Gap": 8,
                  "Children": [
                    {
                      "Type": "Label",
                      "Text": "Colony Name Theme",
                      "Width": "180px",
                      "Classes": [
                        "ps-text-secondary"
                      ]
                    },
                    {
                      "Type": "Select",
                      "Id": "policy_colony_name",
                      "Width": "100%",
                      "Value": "",
                      "Options": [],
                      "Command": "core.naming_policy_set"
                    }
                  ]
                },
                {
                  "Type": "StackPanel",
                  "Orientation": "Horizontal",
                  "Gap": 8,
                  "Children": [
                    {
                      "Type": "Label",
                      "Text": "Race Name Theme",
                      "Width": "180px",
                      "Classes": [
                        "ps-text-secondary"
                      ]
                    },
                    {
                      "Type": "Select",
                      "Id": "policy_race_name",
                      "Width": "100%",
                      "Value": "",
                      "Options": [],
                      "Command": "core.naming_policy_set"
                    }
                  ]
                },
                {
                  "Type": "StackPanel",
                  "Orientation": "Horizontal",
                  "Gap": 8,
                  "Children": [
                    {
                      "Type": "Label",
                      "Text": "Leader First Name Theme",
                      "Width": "180px",
                      "Classes": [
                        "ps-text-secondary"
                      ]
                    },
                    {
                      "Type": "Select",
                      "Id": "policy_leader_first",
                      "Width": "100%",
                      "Value": "",
                      "Options": [],
                      "Command": "core.naming_policy_set"
                    }
                  ]
                },
                {
                  "Type": "StackPanel",
                  "Orientation": "Horizontal",
                  "Gap": 8,
                  "Children": [
                    {
                      "Type": "Label",
                      "Text": "Leader Last Name Theme",
                      "Width": "180px",
                      "Classes": [
                        "ps-text-secondary"
                      ]
                    },
                    {
                      "Type": "Select",
                      "Id": "policy_leader_last",
                      "Width": "100%",
                      "Value": "",
                      "Options": [],
                      "Command": "core.naming_policy_set"
                    }
                  ]
                },
                {
                  "Type": "StackPanel",
                  "Orientation": "Horizontal",
                  "Gap": 8,
                  "Children": [
                    {
                      "Type": "Label",
                      "Text": "Leader Sequential",
                      "Width": "180px",
                      "Classes": [
                        "ps-text-secondary"
                      ]
                    },
                    {
                      "Type": "Checkbox",
                      "Id": "policy_leader_sequential",
                      "Label": "Use sequential pools",
                      "Command": "core.naming_policy_toggle_leader_sequential"
                    }
                  ]
                },
                {
                  "Type": "StackPanel",
                  "Orientation": "Horizontal",
                  "Gap": 8,
                  "Children": [
                    {
                      "Type": "Label",
                      "Text": "Rank Theme",
                      "Width": "180px",
                      "Classes": [
                        "ps-text-secondary"
                      ]
                    },
                    {
                      "Type": "Select",
                      "Id": "policy_rank_theme",
                      "Width": "100%",
                      "Value": "",
                      "Options": [],
                      "Command": "core.naming_policy_set"
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "Type": "StackPanel",
          "Grid.Column": 0,
          "Grid.Row": 1,
          "Orientation": "Horizontal",
          "HorizontalAlignment": "Right",
          "VerticalAlignment": "Center",
          "Gap": 8,
          "Children": [
            {
              "Type": "Button",
              "Id": "btn_policy_cancel",
              "Text": "Cancel",
              "Command": "core.naming_policy_cancel",
              "Width": "120px"
            },
            {
              "Type": "Button",
              "Id": "btn_policy_save",
              "Text": "Save",
              "Command": "core.naming_policy_save",
              "Width": "120px"
            }
          ]
        }
      ]
    }
  ],
  "Background": "rgba(0,0,0,0.85)",
  "Padding": "16"
}