示例#1
0
		public static void SetTextEntryBackgroundColor(ZenColor color) {
			_appearance.SetColor("textEntryBackgroundColor", color);
		}
		public static void SetCellBackground(ZenColor color) {
			_appearance.SetColor("cellBackground", color);
		}
示例#3
0
		public void SetColor(string propertyName, ZenColor color) {
			Log("Unity : " + _className + ":Appearance:SetColorWithWhite");
		}
		public static void SetTitleLabelBackground(ZenColor color) {
			_appearance.SetColor("titleLabelBackground", color);
		}
		public static void SetBodyColor(ZenColor color) {
			_appearance.SetColor("bodyColor", color);
		}
示例#6
0
		public static void SetSpinnerColor(ZenColor color) {
			_appearance.SetColor("spinner", color);
		}
		public static void SetArticleParentsLabelBackground(ZenColor color) {
			_appearance.SetColor("articleParentsLabelBackground", color);
		}
示例#8
0
		public static void SetButtonSelectedColor(ZenColor color) {
			_appearance.SetColor("buttonSelectedColor", color);
		}
示例#9
0
		public static void SetButtonBackgroundColor(ZenColor color) {
			_appearance.SetColor("buttonBackgroundColor", color);
		}
示例#10
0
		public static void SetAttachmentButtonBackground(ZenColor color) {
			_appearance.SetColor("attachmentButtonBackground", color);
		}
