TUITheme constructor

const TUITheme({
  1. Color? primaryColor = const Color(0xFF00449E),
  2. Color? secondaryColor = const Color(0xFF147AFF),
  3. Color? infoColor = const Color(0xFFFF9C19),
  4. Color? weakBackgroundColor = const Color(0xFFEDEDED),
  5. Color? wideBackgroundColor = Colors.white,
  6. Color? weakDividerColor = const Color(0xFFE5E6E9),
  7. Color? weakTextColor = const Color(0xFF999999),
  8. Color? darkTextColor = const Color(0xFF444444),
  9. Color? lightPrimaryColor = const Color(0xFF3371CD),
  10. Color? textColor,
  11. Color? cautionColor = const Color(0xFFFF584C),
  12. Color? ownerColor = Colors.orange,
  13. Color? adminColor = Colors.blue,
  14. Color? white = Colors.white,
  15. Color? black = Colors.black,
  16. Color? inputFillColor = const Color(0xFFEDEDED),
  17. Color? textgrey = const Color(0xFFAEA4A3),
  18. Color? selectPanelBgColor = const Color(0xFFF9F9FA),
  19. Color? selectPanelTextIconColor = const Color(0xFF37393F),
  20. Color? appbarBgColor = const Color(0xFFF2F3F5),
  21. Color? appbarTextColor = const Color(0xFF010000),
  22. Color? conversationItemBgColor = Colors.white,
  23. Color? conversationItemBorderColor = const Color(0xFFE5E6E9),
  24. Color? conversationItemActiveBgColor = const Color(0xFFEDEDED),
  25. Color? conversationItemPinedBgColor = const Color(0xFFEDEDED),
  26. Color? conversationItemTitleTextColor = Colors.black,
  27. Color? conversationItemLastMessageTextColor = const Color(0xFF999999),
  28. Color? conversationItemTitmeTextColor = const Color(0xFF999999),
  29. Color? conversationItemOnlineStatusBgColor = Colors.green,
  30. Color? conversationItemOfflineStatusBgColor = Colors.grey,
  31. Color? conversationItemUnreadCountBgColor = const Color(0xFFFF584C),
  32. Color? conversationItemUnreadCountTextColor = Colors.white,
  33. Color? conversationItemDraftTextColor = const Color(0xFFFF584C),
  34. Color? conversationItemNoNotificationIconColor = const Color(0xFF999999),
  35. Color? conversationItemSliderTextColor = Colors.white,
  36. Color? conversationItemSliderClearBgColor = const Color(0xFF00449E),
  37. Color? conversationItemSliderPinBgColor = const Color(0xFFFF9C19),
  38. Color? conversationItemSliderDeleteBgColor = Colors.red,
  39. Color? conversationItemChooseBgColor = const Color(0xFFE7F0FF),
  40. Color? chatBgColor,
  41. Color? desktopChatMessageInputBgColor,
  42. Color? chatTimeDividerTextColor = const Color(0xFF999999),
  43. Color? chatHeaderBgColor = const Color(0xFFF2F3F5),
  44. Color? chatHeaderTitleTextColor = const Color(0xFF010000),
  45. Color? chatHeaderBackTextColor = const Color(0xFF010000),
  46. Color? chatHeaderActionTextColor = const Color(0xFF010000),
  47. Color? chatMessageItemTextColor = Colors.black,
  48. Color? chatMessageItemFromSelfBgColor = const Color(0xFFD1E3FF),
  49. Color? chatMessageItemFromOthersBgColor = const Color(0xFFEDEDED),
  50. Color? chatMessageItemUnreadStatusTextColor = const Color(0xFF999999),
  51. Color? chatMessageTongueBgColor = const Color(0xFFAEA4A3),
  52. Color? chatMessageTongueTextColor = const Color(0xFFAEA4A3),
})

Implementation

