> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XblPreferredColor

> XblPreferredColor

# XblPreferredColor

用户的首选颜色。通过 shell 设置。

## 语法

```cpp theme={null}
typedef struct XblPreferredColor {  
    char primaryColor[XBL_COLOR_CHAR_SIZE];  
    char secondaryColor[XBL_COLOR_CHAR_SIZE];  
    char tertiaryColor[XBL_COLOR_CHAR_SIZE];  
} XblPreferredColor  
```

### 成员

*primaryColor*\
类型：char\[XBL\_COLOR\_CHAR\_SIZE]

UTF-8 编码的用户主颜色。

*secondaryColor*\
类型：char\[XBL\_COLOR\_CHAR\_SIZE]

UTF-8 编码的用户辅助颜色。

*tertiaryColor*\
类型：char\[XBL\_COLOR\_CHAR\_SIZE]

UTF-8 编码的用户第三颜色。

## 成员属于

[XblSocialManagerUser](/reference/live/xsapi-c/social_manager_c/structs/xblsocialmanageruser)

## 要求

**标头：** social\_manager\_c.h

## 另请参阅

[social\_manager\_c](/reference/live/xsapi-c/social_manager_c/social_manager_c_members)


## Related topics

- [XblSocialManagerUser](/zh-CN/reference/live/xsapi-c/social_manager_c/structs/xblsocialmanageruser.md)
- [XblSocialManagerExtraDetailLevel](/zh-CN/reference/live/xsapi-c/social_manager_c/enums/xblsocialmanagerextradetaillevel.md)
- [XColor](/zh-CN/reference/system/xgameruntimetypes/structs/xcolor.md)
- [PIX_COLOR](/zh-CN/reference/tools/pix3/functions/pix_color.md)
- [PIX_COLOR_INDEX](/zh-CN/reference/tools/pix3/functions/pix_color_index.md)