示例#11
0
	void RunAppearanceTests() {
		ZenColor testColor1 = new ZenColor(0.9f, 1.0f); // Random Gray color

		ZendeskSDK.ZDKRequestListLoadingTableCell.SetBackgroundColor(testColor1);
		ZendeskSDK.ZDKRequestListLoadingTableCell.SetSeparatorInset(0, 0, 0, 0);

		ZendeskSDK.ZDKRequestListEmptyTableCell.SetMessageFont("system", 14);
		ZendeskSDK.ZDKRequestListEmptyTableCell.SetMessageColor(testColor1);
		ZendeskSDK.ZDKRequestListEmptyTableCell.SetBackgroundColor(testColor1);
		ZendeskSDK.ZDKRequestListEmptyTableCell.SetSeparatorInset(0, 0, 0, 0);

		ZendeskSDK.ZDKUILoadingView.SetBackgroundColor(testColor1);

		ZendeskSDK.ZDKUIImageScrollView.SetBackgroundColor(testColor1);

		ZendeskSDK.ZDKSupportView.SetNoResultsContactButtonFont("system", 14);
		ZendeskSDK.ZDKSupportView.SetBackgroundColor(testColor1);
		ZendeskSDK.ZDKSupportView.SetTableBackgroundColor(testColor1);
		ZendeskSDK.ZDKSupportView.SetSeparatorColor(testColor1);
		ZendeskSDK.ZDKSupportView.SetNoResultsFoundLabelColor(testColor1);
		ZendeskSDK.ZDKSupportView.SetNoResultsFoundLabelBackground(testColor1);
		ZendeskSDK.ZDKSupportView.SetNoResultsContactButtonBackground(testColor1);
		ZendeskSDK.ZDKSupportView.SetNoResultsContactButtonBorderColor(testColor1);
		ZendeskSDK.ZDKSupportView.SetNoResultsContactButtonTitleColorNormal(testColor1);
		ZendeskSDK.ZDKSupportView.SetNoResultsContactButtonTitleColorHighlighted(testColor1);
		ZendeskSDK.ZDKSupportView.SetNoResultsContactButtonTitleColorDisabled(testColor1);
		ZendeskSDK.ZDKSupportView.SetNoResultsContactButtonEdgeInsets(0, 0, 0, 0);
		ZendeskSDK.ZDKSupportView.SetNoResultsContactButtonBorderWidth(5);
		ZendeskSDK.ZDKSupportView.SetNoResultsContactButtonCornerRadius(15);
		ZendeskSDK.ZDKSupportView.SetAutomaticallyHideNavBarOnLandscape(1);
		ZendeskSDK.ZDKSupportView.SetSearchBarStyle(UIBARSTYLE.UIBARSTYLEDEFAULT);
		ZendeskSDK.ZDKSupportView.SetSpinnerUIActivityIndicatorViewStyle(UIACTIVITYINDICATORVIEWSTYLE.UIACTIVITYINDICATORVIEWSTYLEGRAY);
		ZendeskSDK.ZDKSupportView.SetSpinnerColor(testColor1);

		ZendeskSDK.ZDKSupportTableViewCell.SetTitleLabelFont("system", 14);
		ZendeskSDK.ZDKSupportTableViewCell.SetBackgroundColor(testColor1);
		ZendeskSDK.ZDKSupportTableViewCell.SetTitleLabelColor(testColor1);
		ZendeskSDK.ZDKSupportTableViewCell.SetTitleLabelBackground(testColor1);
		ZendeskSDK.ZDKSupportTableViewCell.SetSeparatorInset(0, 0, 0, 0);

		ZendeskSDK.ZDKSupportAttachmentCell.SetTitleLabelFont("system", 14);
		ZendeskSDK.ZDKSupportAttachmentCell.SetBackgroundColor(testColor1);
		ZendeskSDK.ZDKSupportAttachmentCell.SetFileSizeLabelColor(testColor1);
		ZendeskSDK.ZDKSupportAttachmentCell.SetFileSizeLabelBackground(testColor1);
		ZendeskSDK.ZDKSupportAttachmentCell.SetTitleLabelColor(testColor1);
		ZendeskSDK.ZDKSupportAttachmentCell.SetTitleLabelBackground(testColor1);
		ZendeskSDK.ZDKSupportAttachmentCell.SetSeparatorInset(0, 0, 0, 0);

		ZendeskSDK.ZDKSupportArticleTableViewCell.SetArticleParentsLabelFont("system", 14);
		ZendeskSDK.ZDKSupportArticleTableViewCell.SetTitleLabelFont("system", 14);
		ZendeskSDK.ZDKSupportArticleTableViewCell.SetBackgroundColor(testColor1);
		ZendeskSDK.ZDKSupportArticleTableViewCell.SetArticleParentsLabelColor(testColor1);
		ZendeskSDK.ZDKSupportArticleTableViewCell.SetArticleParentsLabelBackground(testColor1);
		ZendeskSDK.ZDKSupportArticleTableViewCell.SetTitleLabelColor(testColor1);
		ZendeskSDK.ZDKSupportArticleTableViewCell.SetTitleLabelBackground(testColor1);
		ZendeskSDK.ZDKSupportArticleTableViewCell.SetSeparatorInset(0, 0, 0, 0);

		ZendeskSDK.ZDKRMAFeedbackView.SetSubheaderFont("system", 14);
		ZendeskSDK.ZDKRMAFeedbackView.SetHeaderFont("system", 14);
		ZendeskSDK.ZDKRMAFeedbackView.SetTextEntryFont("system", 14);
		ZendeskSDK.ZDKRMAFeedbackView.SetButtonFont("system", 14);
		ZendeskSDK.ZDKRMAFeedbackView.SetButtonColor(testColor1);
		ZendeskSDK.ZDKRMAFeedbackView.SetButtonSelectedColor(testColor1);
		ZendeskSDK.ZDKRMAFeedbackView.SetButtonBackgroundColor(testColor1);
		ZendeskSDK.ZDKRMAFeedbackView.SetSeparatorLineColor(testColor1);
		ZendeskSDK.ZDKRMAFeedbackView.SetBackgroundColor(testColor1);
		ZendeskSDK.ZDKRMAFeedbackView.SetHeaderColor(testColor1);
		ZendeskSDK.ZDKRMAFeedbackView.SetSubHeaderColor(testColor1);
		ZendeskSDK.ZDKRMAFeedbackView.SetTextEntryColor(testColor1);
		ZendeskSDK.ZDKRMAFeedbackView.SetTextEntryBackgroundColor(testColor1);
		ZendeskSDK.ZDKRMAFeedbackView.SetPlaceHolderColor(testColor1);
		ZendeskSDK.ZDKRMAFeedbackView.SetSpinnerUIActivityIndicatorViewStyle (UIACTIVITYINDICATORVIEWSTYLE.UIACTIVITYINDICATORVIEWSTYLEGRAY);
		ZendeskSDK.ZDKRMAFeedbackView.SetSpinnerColor(testColor1);

		ZendeskSDK.ZDKRMADialogView.SetHeaderFont("system", 14);
		ZendeskSDK.ZDKRMADialogView.SetButtonFont("system", 14);
		ZendeskSDK.ZDKRMADialogView.SetHeaderBackgroundColor(testColor1);
		ZendeskSDK.ZDKRMADialogView.SetHeaderColor(testColor1);
		ZendeskSDK.ZDKRMADialogView.SetSeparatorLineColor(testColor1);
		ZendeskSDK.ZDKRMADialogView.SetButtonBackgroundColor(testColor1);
		ZendeskSDK.ZDKRMADialogView.SetButtonSelectedBackgroundColor(testColor1);
		ZendeskSDK.ZDKRMADialogView.SetButtonColor(testColor1);
		ZendeskSDK.ZDKRMADialogView.SetBackgroundColor(testColor1);

		ZendeskSDK.ZDKRequestCommentTableCell.SetBackgroundColor(testColor1);
		ZendeskSDK.ZDKRequestCommentTableCell.SetSeparatorInset(0, 0, 0, 0);

		ZendeskSDK.ZDKRequestListTableCell.SetDescriptionFont("system", 14);
		ZendeskSDK.ZDKRequestListTableCell.SetCreatedAtFont("system", 14);
		ZendeskSDK.ZDKRequestListTableCell.SetUnreadColor(testColor1);
		ZendeskSDK.ZDKRequestListTableCell.SetDescriptionColor(testColor1);
		ZendeskSDK.ZDKRequestListTableCell.SetCreatedAtColor(testColor1);
		ZendeskSDK.ZDKRequestListTableCell.SetCellBackgroundColor(testColor1);
		ZendeskSDK.ZDKRequestListTableCell.SetBackgroundColor(testColor1);
		ZendeskSDK.ZDKRequestListTableCell.SetVerticalMargin(0);
		ZendeskSDK.ZDKRequestListTableCell.SetDescriptionTimestampMargin(0);
		ZendeskSDK.ZDKRequestListTableCell.SetLeftInset(0);
		ZendeskSDK.ZDKRequestListTableCell.SetSeparatorInset(0, 0, 0, 0);

		ZendeskSDK.ZDKRequestListTable.SetCellSeparatorColor(testColor1);
		ZendeskSDK.ZDKRequestListTable.SetTableBackgroundColor(testColor1);
		ZendeskSDK.ZDKRequestListTable.SetBackgroundColor(testColor1);
		ZendeskSDK.ZDKRequestListTable.SetSectionIndexColor(testColor1);
		ZendeskSDK.ZDKRequestListTable.SetSectionIndexBackgroundColor(testColor1);
		ZendeskSDK.ZDKRequestListTable.SetSectionIndexTrackingBackgroundColor(testColor1);
		ZendeskSDK.ZDKRequestListTable.SetSeparatorColor(testColor1);
		ZendeskSDK.ZDKRequestListTable.SetSeparatorInset(0, 0, 0, 0);

		ZendeskSDK.ZDKRequestCommentAttachmentTableCell.SetBackgroundColor(testColor1);
		ZendeskSDK.ZDKRequestCommentAttachmentTableCell.SetSeparatorInset(0, 0, 0, 0);

		ZendeskSDK.ZDKRequestCommentAttachmentLoadingTableCell.SetBackgroundColor(testColor1);
		ZendeskSDK.ZDKRequestCommentAttachmentLoadingTableCell.SetSeparatorInset(0, 0, 0, 0);

		ZendeskSDK.ZDKEndUserCommentTableCell.SetBackgroundColor(testColor1);
		ZendeskSDK.ZDKEndUserCommentTableCell.SetBodyFont("system", 14);
		ZendeskSDK.ZDKEndUserCommentTableCell.SetTimestampFont("system", 14);
		ZendeskSDK.ZDKEndUserCommentTableCell.SetBodyColor(testColor1);
		ZendeskSDK.ZDKEndUserCommentTableCell.SetTimestampColor(testColor1);
		ZendeskSDK.ZDKEndUserCommentTableCell.SetCellBackground(testColor1);
		ZendeskSDK.ZDKEndUserCommentTableCell.SetSeparatorInset(0, 0, 0, 0);

		ZendeskSDK.ZDKCreateRequestView.SetTextEntryFont("system", 14);
		ZendeskSDK.ZDKCreateRequestView.SetPlaceholderTextColor(testColor1);
		ZendeskSDK.ZDKCreateRequestView.SetTextEntryColor(testColor1);
		ZendeskSDK.ZDKCreateRequestView.SetTextEntryBackgroundColor(testColor1);
		ZendeskSDK.ZDKCreateRequestView.SetBackgroundColor(testColor1);
		ZendeskSDK.ZDKCreateRequestView.SetAttachmentButtonBorderColor(testColor1);
		ZendeskSDK.ZDKCreateRequestView.SetAttachmentButtonBackground(testColor1);
		ZendeskSDK.ZDKCreateRequestView.SetAttachmentButtonCornerRadius(0);
		ZendeskSDK.ZDKCreateRequestView.SetAttachmentButtonBorderWidth(0);
		ZendeskSDK.ZDKCreateRequestView.SetAutomaticallyHideNavBarOnLandscape(1);
		ZendeskSDK.ZDKCreateRequestView.SetAttachmentActionSheetStyle (UIACTIONSHEETSTYLE.UIACTIONSHEETSTYLEDEFAULT);
		ZendeskSDK.ZDKCreateRequestView.SetSpinnerUIActivityIndicatorViewStyle(UIACTIVITYINDICATORVIEWSTYLE.UIACTIVITYINDICATORVIEWSTYLEGRAY); 
		ZendeskSDK.ZDKCreateRequestView.SetSpinnerColor(testColor1);
		ZendeskSDK.ZDKCreateRequestView.SetAttachmentButtonImage ("testimagename", "png");

		ZendeskSDK.ZDKCommentsListLoadingTableCell.SetBackgroundColor(testColor1);
		ZendeskSDK.ZDKCommentsListLoadingTableCell.SetLeftInset(0);
		ZendeskSDK.ZDKCommentsListLoadingTableCell.SetCellBackground(testColor1);
		ZendeskSDK.ZDKCommentsListLoadingTableCell.SetSeparatorInset(0, 0, 0, 0);

		ZendeskSDK.ZDKCommentInputView.SetAttachmentButtonBackgroundColor(testColor1);
		ZendeskSDK.ZDKCommentInputView.SetBackgroundColor(testColor1);
		ZendeskSDK.ZDKCommentInputView.SetTopBorderColor(testColor1);
		ZendeskSDK.ZDKCommentInputView.SetTextEntryColor(testColor1);
		ZendeskSDK.ZDKCommentInputView.SetTextEntryBackgroundColor(testColor1);
		ZendeskSDK.ZDKCommentInputView.SetTextEntryBorderColor(testColor1);
		ZendeskSDK.ZDKCommentInputView.SetSendButtonColor(testColor1);
		ZendeskSDK.ZDKCommentInputView.SetAreaBackgroundColor(testColor1);
		ZendeskSDK.ZDKCommentInputView.SetTextEntryFont("system", 14);
		ZendeskSDK.ZDKCommentInputView.SetSendButtonFont("system", 14);

		ZendeskSDK.ZDKCommentEntryView.SetBackgroundColor(testColor1);
		ZendeskSDK.ZDKCommentEntryView.SetTopBorderColor(testColor1);
		ZendeskSDK.ZDKCommentEntryView.SetTextEntryColor(testColor1);
		ZendeskSDK.ZDKCommentEntryView.SetTextEntryBackgroundColor(testColor1);
		ZendeskSDK.ZDKCommentEntryView.SetTextEntryBorderColor(testColor1);
		ZendeskSDK.ZDKCommentEntryView.SetSendButtonColor(testColor1);
		ZendeskSDK.ZDKCommentEntryView.SetAreaBackgroundColor(testColor1);
		ZendeskSDK.ZDKCommentEntryView.SetTextEntryFont("system", 14);
		ZendeskSDK.ZDKCommentEntryView.SetSendButtonFont("system", 14);

		ZendeskSDK.ZDKAttachmentView.SetBackgroundColor(testColor1);
		ZendeskSDK.ZDKAttachmentView.SetCloseButtonBackgroundColor(testColor1);

		ZendeskSDK.ZDKAgentCommentTableCell.SetBackgroundColor(testColor1);
		ZendeskSDK.ZDKAgentCommentTableCell.SetAvatarSize (40);
		ZendeskSDK.ZDKAgentCommentTableCell.SetAgentNameFont("system", 14);
		ZendeskSDK.ZDKAgentCommentTableCell.SetBodyFont("system", 14);
		ZendeskSDK.ZDKAgentCommentTableCell.SetTimestampFont("system", 14);
		ZendeskSDK.ZDKAgentCommentTableCell.SetAgentNameColor(testColor1);
		ZendeskSDK.ZDKAgentCommentTableCell.SetBodyColor(testColor1);
		ZendeskSDK.ZDKAgentCommentTableCell.SetTimestampColor(testColor1);
		ZendeskSDK.ZDKAgentCommentTableCell.SetCellBackground(testColor1);
		ZendeskSDK.ZDKAgentCommentTableCell.SetSeparatorInset(0, 0, 0, 0);
	}
