TUITheme constructor
const
TUITheme({
- Color? primaryColor = const Color(0xFF00449E),
- Color? secondaryColor = const Color(0xFF147AFF),
- Color? infoColor = const Color(0xFFFF9C19),
- Color? weakBackgroundColor = const Color(0xFFEDEDED),
- Color? wideBackgroundColor = Colors.white,
- Color? weakDividerColor = const Color(0xFFE5E6E9),
- Color? weakTextColor = const Color(0xFF999999),
- Color? darkTextColor = const Color(0xFF444444),
- Color? lightPrimaryColor = const Color(0xFF3371CD),
- Color? textColor,
- Color? cautionColor = const Color(0xFFFF584C),
- Color? ownerColor = Colors.orange,
- Color? adminColor = Colors.blue,
- Color? white = Colors.white,
- Color? black = Colors.black,
- Color? inputFillColor = const Color(0xFFEDEDED),
- Color? textgrey = const Color(0xFFAEA4A3),
- Color? selectPanelBgColor = const Color(0xFFF9F9FA),
- Color? selectPanelTextIconColor = const Color(0xFF37393F),
- Color? appbarBgColor = const Color(0xFFF2F3F5),
- Color? appbarTextColor = const Color(0xFF010000),
- Color? conversationItemBgColor = Colors.white,
- Color? conversationItemBorderColor = const Color(0xFFE5E6E9),
- Color? conversationItemActiveBgColor = const Color(0xFFEDEDED),
- Color? conversationItemPinedBgColor = const Color(0xFFEDEDED),
- Color? conversationItemTitleTextColor = Colors.black,
- Color? conversationItemLastMessageTextColor = const Color(0xFF999999),
- Color? conversationItemTitmeTextColor = const Color(0xFF999999),
- Color? conversationItemOnlineStatusBgColor = Colors.green,
- Color? conversationItemOfflineStatusBgColor = Colors.grey,
- Color? conversationItemUnreadCountBgColor = const Color(0xFFFF584C),
- Color? conversationItemUnreadCountTextColor = Colors.white,
- Color? conversationItemDraftTextColor = const Color(0xFFFF584C),
- Color? conversationItemNoNotificationIconColor = const Color(0xFF999999),
- Color? conversationItemSliderTextColor = Colors.white,
- Color? conversationItemSliderClearBgColor = const Color(0xFF00449E),
- Color? conversationItemSliderPinBgColor = const Color(0xFFFF9C19),
- Color? conversationItemSliderDeleteBgColor = Colors.red,
- Color? conversationItemChooseBgColor = const Color(0xFFE7F0FF),
- Color? chatBgColor,
- Color? desktopChatMessageInputBgColor,
- Color? chatTimeDividerTextColor = const Color(0xFF999999),
- Color? chatHeaderBgColor = const Color(0xFFF2F3F5),
- Color? chatHeaderTitleTextColor = const Color(0xFF010000),
- Color? chatHeaderBackTextColor = const Color(0xFF010000),
- Color? chatHeaderActionTextColor = const Color(0xFF010000),
- Color? chatMessageItemTextColor = Colors.black,
- Color? chatMessageItemFromSelfBgColor = const Color(0xFFD1E3FF),
- Color? chatMessageItemFromOthersBgColor = const Color(0xFFEDEDED),
- Color? chatMessageItemUnreadStatusTextColor = const Color(0xFF999999),
- Color? chatMessageTongueBgColor = const Color(0xFFAEA4A3),
- 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),
});