TUITheme.fromJson constructor

TUITheme.fromJson(
  1. Map<String, dynamic> json
)

Implementation

TUITheme.fromJson(Map<String, dynamic> json)
    : primaryColor = json['primaryColor'] as Color?,
      secondaryColor = json['secondaryColor'] as Color?,
      infoColor = json['infoColor'] as Color?,
      weakBackgroundColor = json['weakBackgroundColor'] as Color?,
      wideBackgroundColor = json['wideBackgroundColor'] as Color?,
      weakDividerColor = json['weakDividerColor'] as Color?,
      weakTextColor = json['weakTextColor'] as Color?,
      darkTextColor = json['darkTextColor'] as Color?,
      lightPrimaryColor = json['lightPrimaryColor'] as Color?,
      textColor = json['textColor'] as Color?,
      cautionColor = json['cautionColor'] as Color?,
      ownerColor = json['ownerColor'] as Color?,
      white = json['white'] as Color?,
      black = json['black'] as Color?,
      inputFillColor = json["inputFillColor"] as Color?,
      textgrey = json['textgrey'] as Color?,
      adminColor = json['adminColor'] as Color?,
      selectPanelBgColor = json['selectPanelBgColor'] as Color?,
      selectPanelTextIconColor = json['selectPanelTextIconColor'] as Color?,
      appbarBgColor = json['appbarBgColor'] as Color?,
      appbarTextColor = json['appbarTextColor'] as Color?,

      /// 会话列表背景颜色
      conversationItemBgColor = json['conversationItemBgColor'] as Color?,

      /// 会话列表边框颜色
      conversationItemBorderColor =
          json['conversationItemBorderColor'] as Color?,

      /// 会话列表选中背景颜色
      conversationItemActiveBgColor =
          json['conversationItemActiveBgColor'] as Color?,

      /// 会话列表置顶背景颜色
      conversationItemPinedBgColor =
          json['conversationItemPinedBgColor'] as Color?,

      /// 会话列表Title字体颜色
      conversationItemTitleTextColor =
          json['conversationItemTitleTextColor'] as Color?,

      /// 会话列表LastMessage字体颜色
      conversationItemLastMessageTextColor =
          json['conversationItemLastMessageTextColor'] as Color?,

      /// 会话列表Time字体颜色
      conversationItemTitmeTextColor =
          json['conversationItemTitmeTextColor'] as Color?,

      /// 会话列表用户在线状态背景色
      conversationItemOnlineStatusBgColor =
          json['conversationItemOnlineStatusBgColor'] as Color?,

      /// 会话列表用户离线状态背景色
      conversationItemOfflineStatusBgColor =
          json['conversationItemOfflineStatusBgColor'] as Color?,

      /// 会话列表未读数背景颜色
      conversationItemUnreadCountBgColor =
          json['conversationItemUnreadCountBgColor'] as Color?,

      /// 会话列表未读数字体颜色
      conversationItemUnreadCountTextColor =
          json['conversationItemUnreadCountTextColor'] as Color?,
      conversationItemChooseBgColor =
          json['conversationItemChooseBgColor'] as Color?,

      /// 会话列表草稿字体颜色
      conversationItemDraftTextColor =
          json['conversationItemDraftTextColor'] as Color?,

      /// 会话列表收到消息不提醒Icon颜色
      conversationItemNoNotificationIconColor =
          json['conversationItemNoNotificationIconColor'] as Color?,

      /// 会话列表侧滑按钮字体颜色
      conversationItemSliderTextColor =
          json['conversationItemSliderTextColor'] as Color?,

      /// 会话列表侧滑按钮Clear背景颜色
      conversationItemSliderClearBgColor =
          json['conversationItemSliderClearBgColor'] as Color?,

      /// 会话列表侧滑按钮Pin背景颜色
      conversationItemSliderPinBgColor =
          json['conversationItemSliderPinBgColor'] as Color?,

      /// 会话列表侧滑按钮Delete背景颜色
      conversationItemSliderDeleteBgColor =
          json['conversationItemSliderDeleteBgColor'] as Color?,

      /// 聊天页背景颜色
      chatBgColor = json['chatBgColor'] as Color?,

      /// 桌面端消息输入框背景颜色
      desktopChatMessageInputBgColor =
          json['desktopChatMessageInputBgColor'] as Color?,

      /// 聊天页背景颜色
      chatTimeDividerTextColor = json['chatTimeDividerTextColor'] as Color?,

      /// 聊天页导航栏背景颜色
      chatHeaderBgColor = json['chatHeaderBgColor'] as Color?,

      /// 聊天页导航栏Title字体颜色
      chatHeaderTitleTextColor = json['chatHeaderTitleTextColor'] as Color?,

      /// 聊天页导航栏Back字体颜色
      chatHeaderBackTextColor = json['chatHeaderBackTextColor'] as Color?,

      /// 聊天页导航栏Action字体颜色
      chatHeaderActionTextColor = json['chatHeaderActionTextColor'] as Color?,

      /// 聊天页历史消息列表字体颜色
      chatMessageItemTextColor = json['chatMessageItemTextColor'] as Color?,

      /// 聊天页历史消息列表来自自己时背景颜色
      chatMessageItemFromSelfBgColor =
          json['chatMessageItemFromSelfBgColor'] as Color?,

      /// 聊天页历史消息列表来自非自己时背景颜色
      chatMessageItemFromOthersBgColor =
          json['chatMessageItemFromOthersBgColor'] as Color?,

      /// 聊天页历史消息列表已读状态字体颜色
      chatMessageItemUnreadStatusTextColor =
          json['chatMessageItemUnreadStatusTextColor'] as Color?,

      /// 聊天页历史消息列表小舌头背景颜色
      chatMessageTongueBgColor = json['chatMessageTongueBgColor'] as Color?,

      /// 聊天页历史消息列表小舌头字体颜色
      chatMessageTongueTextColor =
          json['chatMessageTongueTextColor'] as Color?;