feat: add color theme user setting definition

This commit is contained in:
steven
2023-09-05 23:48:32 +08:00
parent 7348f47ef8
commit b50e809125
16 changed files with 545 additions and 128 deletions

View File

@@ -53,6 +53,7 @@
- [UpdateUserSettingResponse](#slash-api-v2-UpdateUserSettingResponse)
- [UserSetting](#slash-api-v2-UserSetting)
- [UserSetting.ColorTheme](#slash-api-v2-UserSetting-ColorTheme)
- [UserSetting.Locale](#slash-api-v2-UserSetting-Locale)
- [UserSettingService](#slash-api-v2-UserSettingService)
@@ -680,6 +681,7 @@
| ----- | ---- | ----- | ----------- |
| id | [int32](#int32) | | id is the user id. |
| locale | [UserSetting.Locale](#slash-api-v2-UserSetting-Locale) | | locale is the user locale. |
| color_theme | [UserSetting.ColorTheme](#slash-api-v2-UserSetting-ColorTheme) | | color_theme is the user color theme. |
@@ -688,6 +690,19 @@
<a name="slash-api-v2-UserSetting-ColorTheme"></a>
### UserSetting.ColorTheme
| Name | Number | Description |
| ---- | ------ | ----------- |
| COLOR_THEME_UNSPECIFIED | 0 | |
| COLOR_THEME_LIGHT | 1 | |
| COLOR_THEME_DARK | 2 | |
<a name="slash-api-v2-UserSetting-Locale"></a>
### UserSetting.Locale