Skip to content

Commit

Permalink
Merge pull request #19 from tada-team/app-theme-fields
Browse files Browse the repository at this point in the history
new fields for app's colors
  • Loading branch information
palage4a authored Feb 10, 2021
2 parents b3b6d17 + 9d68964 commit dcc3db2
Showing 1 changed file with 44 additions and 2 deletions.
46 changes: 44 additions & 2 deletions theme.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,28 @@
package tdproto

type ButtonColors struct {
BrandStatic string `json:brand_static`
BrandActive string `json:brand_active`
BrandDisable string `json:brand_disable`
SimpleStatic string `json:simple_static`
SimpleActive string `json:simple_active`
SimpleDisable string `json:simple_disable`
}

type InputColors struct {
Static string `json:static`
Active string `json:active`
Disable string `json:disable`
Error string `json:error`
}
type SwitcherColors struct {
On string `json:on`
Off string `json:off`
}

// Color theme
type Theme struct {
// Web colors
BgColor string
BgHoverColor string
TextColor string
Expand All @@ -13,6 +34,27 @@ type Theme struct {
MainAccentHover string
MainLightAccent string
MainLink string
AppAccentColor string
AppPrimaryColor string

// App colors
AppAccentColor string
AppPrimaryColor string

Brand string `json:brand`
BrandDark string `json:brand_dark`
BrandLight string `json:brand_light`
Text string `json:text`
Sub string `json:sub`
Back string `json:back`
BackLight string `json:back_light`
BackDark string `json:back_dark`
Error string `json:error`
ErrorLight string `json:error_light`
Success string `json:success`
SuccessLight string `json:success_light`
Backgroud string `json:background`
Attention string `json:attention`
AttentionLight string `json:attention_light`
Button ButtonColors
Input InputColors
Switcher SwitcherColors
}

0 comments on commit dcc3db2

Please sign in to comment.