示例#12
0
		public static void SetAttachmentButtonBorderColor(ZenColor color) {
			_appearance.SetColor("attachmentButtonBorderColor", color);
		}
 public void SetSeparatorColor(ZenColor color)
 {
     _zendeskThemeSetSeparatorColor(color.Red, color.Green, color.Blue, color.Alpha);
 }
 public void SetMetaTextColor(ZenColor color)
 {
     _zendeskThemeSetMetaTextColor(color.Red, color.Green, color.Blue, color.Alpha);
 }
示例#15
0
		public static void SetSendButtonColor(ZenColor color) {
			_appearance.SetColor("sendButtonColor", color);
		}
示例#16
0
		public static void SetSubHeaderColor(ZenColor color) {
			_appearance.SetColor("subHeaderColor", color);
		}
 public void SetEmptyBackgroundColor(ZenColor color)
 {
     _zendeskThemeSetEmptyBackgroundColor(color.Red, color.Green, color.Blue, color.Alpha);
 }
示例#18
0
		public static void SetPlaceHolderColor(ZenColor color) {
			_appearance.SetColor("placeHolderColor", color);
		}
		public static void SetArticleParentsLabelColor(ZenColor color) {
			_appearance.SetColor("articleParentsLabelColor", color);
		}
示例#20
0
		public static void SetTableBackgroundColor(ZenColor color) {
			_appearance.SetColor("tableBackgroundColor", color);
		}
		public static void SetTitleLabelColor(ZenColor color) {
			_appearance.SetColor("titleLabelColor", color);
		}
