> ## Documentation Index
> Fetch the complete documentation index at: https://docs.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](https://docs.xbox.com/zh-CN/reference/live/xsapi-c/social_manager_c/structs/xblsocialmanageruser.md)

## 要求

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

## 另请参阅

[social\_manager\_c](https://docs.xbox.com/zh-CN/reference/live/xsapi-c/social_manager_c/social_manager_c_members.md)


## Related topics

- [social_manager_c](https://docs.xbox.com/zh-CN/reference/live/xsapi-c/social_manager_c/social_manager_c_members.md)
- [XblSocialManagerUser](https://docs.xbox.com/zh-CN/reference/live/xsapi-c/social_manager_c/structs/xblsocialmanageruser.md)
- [Color](https://docs.xbox.com/zh-CN/reference/system/touchadaptationkit/types/game-streaming-touch-color.md)
- [XblSocialManagerExtraDetailLevel](https://docs.xbox.com/zh-CN/reference/live/xsapi-c/social_manager_c/enums/xblsocialmanagerextradetaillevel.md)
- [Color Palette](https://docs.xbox.com/zh-CN/reference/system/touchadaptationkit/layout/game-streaming-touch-color-palette.md)
