{
  "Type": "Panel",
  "Id": "keybind_settings",
  "Width": "100%",
  "Height": "100%",
  "HorizontalAlignment": "Stretch",
  "VerticalAlignment": "Stretch",
  "Background": "rgba(0,0,0,0.85)",
  "Classes": [
    "ps-panel--fill"
  ],
  "Padding": "16",
  "Children": [
    {
      "Type": "Grid",
      "Id": "keybind_settings_layout",
      "Width": "100%",
      "Height": "100%",
      "HorizontalAlignment": "Stretch",
      "VerticalAlignment": "Stretch",
      "ColumnDefinitions": [
        "1fr"
      ],
      "RowDefinitions": [
        "auto",
        "auto",
        "1fr",
        "auto"
      ],
      "Gap": 8,
      "Children": [
        {
          "Type": "Label",
          "Grid.Column": 0,
          "Grid.Row": 0,
          "Text": "Keybindings",
          "Style": "Label.Title",
          "Margin": "0 0 10 0"
        },
        {
          "Type": "Input",
          "Id": "keybind_search",
          "Grid.Column": 0,
          "Grid.Row": 1,
          "Placeholder": "Search",
          "Command": "core.keybind_set_filter",
          "CommitOnInput": true,
          "ShowClearButton": true,
          "Width": "100%"
        },
        {
          "Type": "DataGrid",
          "Id": "keybind_grid",
          "Grid.Column": 0,
          "Grid.Row": 2,
          "SelectionMode": "None",
          "Height": "100%",
          "Columns": [
            {
              "Header": "Action Description",
              "Field": "action",
              "Width": "1fr"
            },
            {
              "Header": "Binding Controls",
              "Field": "binding",
              "Width": "240px"
            }
          ],
          "Rows": []
        },
        {
          "Type": "StackPanel",
          "Grid.Column": 0,
          "Grid.Row": 3,
          "Orientation": "Horizontal",
          "HorizontalAlignment": "Right",
          "Gap": 8,
          "Children": [
            {
              "Type": "Button",
              "Id": "btn_close_keybind_settings",
              "Text": "Back",
              "Width": "140px",
              "Command": "core.settings"
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "keybind_capture_modal",
      "IsVisible": false,
      "IsDismissible": true,
      "CloseOnBackdropClick": true,
      "CloseOnEscape": false,
      "CloseCommand": "core.input.capture_cancel",
      "CloseCommandPayload": {
        "actionId": ""
      },
      "Size": "Small",
      "BadgeText": "Bind",
      "BadgeVariant": "edit",
      "Children": [
        {
          "Type": "StackPanel",
          "Id": "keybind_capture_modal_body",
          "Orientation": "Vertical",
          "Gap": 8,
          "Children": [
            {
              "Type": "Label",
              "Id": "keybind_capture_prompt",
              "Text": "Press any key to bind..."
            },
            {
              "Type": "Label",
              "Id": "keybind_capture_mods",
              "Text": "Modifiers: (none)"
            },
            {
              "Type": "Alert",
              "Id": "keybind_capture_conflict_alert",
              "Severity": "Warning",
              "Title": "Conflict",
              "Message": "",
              "IsDismissible": false,
              "IsVisible": false
            }
          ]
        }
      ]
    }
  ]
}