const TUITheme({
  this.primaryColor = const Color(0xFF00449E),
  this.secondaryColor = const Color(0xFF147AFF),
  this.infoColor = const Color(0xFFFF9C19),
  this.weakBackgroundColor = const Color(0xFFEDEDED),
  this.wideBackgroundColor = Colors.white,
  this.weakDividerColor = const Color(0xFFE5E6E9),
  this.weakTextColor = const Color(0xFF999999),
  this.darkTextColor = const Color(0xFF444444),
  this.lightPrimaryColor = const Color(0xFF3371CD),
  this.textColor,
  this.cautionColor = const Color(0xFFFF584C),
  this.ownerColor = Colors.orange,
  this.adminColor = Colors.blue,
  this.white = Colors.white,
  this.black = Colors.black,
  this.inputFillColor = const Color(0xFFEDEDED),
  this.textgrey = const Color(0xFFAEA4A3),

  /// 消息列表多选面板背景颜色
  this.selectPanelBgColor = const Color(0xFFF9F9FA),

  /// 消息列表多选面板文字及icon颜色
  this.selectPanelTextIconColor = const Color(0xFF37393F),

  /// Appbar 背景颜色
  this.appbarBgColor = const Color(0xFFF2F3F5),

  /// Appbar 文字颜色
  this.appbarTextColor = const Color(0xFF010000),

  /// 会话列表背景颜色
  this.conversationItemBgColor = Colors.white, // 1

  /// 会话列表边框颜色
  this.conversationItemBorderColor = const Color(0xFFE5E6E9), // 1

  /// 会话列表选中背景颜色
  this.conversationItemActiveBgColor = const Color(0xFFEDEDED), // 1

  /// 会话列表置顶背景颜色
  this.conversationItemPinedBgColor = const Color(0xFFEDEDED), // 1

  /// 会话列表Title字体颜色
  this.conversationItemTitleTextColor = Colors.black, // 1

  /// 会话列表LastMessage字体颜色
  this.conversationItemLastMessageTextColor = const Color(0xFF999999), // 1

  /// 会话列表Time字体颜色
  this.conversationItemTitmeTextColor = const Color(0xFF999999), // 1

  /// 会话列表用户在线状态背景色
  this.conversationItemOnlineStatusBgColor = Colors.green, // 1

  /// 会话列表用户离线状态背景色
  this.conversationItemOfflineStatusBgColor = Colors.grey, // 1

  /// 会话列表未读数背景颜色
  this.conversationItemUnreadCountBgColor = const Color(0xFFFF584C), // 1

  /// 会话列表未读数字体颜色
  this.conversationItemUnreadCountTextColor = Colors.white, // 1

  /// 会话列表草稿字体颜色
  this.conversationItemDraftTextColor = const Color(0xFFFF584C), // 1

  /// 会话列表收到消息不提醒Icon颜色
  this.conversationItemNoNotificationIconColor = const Color(0xFF999999), // 1

  /// 会话列表侧滑按钮字体颜色
  this.conversationItemSliderTextColor = Colors.white, // 1

  /// 会话列表侧滑按钮Clear背景颜色
  this.conversationItemSliderClearBgColor = const Color(0xFF00449E), // 1

  /// 会话列表侧滑按钮Pin背景颜色
  this.conversationItemSliderPinBgColor = const Color(0xFFFF9C19), // 1

  /// 会话列表侧滑按钮Delete背景颜色
  this.conversationItemSliderDeleteBgColor = Colors.red, // 1

  /// 会话列表宽屏模式选中时背景颜色
  this.conversationItemChooseBgColor = const Color(0xFFE7F0FF), // 1

  /// 聊天页背景颜色
  this.chatBgColor, // 1

  /// 桌面端消息输入框背景颜色
  this.desktopChatMessageInputBgColor, // 1

  /// 聊天页背景颜色
  this.chatTimeDividerTextColor = const Color(0xFF999999), // 1

  /// 聊天页导航栏背景颜色
  this.chatHeaderBgColor = const Color(0xFFF2F3F5),

  /// 聊天页导航栏Title字体颜色
  this.chatHeaderTitleTextColor = const Color(0xFF010000),

  /// 聊天页导航栏Back字体颜色
  this.chatHeaderBackTextColor = const Color(0xFF010000),

  /// 聊天页导航栏Action字体颜色
  this.chatHeaderActionTextColor = const Color(0xFF010000),

  /// 聊天页历史消息列表字体颜色
  this.chatMessageItemTextColor = Colors.black, // 1

  /// 聊天页历史消息列表来自自己时背景颜色
  this.chatMessageItemFromSelfBgColor = const Color(0xFFD1E3FF),

  /// 聊天页历史消息列表来自非自己时背景颜色
  this.chatMessageItemFromOthersBgColor = const Color(0xFFEDEDED), // 1

  /// 聊天页历史消息列表已读状态字体颜色
  this.chatMessageItemUnreadStatusTextColor = const Color(0xFF999999), // 1

  /// 聊天页历史消息列表小舌头背景颜色
  this.chatMessageTongueBgColor = const Color(0xFFAEA4A3),

  /// 聊天页历史消息列表小舌头字体颜色
  this.chatMessageTongueTextColor = const Color(0xFFAEA4A3),
});