/********************************************************
+*   (c) Mojang. All rights reserved                       *
+*   (c) Microsoft. All rights reserved.                   *
+*********************************************************/

{
  "namespace": "common_toggles",

  "content_toggle_image_panel": {
    "ignored": "$ignore_content_toggle_image",
    "type": "panel",
    "size": [ 24, "100%" ],
    "controls": [
      {
        "icon": {
          "type": "image",
          "size": [ 24, 24 ],
          "texture": "$content_toggle_image"
        }
      }
    ]
  },

  "content_toggle_label_panel": {
    "type": "panel",
    "size": [ "fill", "100%" ],
    "controls": [
      {
        "toggle_label": {
          "type": "label",
          "size": [ "100%", 10 ],
          "anchor_from": "left_middle",
          "anchor_to": "left_middle",
          "text_alignment": "left",
          "color": "$text_color",
          "$content_toggle_label|default": "#content_toggle_label",
          "text": "$content_toggle_label",
          "$content_toggle_label_binding_type|default": "none",
          "bindings": [
            {
              "binding_type": "$content_toggle_label_binding_type",
              "binding_collection_name": "$toggle_grid_collection_name",
              "binding_name": "$content_toggle_label"
            }
          ]
        }
      }
    ]
  },

  "content_toggle_icon_panel": {
    "type": "panel",
    "$content_toggle_icon_panel_size|default": [ 10, "100%" ],
    "size": "$content_toggle_icon_panel_size",

    "$checked_toggle_icon|default": "textures/ui/checkbox_check",
    "$checked_hover_toggle_icon|default": "textures/ui/checkbox_checkHover",
    "$unchecked_toggle_icon|default": "textures/ui/checkbox_space",
    "$unchecked_hover_toggle_icon|default": "textures/ui/checkbox_spaceHover",

    "controls": [
      {
        "content_toggle_image": {
          "type": "image",
          "$content_toggle_icon_size|default": [ 10, 10 ],
          "size": "$content_toggle_icon_size",

          "$content_toggle_icon|default": "$checked_toggle_icon",
          "variables": [
            {
              "requires": "$toggle_checked_hover",
              "$content_toggle_icon": "$checked_hover_toggle_icon"
            },
            {
              "requires": "$toggle_unchecked",
              "$content_toggle_icon": "$unchecked_toggle_icon"
            },
            {
              "requires": "$toggle_unchecked_hover",
              "$content_toggle_icon": "$unchecked_hover_toggle_icon"
            }
          ],

          "texture": "$content_toggle_icon"
        }
      }
    ]
  },

  "toggle_content_panel": {
    "type": "stack_panel",
    "orientation": "horizontal",
    "size": [ "100% - 4px", "100% - 4px" ],
    "layer": 3,
    "$ignore_content_toggle_image|default": false,
    "controls": [
      {
        "toggle_image_panel@common_toggles.content_toggle_image_panel": {}
      },
      {
        "toggle_image_padding_label": {
          "ignored": "$ignore_content_toggle_image",
          "type": "panel",
          "size": [ 4, "100%" ]
        }
      },
      {
        "toggle_label_panel@common_toggles.content_toggle_label_panel": {}
      },
      {
        "toggle_label_padding_toggle_icon": {
          "type": "panel",
          "size": [ 6, "100%" ]
        }
      },
      {
        "toggle_icon@common_toggles.content_toggle_icon_panel": {}
      }
    ]
  },

  /////////////////////////////////
  //
  //  TOGGLE BUTTON NO COLLECTION
  //
  /////////////////////////////////

  "light_text_toggle@common_toggles.light_ui_toggle": {
    "$button_type_panel": "common_buttons.new_ui_binding_button_label",
    "$button_offset|default": [ 0, 0 ],
    "$button_text|default": "",
    "$pressed_alpha|default": 1,

    // For text bindings
    "$button_text_binding_type|default": "none",
    "$button_text_grid_collection_name|default": "",
    "$button_binding_condition|default": "none"
  },

  "light_image_toggle@common_toggles.light_ui_toggle": {
    "$button_type_panel": "common_buttons.button_content_panel",
    "$button_content|default": "common_toggles.toggle_image",
    "$button_offset|default": [ 0, 0 ]
  },

  "dark_text_toggle@common_toggles.dark_ui_toggle": {
    "$button_type_panel": "common_buttons.new_ui_binding_button_label",
    "$button_offset|default": [ 0, 0 ],
    "$button_text|default": "",
    "$pressed_alpha|default": 1,

    // For text bindings
    "$button_text_binding_type|default": "none",
    "$button_text_grid_collection_name|default": "",
    "$button_binding_condition|default": "none"
  },

  "dark_image_toggle@common_toggles.dark_ui_toggle": {
    "$button_type_panel": "common_buttons.button_content_panel",
    "$button_content|default": "common_toggles.toggle_image",
    "$button_offset|default": [ 0, 0 ]
  },

  "dark_content_toggle@common_toggles.dark_ui_toggle": {
    "$button_type_panel": "common_buttons.button_content_panel",
    "$button_content|default": "common_toggles.toggle_content_panel",
    "$button_offset|default": [ 0, 0 ]
  },

  "dark_ui_toggle@common_toggles.light_ui_toggle": {
    "$template_toggle": "common_toggles.dark_template_toggle"
  },

  "dark_template_toggle@common_toggles.light_template_toggle": {
    "$default_texture|default": "textures/ui/button_borderless_dark",
    "$hover_texture|default": "textures/ui/button_borderless_darkpressednohover",
    "$pressed_texture|default": "textures/ui/button_borderless_darkhover",
    "$pressed_no_hover_texture|default": "textures/ui/button_borderless_darkpressed",

    "$default_text_color|default": "$dark_toggle_default_text_color",
    "$hover_text_color|default": "$dark_toggle_hover_text_color",
    "$default_checked_text_color|default": "$dark_toggle_checked_default_text_color",
    "$hover_checked_text_color|default": "$dark_toggle_checked_hover_text_color",

    "$default_glyph_color|default": "$dark_glyph_toggle_default_color",
    "$hover_glyph_color|default": "$dark_glyph_toggle_hover_color",
    "$default_checked_glyph_color|default": "$dark_glyph_toggle_checked_default_color",
    "$hover_checked_glyph_color|default": "$dark_glyph_toggle_checked_hover_color"
  },

  "light_template_toggle@common.toggle": {
    "$unchecked_control|default": "common_toggles.toggle_unchecked",
    "$checked_control|default": "common_toggles.toggle_checked",
    "$unchecked_hover_control|default": "common_toggles.toggle_unchecked_hover",
    "$checked_hover_control|default": "common_toggles.toggle_checked_hover",
    "$unchecked_locked_control|default": "common_toggles.toggle_locked",
    "$unchecked_locked_hover_control|default": "common_toggles.toggle_locked",
    "$checked_locked_control|default": "common_toggles.toggle_locked",
    "$checked_locked_hover_control|default": "common_toggles.toggle_locked",

    "$default_texture|default": "textures/ui/button_borderless_light",
    "$hover_texture|default": "textures/ui/button_borderless_lightpressednohover",
    "$pressed_texture|default": "textures/ui/button_borderless_lighthover",
    "$pressed_no_hover_texture|default": "textures/ui/button_borderless_lightpressed",
    "$locked_texture|default": "textures/ui/disabledButtonNoBorder",

    "$default_text_color|default": "$light_toggle_default_text_color",
    "$hover_text_color|default": "$light_toggle_hover_text_color",
    "$default_checked_text_color|default": "$light_toggle_checked_default_text_color",
    "$hover_checked_text_color|default": "$light_toggle_checked_hover_text_color",

    "$default_glyph_color|default": "$light_glyph_toggle_default_color",
    "$hover_glyph_color|default": "$light_glyph_toggle_hover_color",
    "$default_checked_glyph_color|default": "$light_glyph_toggle_checked_default_color",
    "$hover_checked_glyph_color|default": "$light_glyph_toggle_checked_hover_color",

    "$checked_image|default": "common.empty_panel",
    "$unchecked_image|default": "common.empty_panel",
    "$default_border_color": "$light_border_toggle_default_color",
    "$hover_border_color": "$light_border_toggle_hover_color",
    "$locked_alpha": 1,

    "$toggle_binding_type|default": "none",
    "$toggle_enabled_binding_type|default": "none",
    "$toggle_tab_focus_binding_type|default": "none",
    "$toggle_tab_focus_id_binding_type|default": "none",
    "$toggle_tab_focus_override_left_binding_type|default": "none",
    "$toggle_tab_focus_override_right_binding_type|default": "none",
    "$toggle_tab_focus_override_down_binding_type|default": "none",
    "$toggle_tab_focus_override_up_binding_type|default": "none",
    "$toggle_on_hover_binding_type|default": "none",
    "$toggle_tab_focus_binding_name|default": "",
    "$toggle_tab_focus_id_binding_name|default": "",
    "$toggle_tab_focus_override_right|default": "#focus_override_right",
    "$toggle_tab_focus_override_down|default": "#focus_override_down",
    "$toggle_tab_focus_override_up|default": "#focus_override_up",
    "$toggle_tab_focus_override_left|default": "#focus_override_left",
    "$toggle_on_hover_binding_name|default": "",
    "$toggle_focus_wrap_enabled|default": true,
    "$toggle_focus_magnet_enabled|default": true,

    "$toggle_unchecked|default": false,
    "$toggle_unchecked_hover|default": false,
    "$toggle_checked_hover|default": false,

    "$button_mappings|default": [
      {
        "from_button_id": "button.menu_select",
        "to_button_id": "button.menu_select",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.menu_ok",
        "to_button_id": "button.menu_ok",
        "mapping_type": "focused"
      },
      {
        "ignored": "(not $enable_directional_toggling)",
        "from_button_id": "button.menu_left",
        "to_button_id": "$toggle_off_button",
        "mapping_type": "pressed",
        "input_mode_condition": "gamepad_and_not_gaze"
      },
      {
        "ignored": "(not $enable_directional_toggling)",
        "from_button_id": "button.menu_right",
        "to_button_id": "$toggle_on_button",
        "mapping_type": "pressed",
        "input_mode_condition": "gamepad_and_not_gaze"
      }
    ],

    "focus_wrap_enabled": "$toggle_focus_wrap_enabled",
    "focus_magnet_enabled": "$toggle_focus_magnet_enabled",

    "$custom_toggle_binding_type|default": "none",
    "$custom_toggle_binding_condition|default": "visible",
    "$custom_toggle_state_binding_name|default": "",
    "$custom_toggle_state_binding_name_override|default": "",

    "button_mappings": "$button_mappings",

    "bindings": [
      {
        "binding_type": "$toggle_binding_type",
        "binding_condition": "$toggle_binding_condition",
        "binding_collection_name": "$toggle_grid_collection_name",
        "binding_name": "$toggle_state_binding_name",
        "binding_name_override": "#toggle_state"
      },
      {
        "binding_type": "$toggle_enabled_binding_type",
        "binding_condition": "$toggle_enabled_binding_condition",
        "binding_collection_name": "$toggle_grid_collection_name",
        "binding_name": "$toggle_enabled_binding_name",
        "binding_name_override": "#enabled"
      },
      {
        "binding_collection_name": "$toggle_grid_collection_name",
        "binding_type": "collection_details"
      },
      {
        "binding_type": "$toggle_tab_focus_binding_type",
        "binding_name": "$toggle_tab_focus_binding_name",
        "binding_name_override": "#default_focus_precedence"
      },
      {
        "binding_type": "$toggle_tab_focus_id_binding_type",
        "binding_collection_name": "$toggle_grid_collection_name",
        "binding_name": "$toggle_tab_focus_id_binding_name",
        "binding_name_override": "#focus_identifier"
      },
      {
        "binding_type": "$toggle_tab_focus_override_right_binding_type",
        "binding_collection_name": "$toggle_grid_collection_name",
        "binding_name": "$toggle_tab_focus_override_right",
        "binding_name_override": "#focus_change_right"
      },
      {
        "binding_type": "$toggle_tab_focus_override_left_binding_type",
        "binding_collection_name": "$toggle_grid_collection_name",
        "binding_name": "$toggle_tab_focus_override_left",
        "binding_name_override": "#focus_change_left"
      },
      {
        "binding_type": "$toggle_tab_focus_override_down_binding_type",
        "binding_collection_name": "$toggle_grid_collection_name",
        "binding_name": "$toggle_tab_focus_override_down",
        "binding_name_override": "#focus_change_down"
      },
      {
        "binding_type": "$toggle_tab_focus_override_up_binding_type",
        "binding_collection_name": "$toggle_grid_collection_name",
        "binding_name": "$toggle_tab_focus_override_up",
        "binding_name_override": "#focus_change_up"
      },
      {
        "binding_type": "$toggle_on_hover_binding_type",
        "binding_name": "$toggle_on_hover_binding_name",
        "binding_name_override": "#toggle_on_hover"
      },
      {
        "binding_type": "$custom_toggle_binding_type",
        "binding_condition": "$custom_toggle_binding_condition",
        "binding_collection_name": "$toggle_grid_collection_name",
        "binding_name": "$custom_toggle_state_binding_name",
        "binding_name_override": "$custom_toggle_state_binding_name_override"
      }
    ]
  },

  "light_ui_toggle": {
    "type": "panel",

    "$toggle_view_binding_name|default": "this_toggle",
    "$template_toggle|default": "common_toggles.light_template_toggle",

    "controls": [
      {
        // done as a child to allow for parent bindings
        "$toggle_view_binding_name@$template_toggle": {
        }
      }
    ]
  },

  "switch_toggle@common_toggles.light_image_toggle": {
    "$unchecked_control": "common_toggles.toggle_unchecked",
    "$checked_control": "common_toggles.toggle_checked",
    "$unchecked_hover_control": "common_toggles.toggle_unchecked_hover",
    "$checked_hover_control": "common_toggles.toggle_checked_hover",
    "$unchecked_locked_control": "common_toggles.toggle_unchecked_locked",
    "$unchecked_locked_hover_control": "common_toggles.toggle_unchecked_locked",
    "$checked_locked_control": "common_toggles.toggle_checked_locked",
    "$checked_locked_hover_control": "common_toggles.toggle_checked_locked",

    "$default_texture": "textures/ui/toggle_off",
    "$hover_texture": "textures/ui/toggle_on",
    "$pressed_texture": "textures/ui/toggle_off_hover",
    "$pressed_no_hover_texture": "textures/ui/toggle_on_hover",
    "$unchecked_locked_texture": "textures/ui/toggle_off",
    "$checked_locked_texture": "textures/ui/toggle_on",

    "$border_visible": false,
    "$locked_alpha": 0.5
  },


  /////////////////////////////////
  //
  //  TOGGLE BUTTON FOR COLLECTION
  //
  /////////////////////////////////

  "light_text_toggle_collection@common_toggles.light_ui_toggle_collection": {
    "$button_type_panel": "common_buttons.new_ui_binding_button_label",
    "$button_offset|default": [ 0, 0 ],
    "$button_text|default": "",
    "$pressed_alpha|default": 1,

    // For text bindings
    "$button_text_binding_type|default": "none",
    "$button_text_grid_collection_name|default": "",
    "$button_binding_condition|default": "none"
  },

  "light_image_toggle_collection@common_toggles.light_ui_toggle_collection": {
    "$button_type_panel": "common_buttons.button_content_panel",
    "$button_content|default": "common_toggles.toggle_image",
    "$button_offset|default": [ 0, 0 ]
  },

  "dark_text_toggle_collection@common_toggles.dark_ui_toggle_collection": {
    "$button_type_panel": "common_buttons.new_ui_binding_button_label",
    "$button_offset|default": [ 0, 0 ],
    "$button_text|default": "",
    "$pressed_alpha|default": 1,

    // For text bindings
    "$button_text_binding_type|default": "none",
    "$button_text_grid_collection_name|default": "",
    "$button_binding_condition|default": "none"
  },

  "dark_image_toggle_collection@common_toggles.dark_ui_toggle_collection": {
    "$button_type_panel": "common_buttons.button_content_panel",
    "$button_content|default": "common_toggles.toggle_image",
    "$button_offset|default": [ 0, 0 ]
  },


  "dark_ui_toggle_collection@common_toggles.light_ui_toggle_collection": {
    "$default_texture|default": "textures/ui/button_borderless_dark",
    "$hover_texture|default": "textures/ui/button_borderless_darkpressednohover",
    "$pressed_texture|default": "textures/ui/button_borderless_darkhover",
    "$pressed_no_hover_texture|default": "textures/ui/button_borderless_darkpressed",

    "$default_text_color|default": "$dark_toggle_default_text_color",
    "$hover_text_color|default": "$dark_toggle_hover_text_color",
    "$default_checked_text_color|default": "$dark_toggle_checked_default_text_color",
    "$hover_checked_text_color|default": "$dark_toggle_checked_hover_text_color",

    "$default_glyph_color|default": "$dark_glyph_toggle_default_color",
    "$hover_glyph_color|default": "$dark_glyph_toggle_hover_color",
    "$default_checked_glyph_color|default": "$dark_glyph_toggle_checked_default_color",
    "$hover_checked_glyph_color|default": "$dark_glyph_toggle_checked_hover_color"
  },

  "light_ui_toggle_collection": {
    "type": "panel",

    "$unchecked_control|default": "common_toggles.toggle_unchecked",
    "$checked_control|default": "common_toggles.toggle_checked",
    "$unchecked_hover_control|default": "common_toggles.toggle_unchecked_hover",
    "$checked_hover_control|default": "common_toggles.toggle_checked_hover",
    "$unchecked_locked_control|default": "common_toggles.toggle_locked",
    "$unchecked_locked_hover_control|default": "common_toggles.toggle_locked",
    "$checked_locked_control|default": "common_toggles.toggle_locked",
    "$checked_locked_hover_control|default": "common_toggles.toggle_locked",

    "$default_texture|default": "textures/ui/button_borderless_light",
    "$hover_texture|default": "textures/ui/button_borderless_lightpressednohover",
    "$pressed_texture|default": "textures/ui/button_borderless_lighthover",
    "$pressed_no_hover_texture|default": "textures/ui/button_borderless_lightpressed",
    "$locked_texture|default": "textures/ui/disabledButtonNoBorder",

    "$default_text_color|default": "$light_toggle_default_text_color",
    "$hover_text_color|default": "$light_toggle_hover_text_color",
    "$default_checked_text_color|default": "$light_toggle_checked_default_text_color",
    "$hover_checked_text_color|default": "$light_toggle_checked_hover_text_color",

    "$default_glyph_color|default": "$light_glyph_toggle_default_color",
    "$hover_glyph_color|default": "$light_glyph_toggle_hover_color",
    "$default_checked_glyph_color|default": "$light_glyph_toggle_checked_default_color",
    "$hover_checked_glyph_color|default": "$light_glyph_toggle_checked_hover_color",

    "$checked_image|default": "common.empty_panel",
    "$unchecked_image|default": "common.empty_panel",
    "$default_border_color": "$dark_border_toggle_default_color",
    "$hover_border_color": "$dark_border_toggle_hover_color",
    "$locked_alpha": 1,

    "$toggle_binding_type|default": "none",
    "$toggle_enabled_binding_type|default": "none",
    "$toggle_tab_focus_binding_type|default": "none",
    "$toggle_on_hover_binding_type|default": "none",
    "$toggle_view_binding_name|default": "this_toggle",
    "$toggle_tab_focus_binding_name|default": "",
    "$toggle_on_hover_binding_name|default": "",

    "$toggle_unchecked|default": false,
    "$toggle_unchecked_hover|default": false,
    "$toggle_checked|default": false,
    "$toggle_checked_hover|default": false,
    "$toggle_locked|default": false,

    "$toggle_focus_wrap_enabled|default": true,
    "$toggle_focus_magnet_enabled|default": true,

    "controls": [
      {
        // done as a child to allow for parent bindings
        "$toggle_view_binding_name@common.toggle": {
          "focus_wrap_enabled": false,
          "bindings": [
            {
              "binding_type": "$toggle_binding_type",
              "binding_condition": "$toggle_binding_condition",
              "binding_collection_name": "$toggle_grid_collection_name",
              "binding_name": "$toggle_state_binding_name",
              "binding_name_override": "#toggle_state"
            },
            {
              "binding_type": "$toggle_enabled_binding_type",
              "binding_condition": "$toggle_enabled_binding_condition",
              "binding_collection_name": "$toggle_grid_collection_name",
              "binding_name": "$toggle_enabled_binding_name",
              "binding_name_override": "#enabled"
            },
            {
              "binding_type": "collection_details",
              "binding_collection_name": "$toggle_grid_collection_name"
            },
            {
              "binding_type": "$toggle_tab_focus_binding_type",
              "binding_name": "$toggle_tab_focus_binding_name",
              "binding_name_override": "#default_focus_precedence"
            },
            {
              "binding_type": "$toggle_on_hover_binding_type",
              "binding_name": "$toggle_on_hover_binding_name",
              "binding_name_override": "#toggle_on_hover"
            }
          ]
        }
      }
    ]
  },

  "switch_toggle_collection@common_toggles.light_image_toggle_collection": {
    "$unchecked_control": "common_toggles.toggle_unchecked",
    "$checked_control": "common_toggles.toggle_checked",
    "$unchecked_hover_control": "common_toggles.toggle_unchecked_hover",
    "$checked_hover_control": "common_toggles.toggle_checked_hover",
    "$unchecked_locked_control": "common_toggles.toggle_unchecked_locked",
    "$unchecked_locked_hover_control": "common_toggles.toggle_unchecked_locked",
    "$checked_locked_control": "common_toggles.toggle_checked_locked",
    "$checked_locked_hover_control": "common_toggles.toggle_checked_locked",

    "$default_texture": "textures/ui/toggle_off",
    "$hover_texture": "textures/ui/toggle_on",
    "$pressed_texture": "textures/ui/toggle_off_hover",
    "$pressed_no_hover_texture": "textures/ui/toggle_on_hover",
    "$unchecked_locked_texture": "textures/ui/toggle_off",
    "$checked_locked_texture": "textures/ui/toggle_on",

    "$border_visible": false,
    "$locked_alpha": 0.5
  },

  "toggle_unchecked@common_buttons.new_ui_button_panel": {
    "$new_ui_button_texture": "$default_texture",
    "$content_alpha": 1,
    "$text_color": "$default_text_color",
    "$glyph_color": "$default_glyph_color",
    "$toggle_image": "$unchecked_image",
    "$border_layer": 1,
    "$border_color": "$default_border_color",
    "$toggle_unchecked": true,
    "layer": 1
  },

  "toggle_checked@common_buttons.new_ui_button_panel": {
    "$new_ui_button_texture": "$hover_texture",
    "$content_alpha": 1,
    "$text_color": "$default_checked_text_color",
    "$glyph_color": "$default_checked_glyph_color",
    "$toggle_image": "$checked_image",
    "$border_layer": 2,
    "$border_color": "$default_border_color",
    "$toggle_checked": true,
    "layer": 2
  },

  "toggle_unchecked_hover@common_buttons.new_ui_button_panel": {
    "$new_ui_button_texture": "$pressed_texture",
    "$content_alpha": 1,
    "$text_color": "$hover_text_color",
    "$glyph_color": "$hover_glyph_color",
    "$toggle_image": "$unchecked_image",
    "$border_layer": 3,
    "$border_color": "$hover_border_color",
    "$toggle_unchecked_hover": true,
    "layer": 3
  },

  "toggle_checked_hover@common_buttons.new_ui_button_panel": {
    "$new_ui_button_texture": "$pressed_no_hover_texture",
    "$content_alpha": 1,
    "$text_color": "$hover_checked_text_color",
    "$glyph_color": "$hover_checked_glyph_color",
    "$toggle_image": "$checked_image",
    "$border_layer": 4,
    "$border_color": "$hover_border_color",
    "$toggle_checked_hover": true,
    "layer": 4
  },

  "toggle_locked@common_buttons.new_ui_button_panel": {
    "$new_ui_button_texture": "$locked_texture",
    "$content_alpha": "$locked_alpha",
    "$text_color": "$default_text_color",
    "$glyph_color": "$default_glyph_color",
    "$toggle_image": "$unchecked_image",
    "$button_image": "common_buttons.locked_button_image",
    "$border_layer": 1,
    "$border_color": "$default_border_color",
    "$toggle_locked": true,
    "layer": 1
  },

  "toggle_unchecked_locked@common_buttons.new_ui_button_panel": {
    "$new_ui_button_texture": "$unchecked_locked_texture",
    "$content_alpha": "$locked_alpha",
    "$text_color": "$default_text_color",
    "$glyph_color": "$default_glyph_color",
    "$toggle_image": "$unchecked_image",
    "$border_layer": 1,
    "$border_color": "$default_border_color",
    "$toggle_locked": true,
    "layer": 1
  },

  "toggle_checked_locked@common_buttons.new_ui_button_panel": {
    "$new_ui_button_texture": "$checked_locked_texture",
    "$content_alpha": "$locked_alpha",
    "$text_color": "$default_text_color",
    "$glyph_color": "$default_glyph_color",
    "$toggle_image": "$checked_image",
    "$border_layer": 1,
    "$border_color": "$default_border_color",
    "$toggle_locked": true,
    "layer": 1
  },

  "toggle_image": {
    "type": "panel",
    "controls": [
      { "image@$toggle_image": {} }
    ]
  },

  /////////////////////////////////
  //
  //  RADIO IMAGES
  //
  /////////////////////////////////

  "radio_off_icon": {
    "type": "image",
    "texture": "textures/ui/radio_off",
    "size": [ 10, 10 ]
  },

  "radio_off_hover_icon": {
    "type": "image",
    "texture": "textures/ui/radio_off_hover",
    "size": [ 10, 10 ]
  },

  "radio_on_icon": {
    "type": "image",
    "texture": "textures/ui/radio_on",
    "size": [ 10, 10 ]
  },

  "radio_on_hover_icon": {
    "type": "image",
    "texture": "textures/ui/radio_on_hover",
    "size": [ 10, 10 ]
  }
}