示例#22
0
		public static void SetSeparatorColor(ZenColor color) {
			_appearance.SetColor("separatorColor", color);
		}
		public static void SetAgentNameColor(ZenColor color) {
			_appearance.SetColor("agentNameColor", color);
		}
示例#24
0
		public static void SetNoResultsFoundLabelBackground(ZenColor color) {
			_appearance.SetColor("noResultsFoundLabelBackground", color);
		}
		public static void SetTimestampColor(ZenColor color) {
			_appearance.SetColor("timestampColor", color);
		}
示例#26
0
		public static void SetNoResultsContactButtonBackground(ZenColor color) {
			_appearance.SetColor("noResultsContactButtonBackground", color);
		}
示例#27
0
		public void SetColor(string propertyName, ZenColor color) {
			if (color.Type == ZenColor.COLORTYPE.WHITEONLY) {
				_zendeskSetColorWithWhite(_className, propertyName, color.White, color.Alpha);
			}
			else if (color.Type == ZenColor.COLORTYPE.REDGREENBLUE) {
				_zendeskSetColorWithRed(_className, propertyName, color.Red, color.Green, color.Blue, color.Alpha);
			}
			else if (color.Type == ZenColor.COLORTYPE.BYNAME) {
				_zendeskSetColorWithName(_className, propertyName, color.Name);
			}
		}
示例#28
0
		public static void SetNoResultsContactButtonBorderColor(ZenColor color) {
			_appearance.SetColor("noResultsContactButtonBorderColor", color);
		}
示例#29
0
		public static void SetTopBorderColor(ZenColor color) {
			_appearance.SetColor("topBorderColor", color);
		}
示例#30
0
		public static void SetNoResultsContactButtonTitleColorNormal(ZenColor color) {
			_appearance.SetColor("noResultsContactButtonTitleColorNormal", color);
		}
示例#31
0
		public static void SetTextEntryBorderColor(ZenColor color) {
			_appearance.SetColor("textEntryBorderColor", color);
		}
示例#32
0
		public static void SetNoResultsContactButtonTitleColorDisabled(ZenColor color) {
			_appearance.SetColor("noResultsContactButtonTitleColorDisabled", color);
		}
示例#33
0
		public static void SetAreaBackgroundColor(ZenColor color) {
			_appearance.SetColor("areaBackgroundColor", color);
		}
 public void SetInputFieldColor(ZenColor color)
 {
     _zendeskThemeSetInputFieldColor(color.Red, color.Green, color.Blue, color.Alpha);
 }