Skip to content

Commit

Permalink
Merge branch 'master' of github.com:tada-team/tdproto
Browse files Browse the repository at this point in the history
  • Loading branch information
sdfsdhgjkbmnmxc committed Jul 6, 2021
2 parents 3a60ea4 + 7191c21 commit 172f91e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
v.1.35.0
- TaskItem.gentime

v.1.34.7
- added WebBase colors for features.Theme

v.1.34.5
- features.ios_corp_app
- features.android_corp_app
Expand Down
30 changes: 24 additions & 6 deletions theme.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,17 @@ type Theme struct {
// Icon colors for app
Icon *IconColors `json:"ic"`

// WebBase colors for web
WebBase *WebBase `json:"web_base"`

// Deprecated
AppAccentColor RGBColor

// Deprecated
AppPrimaryColor RGBColor
}

// Button colors for app
// ButtonColors button colors for app
type ButtonColors struct {
// Brand static color
BrandStatic RGBColor `json:"brand_static"`
Expand All @@ -140,7 +143,7 @@ type ButtonColors struct {
SimpleDisable RGBColor `json:"simple_disable"`
}

// Font colors for app
// FontColors font colors for app
type FontColors struct {
// Text color
Text RGBColor `json:"text"`
Expand All @@ -164,7 +167,7 @@ type FontColors struct {
BubbleReceived RGBColor `json:"bubble_received"`
}

// Message colors for app
// MessageColors message colors for app
type MessageColors struct {
// Bubble sent color
BubbleSent RGBColor `json:"bubble_sent"`
Expand All @@ -185,7 +188,7 @@ type MessageColors struct {
Allocated RGBColor `json:"allocated"`
}

// Input colors for app
// InputColors input colors for app
type InputColors struct {
// Static color
Static RGBColor `json:"static"`
Expand All @@ -200,7 +203,7 @@ type InputColors struct {
Error RGBColor `json:"error"`
}

// Switcher colors for app
// SwitcherColors switcher colors for app
type SwitcherColors struct {
// On color
On RGBColor `json:"on"`
Expand All @@ -209,7 +212,7 @@ type SwitcherColors struct {
Off RGBColor `json:"off"`
}

// Icon colors for app
// IconColors icon colors for app
type IconColors struct {
// Title color
Title RGBColor `json:"title"`
Expand All @@ -220,3 +223,18 @@ type IconColors struct {
// Other color
Other RGBColor `json:"other"`
}

// WebBase base colors for web
type WebBase struct {
Brand RGBColor `json:"brand"`
BrandLight RGBColor `json:"brand_light"`
BrandDark RGBColor `json:"brand_dark"`
BackLight RGBColor `json:"back_light"`
Error RGBColor `json:"error"`
ErrorLight RGBColor `json:"error_light"`
Success RGBColor `json:"success"`
SuccessLight RGBColor `json:"success_light"`
Attention RGBColor `json:"attention"`
AttentionLight RGBColor `json:"attention_light"`
Fade RGBColor `json:"fade"`
}

0 comments on commit 172f91e

Please sign in to comment.