github.com/tada-team/tdproto@v1.51.57/theme.go (about)

     1  package tdproto
     2  
     3  // Color in ``#rrggbb`` format where ``rr``, ``gg``, ``bb`` are
     4  // hexadecimal numbers from 00 to ff of red, green and blue channels
     5  // correspondingly. (yellow would be ``#ffff00``)
     6  type RGBColor = string
     7  
     8  // Color theme
     9  type Theme struct {
    10  	// BgColor for web
    11  	BgColor RGBColor
    12  
    13  	// BgHoverColor for web
    14  	BgHoverColor RGBColor
    15  
    16  	// TextColor for web
    17  	TextColor RGBColor
    18  
    19  	// MutedTextColor for web
    20  	MutedTextColor RGBColor
    21  
    22  	// AccentColor for web
    23  	AccentColor RGBColor
    24  
    25  	// AccentHoverColor for web
    26  	AccentHoverColor RGBColor
    27  
    28  	// TextOnAccentHoverColor for web
    29  	TextOnAccentHoverColor RGBColor
    30  
    31  	// MainAccent for web
    32  	MainAccent RGBColor
    33  
    34  	// MainAccentHover for web
    35  	MainAccentHover RGBColor
    36  
    37  	// MainLightAccent for web
    38  	MainLightAccent RGBColor
    39  
    40  	// MainLink for web
    41  	MainLink RGBColor
    42  
    43  	// Brand color for app
    44  	Brand RGBColor `json:"brand"`
    45  
    46  	// BrandDark color for app
    47  	BrandDark RGBColor `json:"brand_dark"`
    48  
    49  	// Brand light color for app
    50  	BrandLight RGBColor `json:"brand_light"`
    51  
    52  	// Back light color for app
    53  	Back RGBColor `json:"back"`
    54  
    55  	// Back light color for app
    56  	BackLight RGBColor `json:"back_light"`
    57  
    58  	// Back dark color for app
    59  	BackDark RGBColor `json:"back_dark"`
    60  
    61  	// Success color for app
    62  	Success RGBColor `json:"success"`
    63  
    64  	// Success light color for app
    65  	SuccessLight RGBColor `json:"success_light"`
    66  
    67  	// Error color for app
    68  	Error RGBColor `json:"error"`
    69  
    70  	// Error light color for app
    71  	ErrorLight RGBColor `json:"error_light"`
    72  
    73  	// Background color for app
    74  	Background RGBColor `json:"background"`
    75  
    76  	// Tab background color for app
    77  	TabBackground RGBColor `json:"tab_background"`
    78  
    79  	// Chat input background color for app
    80  	ChatInputBackground RGBColor `json:"chat_input_background"`
    81  
    82  	// Substrate background color for app
    83  	SubstrateBackground RGBColor `json:"substrate_background"`
    84  
    85  	// Modal background color for app
    86  	ModalBackground RGBColor `json:"modal_background"`
    87  
    88  	// Title background color for app
    89  	TitleBackground RGBColor `json:"title_background"`
    90  
    91  	// Attention color for app
    92  	Attention RGBColor `json:"attention"`
    93  
    94  	// Attention light color for app
    95  	AttentionLight RGBColor `json:"attention_light"`
    96  
    97  	// Font colors for app
    98  	Font *FontColors `json:"font"`
    99  
   100  	// Message colors for app
   101  	Message *MessageColors `json:"message"`
   102  
   103  	// Switcher colors for app
   104  	Switcher *SwitcherColors `json:"switcher"`
   105  
   106  	// Button colors for app
   107  	Button *ButtonColors `json:"button"`
   108  
   109  	// Input colors for app
   110  	Input *InputColors `json:"input"`
   111  
   112  	// Icon colors for app
   113  	Icon *IconColors `json:"ic"`
   114  
   115  	// Avatar colors for app
   116  	Avatar *AvatarColors `json:"avatar"`
   117  
   118  	// WebBase colors for web
   119  	WebBase *WebBase `json:"web_base"`
   120  
   121  	// Bg colors for app
   122  	Bg *Bg `json:"bg"`
   123  
   124  	// Swipe colors for app
   125  	Swipe *SwipeColors `json:"swipe"`
   126  
   127  	// Call colors for app
   128  	CallColors *CallColors `json:"call"`
   129  
   130  	// Deprecated
   131  	AppAccentColor RGBColor
   132  
   133  	// Deprecated
   134  	AppPrimaryColor RGBColor
   135  }
   136  
   137  // ButtonColors button colors for app
   138  type ButtonColors struct {
   139  	// Brand static color
   140  	BrandStatic RGBColor `json:"brand_static"`
   141  
   142  	// Brand active color
   143  	BrandActive RGBColor `json:"brand_active"`
   144  
   145  	// Brand disable color
   146  	BrandDisable RGBColor `json:"brand_disable"`
   147  
   148  	// Simple static color
   149  	SimpleStatic RGBColor `json:"simple_static"`
   150  
   151  	// Simple active color
   152  	SimpleActive RGBColor `json:"simple_active"`
   153  
   154  	// Simple disable color
   155  	SimpleDisable RGBColor `json:"simple_disable"`
   156  }
   157  
   158  // FontColors font colors for app
   159  type FontColors struct {
   160  	// Text color
   161  	Text RGBColor `json:"text"`
   162  
   163  	// Title color
   164  	Title RGBColor `json:"title"`
   165  
   166  	// Sub color
   167  	Sub RGBColor `json:"sub"`
   168  
   169  	// Brand button color
   170  	BrandButton RGBColor `json:"brand_button"`
   171  
   172  	// Simple button color
   173  	SimpleButton RGBColor `json:"simple_button"`
   174  
   175  	// Bubble sent color
   176  	BubbleSent RGBColor `json:"bubble_sent"`
   177  
   178  	// Bubble received color
   179  	BubbleReceived RGBColor `json:"bubble_received"`
   180  
   181  	// TextAvatar color
   182  	TextAvatar RGBColor `json:"text_avatar"`
   183  
   184  	// TextBadge color
   185  	TextBadge RGBColor `json:"text_badge"`
   186  }
   187  
   188  // MessageColors message colors for app
   189  type MessageColors struct {
   190  	// Bubble sent color
   191  	BubbleSent RGBColor `json:"bubble_sent"`
   192  
   193  	// Bubble received color
   194  	BubbleReceived RGBColor `json:"bubble_received"`
   195  
   196  	// Bubble important color
   197  	BubbleImportant RGBColor `json:"bubble_important"`
   198  
   199  	// Status feed color
   200  	StatusFeed RGBColor `json:"status_feed"`
   201  
   202  	// Status bubble color
   203  	StatusBubble RGBColor `json:"status_bubble"`
   204  
   205  	// Allocated color
   206  	Allocated RGBColor `json:"allocated"`
   207  }
   208  
   209  // InputColors input colors for app
   210  type InputColors struct {
   211  	// Static color
   212  	Static RGBColor `json:"static"`
   213  
   214  	// Active color
   215  	Active RGBColor `json:"active"`
   216  
   217  	// Disable color
   218  	Disable RGBColor `json:"disable"`
   219  
   220  	// Error color
   221  	Error RGBColor `json:"error"`
   222  
   223  	// Selection color
   224  	Selection RGBColor `json:"selection"`
   225  }
   226  
   227  // SwitcherColors switcher colors for app
   228  type SwitcherColors struct {
   229  	// On color
   230  	On RGBColor `json:"on"`
   231  
   232  	// Off color
   233  	Off RGBColor `json:"off"`
   234  }
   235  
   236  // IconColors icon colors for app
   237  type IconColors struct {
   238  	// Title color
   239  	Title RGBColor `json:"title"`
   240  
   241  	// Brand color
   242  	Brand RGBColor `json:"brand"`
   243  
   244  	// Other color
   245  	Other RGBColor `json:"other"`
   246  }
   247  
   248  // WebBase base colors for web
   249  type WebBase struct {
   250  	// Brand color
   251  	Brand RGBColor `json:"brand"`
   252  
   253  	// BrandLight color
   254  	BrandLight RGBColor `json:"brand_light"`
   255  
   256  	// BrandDark color
   257  	BrandDark RGBColor `json:"brand_dark"`
   258  
   259  	// BackLight color
   260  	BackLight RGBColor `json:"back_light"`
   261  
   262  	// Error color
   263  	Error RGBColor `json:"error"`
   264  
   265  	// ErrorLight color
   266  	ErrorLight RGBColor `json:"error_light"`
   267  
   268  	// Success color
   269  	Success RGBColor `json:"success"`
   270  
   271  	// SuccessLight color
   272  	SuccessLight RGBColor `json:"success_light"`
   273  
   274  	// Attention color
   275  	Attention RGBColor `json:"attention"`
   276  
   277  	// AttentionLight color
   278  	AttentionLight RGBColor `json:"attention_light"`
   279  
   280  	// Fade color
   281  	Fade RGBColor `json:"fade"`
   282  }
   283  
   284  // AvatarColors avatar colors for app
   285  type AvatarColors struct {
   286  	// TaskDefault color
   287  	TaskDefault RGBColor `json:"task_default"`
   288  }
   289  
   290  // Bg bg colors for app
   291  type Bg struct {
   292  	// BadgeBackground color
   293  	BadgeBackground RGBColor `json:"badge_background"`
   294  
   295  	// Fade color
   296  	Fade RGBColor `json:"fade"`
   297  }
   298  
   299  // SwipeColors swipe colors for app
   300  type SwipeColors struct {
   301  	// Notification color
   302  	Notification RGBColor `json:"notification"`
   303  
   304  	// Call color
   305  	Call RGBColor `json:"call"`
   306  
   307  	// EndCall
   308  	EndCall RGBColor `json:"end_call"`
   309  
   310  	// Hide color
   311  	Hide RGBColor `json:"hide"`
   312  
   313  	// Pin color
   314  	Pin RGBColor `json:"pin"`
   315  
   316  	// Message color
   317  	Message RGBColor `json:"message"`
   318  }
   319  
   320  // CallColors call colors for app
   321  type CallColors struct {
   322  	// CallBarBackground color
   323  	CallBarBackground RGBColor `json:"callbar_background"`
   324  
   325  	// IconCallBar color
   326  	IconCallBar RGBColor `json:"icon_callbar"`
   327  
   328  	// ButtonActive color
   329  	ButtonActive RGBColor `json:"button_active"`
   330  
   331  	// ButtonEndCall color
   332  	ButtonEndCall RGBColor `json:"button_end_call"`
   333  }