{
  "namespace": "feed_common",

  //--------------------------------------------------------------------------------
  // Renderers
  //--------------------------------------------------------------------------------

  "top_bar_gradient": {
    "type": "custom",
    "renderer": "gradient_renderer",
    "color1": "$transparent_dark_gradient_start_color",
    "color2": "$transparent_dark_gradient_end_color",
    "variables": [
      {
        "requires": "$is_holographic",
        "visible": false
      }
    ]
  },

  //--------------------------------------------------------------------------------
  // Common labels
  //--------------------------------------------------------------------------------
  "label": {
    "type": "label",
    "color": "$feed_text_color"
  },

  "smooth_label@feed_common.label": {
    "size": [ "100%", "default" ],
    "font_type": "smooth",
    "text_alignment": "center"
  },


  "share_label@feed_common.smooth_label": {
    "text": "feed.share",
    "anchor_from": "center",
    "anchor_to": "center",
    "text_alignment": "center",
    "size": [ "100%", 15 ],
    "offset": [ 0, 2 ]
  },

  "title_label@feed_common.label": {
    "size": [ "default", "default" ],
    "anchor_from": "top_middle",
    "anchor_to": "top_middle",
    "alpha": 0.5,
    "offset": [ 0, 10 ]
  },


  "feed_label@feed_common.label": {
    "size": [ "80%", "default" ],
    "layer": 0,
    "anchor_from": "center",
    "anchor_to": "center",
    "font_type": "smooth"
  },

  "item_label@feed_common.label": {
    "size": [ "default", "default" ],
    "layer": 0,
    "anchor_from": "center",
    "anchor_to": "center",
    "font_type": "smooth"
  },

  "return_label@feed_common.label": {
    "anchor_from": "center",
    "anchor_to": "center",
    "$return_label_text|default": "feed.return",
    "text": "$return_label_text",
    "alpha": "$content_alpha",
    "text_alignment": "center",
    "layer": 2,
    "size": [ "100%", 15 ],
    "offset": [ 0, 2 ]
  },

  "prev_label@feed_common.label": {
    "size": [ "default", 20 ],
    "offset": [ 0, 5 ],
    "text_alignment": "left",
    "anchor_from": "center",
    "anchor_to": "center",
    "text": "feed.previous",
    "alpha": "$content_alpha",
    "layer": 2
  },

  "next_label@feed_common.label": {
    "size": [ "default", 20 ],
    "offset": [ 0, 5 ],
    "text_alignment": "left",
    "anchor_from": "center",
    "anchor_to": "center",
    "text": "feed.next",
    "alpha": "$content_alpha",
    "layer": 2
  },

  "delete_label@feed_common.smooth_label": {
    "text": "feed.delete",
    "anchor_from": "left_middle",
    "anchor_to": "left_middle",
    "alpha": "@feed_common.anim_box_text",
    "offset": [ 6, 2 ],
    "text_alignment": "left",
    "size": [ "100%", 15 ]
  },

  "report_to_club_label@feed_common.smooth_label": {
    "text": "feed.report_club",
    "anchor_from": "left_middle",
    "anchor_to": "left_middle",
    "alpha": "@feed_common.anim_box_text",
    "offset": [ 6, 2 ],
    "text_alignment": "left",
    "size": [ "100%", 15 ]
  },

  "report_to_xbox_label@feed_common.smooth_label": {
    "text": "feed.report_xbox",
    "anchor_from": "left_middle",
    "anchor_to": "left_middle",
    "alpha": "@feed_common.anim_box_text",
    "offset": [ 6, 2 ],
    "text_alignment": "left",
    "size": [ "100%", 15 ]
  },

  "new_post_header_text": {
    "type": "label",
    "layer": 1,
    "text": "feed.newPost",
    "font_size": "normal",
    "color": "$title_text_color",
    "anchor_from": "center",
    "anchor_to": "center"
  },

  //--------------------------------------------------------------------------------
  // Common Buttons
  //--------------------------------------------------------------------------------

  "feed_button@common_buttons.light_content_button": {
    "anchor_from": "bottom_right",
    "anchor_to": "bottom_right",
    "layer": 2,
    "$default_button_texture": "textures/ui/imagetaggedcornerborder",
    "$locked_button_texture": "textures/ui/imagetaggedcornerborder",
    "$hover_button_texture": "textures/ui/imagetaggedcornergreenhover",
    "$pressed_button_texture": "textures/ui/imagetaggedcornergreenpressed",
    "$default_color": "white",
    "$default_font": "smooth",
    "$button_offset": [ 0, 0 ],
    "$border_visible": false,
    "$default_state_border_visible": false,
    "$hover_state_border_visible": false,
    "$pressed_state_border_visible": false,
    "$locked_state_border_visible": false
  },

  "return_button@common_buttons.transparent_content_button": {
    "layer": 10,
    "size": [ 50, 25 ],
    "offset": [ 5, 0 ],
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "$button_content": "feed_common.return_label",
    "$default_content_alpha": 1,
    "$default_button_alpha": 0,
    "$hover_button_texture": "textures/ui/imagetaggedcornergreenhover",
    "$pressed_button_texture": "textures/ui/imagetaggedcornergreenpressed",
    "bindings": [
      {
        "binding_name": "(not #gamepad_helper_visible)",
        "binding_name_override": "#visible"
      }
    ]
  },

  "prev_button@common_buttons.transparent_content_button": {
    "layer": 10,
    "size": [ 60, 25 ],
    "anchor_from": "bottom_left",
    "anchor_to": "bottom_left",
    "$pressed_button_name": "$prev_button_name",
    "$button_content": "feed_common.prev_label",
    "$default_content_alpha": 1,
    "$default_button_alpha": 0.3,
    "$hover_button_texture": "textures/ui/imagetaggedcornergreenhover",
    "$pressed_button_texture": "textures/ui/imagetaggedcornergreenpressed",
    "$is_prev_visible|default": "#visible",
    "bindings": [
      {
        "binding_name": "$is_prev_visible",
        "binding_name_override": "#visible"
      }
    ]
  },

  "prev_panel": {
    "type": "stack_panel",
    "orientation": "horizontal",
    "$direction_gamepad_button_helper|default": "gamepad_helper@common.gamepad_helper_left_bumper",
    "layer": 10,
    "size": [ 60, 25 ],
    "anchor_from": "bottom_left",
    "anchor_to": "bottom_left",
    "$content_alpha": 1,
    "controls": [
      {
        "$direction_gamepad_button_helper": {
          "offset": [ 0, 4 ],
          "anchor_from": "center",
          "anchor_to": "center",
          "$hide_description|default": true,
          "$gamepad_helper_icon_size|default": [ 18, 18 ]
        }
      },
      {
        "padding_1": {
          "type": "panel",
          "size": [ 3, 0 ]
        }
      },
      {
        "lab_panel": {
          "type": "stack_panel",
          "orientation": "vertical",
          "controls": [
            {
              "vert_pad": {
                "type": "panel",
                "size": [ 0, 4 ]
              }
            },
            {
              "prevlab@feed_common.prev_label": {}
            }
          ]
        }
      }
    ]
  },

  "next_button@common_buttons.transparent_content_button": {
    "layer": 10,
    "size": [ 60, 25 ],
    "anchor_from": "bottom_right",
    "anchor_to": "bottom_right",
    "$pressed_button_name": "$next_button_name",
    "$button_content": "feed_common.next_label",
    "$default_content_alpha": 1,
    "$default_button_alpha": 0.3,

    "$hover_button_texture": "textures/ui/imagetaggedcornergreenhover",
    "$pressed_button_texture": "textures/ui/imagetaggedcornergreenpressed",

    "$is_next_visible|default": "#visible",
    "bindings": [
      {
        "binding_name": "$is_next_visible",
        "binding_name_override": "#visible"
      }
    ]
  },

  "next_panel": {
    "type": "stack_panel",
    "orientation": "horizontal",
    "$direction_gamepad_button_helper|default": "gamepad_helper@common.gamepad_helper_right_bumper",
    "layer": 10,
    "size": [ "100%c", 25 ],
    "anchor_from": "bottom_right",
    "anchor_to": "bottom_right",
    "$content_alpha": 1,
    "controls": [
      {
        "lab_panel2": {
          "type": "stack_panel",
          "orientation": "vertical",
          "size": [ "100%c", 15 ],
          "controls": [
            {
              "vert_pad2": {
                "type": "panel",
                "size": [ 0, 4 ]
              }
            },
            {
              "nextlab@feed_common.next_label": {}
            }
          ]
        }
      },
      {
        "padding_2": {
          "type": "panel",
          "size": [ 2, 0 ]
        }
      },
      {
        "$direction_gamepad_button_helper": {
          "offset": [ 0, 4 ],
          "anchor_from": "center",
          "anchor_to": "center",
          "$hide_description|default": true,
          "$gamepad_helper_icon_size|default": [ 18, 18 ]
        }
      }
    ]
  },

  "like_button@feed_common.feed_button": {
    "size": [ 40, 25 ],
    "$button_content": "feed_common.feed_like_content_panel",
    "$button_mapping_id|default": "",
    "button_mappings": [
      {
        "from_button_id": "button.menu_select",
        "to_button_id": "$button_mapping_id",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.menu_ok",
        "to_button_id": "$button_mapping_id",
        "mapping_type": "focused"
      }
    ]
  },

  "delete_button@feed_common.feed_button": {
    "size": [ 135, 25 ],
    "$button_content": "feed_common.delete_label"
  },

  "report_to_xbox_button@feed_common.feed_button": {
    "size": [ 135, 25 ],
    "$button_content": "feed_common.report_to_xbox_label"
  },

  "report_to_club_button@feed_common.feed_button": {
    "size": [ 135, 25 ],
    "$button_content": "feed_common.report_to_club_label"
  },

  "options_button@feed_common.feed_button": {
    "size": [ 25, 25 ],
    "layer": 0,
    "$button_content": "feed_common.options_icon",
    "$button_mapping_id|default": "",
    "button_mappings": [
      {
        "from_button_id": "button.menu_select",
        "to_button_id": "$button_mapping_id",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.menu_ok",
        "to_button_id": "$button_mapping_id",
        "mapping_type": "focused"
      }
    ]
  },

  "options_close_button_high_contrast@common.close_button": {
    "anchor_from": "right_middle",
    "anchor_to": "right_middle",
    "controls": [
      {
        "background": {
          "type": "image",
          "texture": "textures/ui/imagetaggedcornerborder"
        }
      },
      {
        "default@common.close_button_panel": {
          "$close_button_texture": "textures/ui/close_button_default_light"
        }
      },
      {
        "hover@common.close_button_panel": {
          "$close_button_texture": "textures/ui/close_button_hover_light"
        }
      },
      {
        "pressed@common.close_button_panel": {
          "$close_button_texture": "textures/ui/close_button_pressed_light"
        }
      }
    ]
  },

  "share_button@common_buttons.transparent_content_button": {
    "size": [ 40, 25 ],
    "$default_button_alpha": 0.6,
    "$button_content": "feed_common.share_label",
    "$hover_button_texture": "textures/ui/imagetaggedcornergreenhover",
    "$pressed_button_texture": "textures/ui/imagetaggedcornergreenpressed"
  },

  //--------------------------------------------------------------------------------
  // Common Controls
  //--------------------------------------------------------------------------------

  "spacing_gap": {
    "type": "panel",
    "size": [ "100%", 20 ]
  },

  "platform_icon": {
    "type": "image",
    "texture": "textures/ui/platform_icon",
    "size": [ 15, 15 ]
  },

  "platform_icon_panel": {
    "type": "panel",
    "size": [ 15, 15 ],
    "$icon_offset|default": [ 0, 2 ],
    "controls": [
      {
        "platform_icon@feed_common.platform_icon": {
          "layer": 1,
          "offset": "$icon_offset",
          "size": [ "100%-2px", "100%-2px" ]
        }
      }
    ]
  },

  "account_link_image": {
    "type": "image",
    "texture": "textures/ui/control_white"
  },

  "account_link_icon": {
    "type": "stack_panel",
    "orientation": "horizontal",
    "size": [ "100%", 5 ],
    "layer": 1,
    "controls": [
      {
        "space_01": {
          "type": "panel",
          "size": [ 9, "100%" ]
        }
      },
      {
        "account_link_image@feed_common.account_link_image": {
          "size": [ 2, "100%" ]
        }
      },
      {
        "space_02": {
          "type": "panel",
          "size": [ 9, "100%" ]
        }
      }
    ]
  },

  "player_pic_bevel": {
    "type": "image",
    "texture": "textures/ui/focus_border_white",
    "size": [ "100%", "100%" ]
  },

  "no_feed_item_content": {
    "type": "label",
    "color": "$f_color_format",
    "anchor_from": "center",
    "anchor_to": "center",
    "size": [ "70%", "default" ],
    "text_alignment": "center",
    "layer": 1,
    "font_type": "smooth",
    "bindings": [
      {
        "binding_name": "#no_feed_item_visible",
        "binding_name_override": "#visible"
      }
    ]
  },

  "gamepad_helpers@common.gamepad_helpers_a_and_b": {
    "layer": 0,
    "anchor_from": "bottom_middle",
    "anchor_to": "bottom_middle",
    "offset": [ 0, "31px" ]
  },

  "share_text_box@common.transparent_text_edit_box": {
    "size": [ "85%", 25 ],
    "max_length": 350,
    "anchor_from": "left_middle",
    "anchor_to": "left_middle",
    "$box_texture": "textures/ui/White",
    "$text_box_text_color": "$8_color_format",
    "$alpha": 1,
    "$hover_alpha": 0.1,
    "$place_holder_text": "feed.whatup",
    "$place_holder_text_color": "$8_color_format"
  },

  "progress_loading_bars": {
    "type": "image",
    "layer": 3,
    "texture": "textures/ui/loading_bar",
    "anchor_from": "center",
    "anchor_to": "center",
    "size": [ 64, 8 ],
    "uv_size": [ 64, 8 ],
    "uv": "@feed_common.bar_animation",
    "color": [ 0.7, 0.7, 0.7, 1.0 ]
  },

  "bar_animation": {
    "anim_type": "flip_book",
    "initial_uv": [ 0, 0 ],
    "frame_count": 10,
    "frame_step": 64,
    "fps": 10,
    "reversible": true,
    "easing": "linear"
  },

  "popup_dialog_bg": {
    "type": "image",
    "texture": "textures/ui/White",
    "color": "$7_color_format"
  },

  "pagination_panel": {
    "type": "panel",
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "size": [ "100%", 30 ],
    "$next_button_name|default": "",
    "$prev_button_name|default": "",
    "controls": [
      {
        "prev_button@feed_common.prev_button": {
        }
      },
      {
        "page_text@feed_common.page_text": {

        }
      },
      {
        "next_button@feed_common.next_button": {
        }
      }
    ]
  },

  "pagination_panel_gamepad": {
    "type": "panel",
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "size": [ "100%", 30 ],
    "controls": [
      {
        "prev_panel@feed_common.prev_panel": {
        }
      },
      {
        "page_text@feed_common.page_text": {
        }
      },
      {
        "next_panel@feed_common.next_panel": {
        }
      }
    ]
  },

  "like_image": {
    "type": "image",
    "texture": "textures/ui/heart_new",
    "size": [ "100%", "100%" ],
    "layer": 1,
    "$is_like_visible|default": "#hidden",
    "$is_like_visible_comment|default": "#hidden",
    "bindings": [
      {
        "binding_name": "$is_like_visible",
        "binding_name_override": "#visible",
        "binding_type": "collection",
        "binding_collection_name": "$collection_binding_name"
      },
      {
        "binding_name": "$is_like_visible_comment",
        "binding_name_override": "#visible"
      }
    ]
  },

  "like_image_default": {
    "type": "image",
    "texture": "textures/ui/like_default",
    "size": [ "100%", "100%" ],
    "layer": 0
  },

  "like_image_panel": {
    "type": "panel",
    "size": [ "50%", "100%" ],
    "anchor_from": "left_middle",
    "anchor_to": "left_middle",
    "controls": [
      {
        "like_image_instance@feed_common.like_image": {
          "anchor_from": "left_middle",
          "anchor_to": "left_middle"
        }
      },
      {
        "like_image_default@feed_common.like_image_default": {
          "anchor_from": "left_middle",
          "anchor_to": "left_middle"
        }
      }
    ]
  },

  "feed_like_content_panel": {
    "type": "stack_panel",
    "size": [ "100%", "50%" ],
    "orientation": "horizontal",
    "anchor_from": "center",
    "anchor_to": "center",
    "controls": [
      {
        "like_image_panel@feed_common.like_image_panel": {
          "size": [ "25%", "100%" ]
        }
      },
      {
        "like_label@feed_common.smooth_label": {
          "text": "feed.like",
          "size": [ "fill", 15 ]
        }
      }
    ]
  },

  "white_banner": {
    "type": "image",
    "texture": "textures/ui/White"
  },

  "page_text": {
    "type": "label",
    "text": "$this_page_index_text",
    "color": "$f_color_format",
    "anchor_from": "bottom_middle",
    "anchor_to": "bottom_middle",
    "size": [ "default", 30 ],
    "bindings": [
      {
        "binding_name": "$this_page_index_text"
      }
    ]
  },

  "options_icon": {
    "type": "image",
    "layer": 0,
    "texture": "textures/ui/more-dots",
    "size": [ 11, 11 ]
  },

  "transparent_background": {
    "type": "image",
    "texture": "textures/ui/control",
    "size": [ "100%", "100%" ],
    "alpha": 0.80
  },

  "black_arrow": {
    "type": "image",
    "texture": "textures/ui/black-arrow",
    "size": [ 10, 10 ],
    "alpha": "@feed_common.anim_faded_background"
  },

  "faded_background_image": {
    "type": "image",
    "size": [ "110%", "100%" ],
    "texture": "textures/ui/control",
    "alpha": "@feed_common.anim_faded_background"
  },

  "anim_faded_background": {
    "anim_type": "alpha",
    "easing": "in_expo",
    "duration": 0.4,
    "from": 0,
    "to": 0.7
  },

  "anim_faded_background_full": {
    "anim_type": "alpha",
    "easing": "in_expo",
    "duration": 0.4,
    "from": 0,
    "to": 1
  },

  "anim_box_text": {
    "anim_type": "alpha",
    "easing": "in_expo",
    "duration": 0.4,
    "from": 0,
    "to": 1
  },

  "unviewed_post_badge": {
    "type": "image",
    "anchor_from": "top_right",
    "anchor_to": "top_right",
    "size": [ "100%c+4px", "100%c+4px" ],
    "texture": "textures/ui/recolorable_background",
    "color": "$realms_plus_border_color",
    "$is_unviewed_post|default": "#hidden",
    "controls": [
      {
        "unviewed_post_text@feed_common.smooth_label": {
          "layer": 1,
          "text": "feed.unviewedPost",
          "size": [ "default", "default" ]
        }
      }
    ],
    "bindings": [
      {
        "binding_name": "$is_unviewed_post",
        "binding_name_override": "#visible",
        "binding_type": "collection",
        "binding_collection_name": "$collection_binding_name"
      }
    ]
  }
}
